GL Ledgers and Organizations

Description
Categories: Enginatics, Financials, Manufacturing, Setup
Chart of Accounts, GL Ledgers, Operating Units, Inventory Organizations, Legal Entities
select
haouv.name business_group,
gl.name ledger,
xxen_util.meaning(gl.ledger_category_code,'GL_ASF_LEDGER_CATEGORY',101) ledger_category,
gl.currency_code currency,
fifsv.id_flex_structure_code chart_of_accounts_code,
fifsv.id_flex_structure_name chart_of_accounts_name,
hou.name operating_unit,
ood.organization_code,
ood.organization_name organization,
ftv.territory_short_name country,
xep.name legal_entity,
gl.ledger_id,
gl.chart_of_accounts_id,
ood.operating_unit operating_unit_id,
ood.organization_id
from
hr_all_organization_units_vl haouv,
gl_ledgers gl,
fnd_id_flex_structures_vl fifsv,
hr_operating_units hou,
org_organization_definitions ood,
hr_all_organization_units haou,
hr_locations_all hla,
fnd_territories_vl ftv,
xle_entity_profiles xep
where
1=1 and
haouv.organization_id=hou.business_group_id and
gl.chart_of_accounts_id=fifsv.id_flex_num and
fifsv.application_id=101 and
fifsv.id_flex_code='GL#' and
gl.ledger_id=hou.set_of_books_id(+) and
hou.organization_id=ood.operating_unit(+) and
ood.organization_id=haou.organization_id(+) and
haou.location_id=hla.location_id(+) and
hla.country=ftv.territory_code(+) and
ood.legal_entity=xep.legal_entity_id(+)
order by
business_group,
ledger,
currency,
operating_unit,
country,
organization_code
Parameter Name SQL text Validation
Country
ftv.territory_short_name=:country
LOV
Active Only
nvl(ood.disable_date,sysdate)>=sysdate and
nvl(hou.date_to,sysdate)>=sysdate
LOV
Ledger
gl.name=:ledger_name
LOV
Chart of Accounts
fifsv.id_flex_structure_name=:chart_of_accounts
LOV
Ask a question