DBA Data[Home] [Help]

VIEW: APPS.MSD_ORGANIZATION_DEFINITIONS

Source

View Text - Preformatted

SELECT hou.organization_id organization_id, hou.business_group_id, hou.date_from user_definition_enable_date, hou.date_to disable_date, mp.organization_code organization_code, hou.name organization_name, gsob.set_of_books_id set_of_books_id, gsob.chart_of_accounts_id chart_of_accounts_id, hoi1.org_information2 inventory_enabled_flag, decode(fpg.multi_org_flag, 'Y', to_number(hoi2.org_information3), null) operating_unit, decode(hoi2.org_information_context, 'Accounting Information', to_number(hoi2.org_information2), null) legal_entity, mp.calendar_code from hr_all_organization_units_vl hou, hr_organization_information hoi1, hr_organization_information hoi2, mtl_parameters mp, gl_sets_of_books gsob, fnd_product_groups fpg WHERE hou.organization_id = hoi1.organization_id and hou.organization_id = hoi2.organization_id and hou.organization_id = mp.organization_id /* Bug# 4620927 and mp.process_enabled_flag = 'N' */ and hoi1.org_information1 = 'INV' and hoi1.org_information2 = 'Y' and (hoi1.org_information_context || '') = 'CLASS' and (hoi2.org_information_context || '') = 'Accounting Information' and hoi2.org_information1 = to_char(gsob.set_of_books_id)
View Text - HTML Formatted

SELECT HOU.ORGANIZATION_ID ORGANIZATION_ID
, HOU.BUSINESS_GROUP_ID
, HOU.DATE_FROM USER_DEFINITION_ENABLE_DATE
, HOU.DATE_TO DISABLE_DATE
, MP.ORGANIZATION_CODE ORGANIZATION_CODE
, HOU.NAME ORGANIZATION_NAME
, GSOB.SET_OF_BOOKS_ID SET_OF_BOOKS_ID
, GSOB.CHART_OF_ACCOUNTS_ID CHART_OF_ACCOUNTS_ID
, HOI1.ORG_INFORMATION2 INVENTORY_ENABLED_FLAG
, DECODE(FPG.MULTI_ORG_FLAG
, 'Y'
, TO_NUMBER(HOI2.ORG_INFORMATION3)
, NULL) OPERATING_UNIT
, DECODE(HOI2.ORG_INFORMATION_CONTEXT
, 'ACCOUNTING INFORMATION'
, TO_NUMBER(HOI2.ORG_INFORMATION2)
, NULL) LEGAL_ENTITY
, MP.CALENDAR_CODE
FROM HR_ALL_ORGANIZATION_UNITS_VL HOU
, HR_ORGANIZATION_INFORMATION HOI1
, HR_ORGANIZATION_INFORMATION HOI2
, MTL_PARAMETERS MP
, GL_SETS_OF_BOOKS GSOB
, FND_PRODUCT_GROUPS FPG
WHERE HOU.ORGANIZATION_ID = HOI1.ORGANIZATION_ID
AND HOU.ORGANIZATION_ID = HOI2.ORGANIZATION_ID
AND HOU.ORGANIZATION_ID = MP.ORGANIZATION_ID /* BUG# 4620927
AND MP.PROCESS_ENABLED_FLAG = 'N' */
AND HOI1.ORG_INFORMATION1 = 'INV'
AND HOI1.ORG_INFORMATION2 = 'Y'
AND (HOI1.ORG_INFORMATION_CONTEXT || '') = 'CLASS'
AND (HOI2.ORG_INFORMATION_CONTEXT || '') = 'ACCOUNTING INFORMATION'
AND HOI2.ORG_INFORMATION1 = TO_CHAR(GSOB.SET_OF_BOOKS_ID)