GL Balances (Drilldown)

Description

Categories
Enginatics
Repository
GitHub
** This report is used by the GL Financial Statement and Drilldown report, to show Balance details per code combination. **

Shows GL balance amounts (Opening Balance, Debit, Credit, Net, Closing Balance) grouped by code combination, with drill-to-journal capability.
Supports all balance types: PTD, YTD, QTD, PJTD, FYS, FYE, CTD.
The Drill To Journal column allows further drilldown into journal details.

SQL 81 lines

Parameters 12

ParameterTypeList of values SQL
LedgerLOV
gl.name=:ledger
PeriodLOV
Ledger IDNumber
gl.ledger_id=:ledger_id
Amount TypeChar
Currency CodeLOV
gb.currency_code=:currency_code
Currency TypeChar
Balance TypeLOV
gb.actual_flag in (
select 
 flvv.lookup_code
from 
fnd_lookup_values_vl flvv 
where flvv.description=:balance_type and 
flvv.lookup_type='BATCH_TYPE' and 
flvv.view_application_id=101 and 
flvv.security_group_id=0
)
Budget NameLOV
(gb.actual_flag<>'B' or gb.budget_version_id in (select gbv.budget_version_id from gl_budget_versions gbv where gbv.budget_name = :budget_name)
)
Encumbrance TypeLOV
(gb.actual_flag<>'E' or gb.encumbrance_type_id in (select get.encumbrance_type_id from gl_encumbrance_types get where get.encumbrance_type = :encumbrance_type))
Concatenated SegmentsLOV
gcck.concatenated_segments=:concatenated_segments
Code Combination IDNumber
gcck.code_combination_id=:code_combination_id
Restrict CCIDs through GTTChar
gb.code_combination_id in (select xrti.id1 from xxen_report_temp_ids xrti)