An Oracle FSG row set has line items that show amounts in an FSG Report that are defined by account code assignment or by calculations. You cannot have both account assignment and calculation setup in the same line item. Account assignment entries and calculation entries are stored in different database tables. The settings for each are entered into separate forms. A third way to define displayed line items is to enter nothing in either the account assignment or calculation setup subforms of the line item. This happens when the line item is used as a title description or a method of adding space between line items. I have a sql that is designed to show settings made for each line item in a named FSG report. However, it isn't outputing anything for the description only or empty rows. Here's the sql so far.
select rr.name report_name
,rras.name row_set_name
,rra.axis_seq
,rra.axis_name
,rra.description row_desc
,rra.display_flag display
,rra.display_zero_amount_f
lag dpl_zero_amt
,0 calc_seq
,'A' opr
,rrac.axis_seq line#
,rrac.sign
,to_char(rrac.segment3_low
) low
,to_char(rrac.segment3_hig
h) high
,rrac.segment3_type s_type
,rrac.segment3_low||' - '||rrac.segment3_high low_high
,'1' row#
from rg_reports rr
,rg_report_axis_sets rras
,rg_report_axes rra
,rg_report_axis_contents rrac
where rr.row_set_id = rras.axis_set_id
and rr.row_set_id = rra.axis_set_id
and rras.axis_set_id = rra.axis_set_id
and rr.row_set_id = rrac.axis_set_id
and rra.axis_set_id = rrac.axis_set_id
and rras.axis_set_id = rrac.axis_set_id
and rrac.axis_seq = rra.axis_seq
and rras.axis_set_type = 'R'
and rras.name like '%Oper Inc Row (13 mo)%'
and rr.name like '%Oper Income (13 mo)-Bdgt 2007%'
union
select rr.name report_name
,rras.name row_set_name
,rra.axis_seq
,rra.axis_name
,rra.description row_desc
,rra.display_flag display
,rra.display_zero_amount_f
lag dpl_zero_amt
,rrc.calculation_seq calc_seq
,rrc.operator opr
,0 line#
,'C' sign
,to_char(rrc.axis_seq_low)
low
,to_char(rrc.axis_seq_high
) high
,'C' s_type
,rrc.axis_seq_low||' - '||rrc.axis_seq_high low_high
,'1' row#
from rg_reports rr
,rg_report_axis_sets rras
,rg_report_axes rra
,rg_report_axis_contents rrac
,rg_report_calculations rrc
where rr.row_set_id = rras.axis_set_id
and rr.row_set_id = rra.axis_set_id
and rras.axis_set_id = rra.axis_set_id
and rr.row_set_id = rrc.axis_set_id
and rra.axis_set_id = rrc.axis_set_id
and rras.axis_set_id = rrc.axis_set_id
and rra.axis_seq = rrc.axis_seq
and rras.axis_set_type = 'R'
and rras.name like '%Oper Inc Row (13 mo)%'
and rr.name like '%Oper Income (13 mo)-Bdgt 2007%'
I need help figuring out how to also include the missing line items.
Start Free Trial