Showing posts with label Legal Entity. Show all posts
Showing posts with label Legal Entity. Show all posts

Sunday, July 3, 2022

Query to get Legal Entity Name in Oracle Apps

SELECT hou.name operating_unit_name
      ,xep.name legal_entity_name
  FROM hr_operating_units hou
      ,xle_entity_profiles xep
 WHERE hou.default_legal_context_id = xep.legal_entity_id

Wednesday, June 16, 2021

Query to get Legal Entity, Operating Unit, Inventory Org details in Oracle Apps

 SELECT xep.name legal_entity_name

      ,gl.name  ledger_name

  ,hou.name operating_unit

  ,hou.short_code

  ,hou.organization_id org_id

  ,hou.set_of_books_id

  ,hou.business_group_id

  ,ood.organization_name inventory_organization_name

  ,ood.organization_code inv_organization_code

  ,ood.organization_id   inv_organization_id

  ,ood.chart_of_accounts_id

FROM hr_operating_units hou

    ,org_organization_definitions ood

,gl_ledgers gl

,xle_entity_profiles xep

WHERE hou.organization_id(+) = ood.operating_unit

  AND ood.set_of_books_id = gl.ledger_id

  AND ood.legal_entity = xep.legal_entity_id

ORDER BY hou.organization_id;

APEX$TASK_PK

  APEX$TASK_PK is a substitution string holding the primary key value of the system of records