DBA Data[Home] [Help]

VIEW: APPS.CLN_ITEMMST_INVENTORY_ORGS_V

Source

View Text - Preformatted

SELECT org.organization_id, par.organization_code, org.organization_name , DECODE(par.organization_id, par.master_organization_id, 'MASTER', 'ORG') Org_level FROM org_organization_definitions org, mtl_parameters par WHERE org.organization_id = par.organization_id AND org.business_group_id = fnd_profile.Value('PER_BUSINESS_GROUP_ID') and par.organization_id = par.master_organization_id
View Text - HTML Formatted

SELECT ORG.ORGANIZATION_ID
, PAR.ORGANIZATION_CODE
, ORG.ORGANIZATION_NAME
, DECODE(PAR.ORGANIZATION_ID
, PAR.MASTER_ORGANIZATION_ID
, 'MASTER'
, 'ORG') ORG_LEVEL
FROM ORG_ORGANIZATION_DEFINITIONS ORG
, MTL_PARAMETERS PAR
WHERE ORG.ORGANIZATION_ID = PAR.ORGANIZATION_ID
AND ORG.BUSINESS_GROUP_ID = FND_PROFILE.VALUE('PER_BUSINESS_GROUP_ID')
AND PAR.ORGANIZATION_ID = PAR.MASTER_ORGANIZATION_ID