To Extract the ENTERPRISE-STATISTICAL DATA by using SQL Queries
-- Query to find operating units for a legal entity :
select
organization_id operating_unit,
name,
business_group_id,
substr(set_of_books_id,1,10),
substr(legal_entity_id,1,10),
date_from,
date_to
from hr_operating_units
where legal_entity_id=204
--Query to find SOBs set up in the instance :
select
set_of_books_id,
name sob_name,
chart_of_accounts_id,
chart_of_accounts_name,
period_set_name calendar_period,
accounted_period_type,
user_period_type,
currency_code
from gl_sets_of_books_v
where set_of_books_id=1
--Query to find few business groups set up in the instance :
select
business_group_id,name
from per_business_groups
where 1=1--lower(name) like '%vision corporation%'
order by name
--Query to find legal entities associated with a SOB :
select
organization_id legal_entity_id,
business_group_id,
name,
date_from,
date_to,
set_of_books_id,
vat_registration_number
from hr_legal_entities
where set_of_books_id=1
--and business_group_id=202
--- Query to find inventory organizations for an operating unit :
select
organization_id,
organization_code,
organization_name,
(select location_id from hr_all_organization_units ou
where od.organization_id=ou.organization_id) location_id,
user_definition_enable_date,
disable_date,
chart_of_accounts_id,
inventory_enabled_flag,
operating_unit,
legal_entity,
set_of_books_id,
business_group_id
from org_organization_definitions od
where 1=1-- operating_unit=204
order by organization_code
Thanks for Information Oracle Apps Technical is a collection of a bunch of collected applications like accounts payables, purchasing, inventory, accounts receivables, human resources, order management, general ledger and fixed assets, etc which have its own functionality for serving the business.Oracle Apps Technical Online Training
ReplyDelete