Categories
- All Categories
- Oracle Analytics Learning Hub
- 19 Oracle Analytics Sharing Center
- 18 Oracle Analytics Lounge
- 230 Oracle Analytics News
- 44 Oracle Analytics Videos
- 15.8K Oracle Analytics Forums
- 6.2K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 86 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
How can I extract LEGAL_ENTITY_IDENTIFIER?

How can I extract the value of LEGAL_ENTITY_IDENTIFIER from XLE_ENTITY_PROFILES table if in HR_ALL_ORGANIZATION_UNITS_F table it's null the LEGAL_ENTITY_ID field?
Answers
-
Welcome to FAW community. This is an Question to Fusion team.
@Emily Cikovsky-Oracle Can you please move this Thread to fusion team.
Regards,
Arjun
0 -
Hi! We can't move threads to the Fusion forums on Customer Connect, FYI.
Also this is tagged for Publisher, which is a question for us, not the Fusion team - but it's not clear to me from the question whether it's about Publisher or the Fusion data source, so I'll ping the OA PMs and see what they say, then circle back.
Thanks!
0 -
0
-
@Mallikarjuna Kuppauru-Oracle, @Emily Cikovsky-Oracle I need a SQL query for a BI report to extract the LEGAL_ENTITY_IDENTIFIER, starting from a department. I'm sorry if the question is'nt posted in the correct area of the forum, tell me where I can post it.
0 -
Below is the correct forum to post the question.
You can close this thread ?
Regards,
Arjun
0 -
SELECT
xep.LEGAL_ENTITY_ID,
xep.NAME AS LEGAL_ENTITY_NAME
FROM
XLE_ENTITY_PROFILES xep0 -
You can start with following query
SELECT
dept.ORGANIZATION_NAME AS DEPARTMENT_NAME,
bu.BUSINESS_UNIT_NAME,
le.NAME AS LEGAL_ENTITY_NAME,
le.LEGAL_ENTITY_IDENTIFIER
FROM
HR_ORGANIZATION_UNITS dept
JOIN PER_BUSINESS_UNIT_ORGS buo
ON dept.ORGANIZATION_ID = buo.ORGANIZATION_ID
JOIN FUN_BUSINESS_UNITS bu
ON bu.BU_ID = buo.BU_ID
JOIN HR_LEGAL_ENTITIES_F leg
ON bu.LEGAL_ENTITY_ID = leg.LEGAL_ENTITY_ID
JOIN HZ_LEGAL_ENTITIES le
ON leg.LEGAL_ENTITY_ID = le.LEGAL_ENTITY_ID
WHERE
SYSDATE BETWEEN leg.EFFECTIVE_START_DATE AND leg.EFFECTIVE_END_DATE
AND dept.ORGANIZATION_TYPE = 'DEPARTMENT'
ORDER BY
dept.ORGANIZATION_NAME;Hope it helps
0