Query to get FSG report details with row/column set


Below query is to fetch FSG report titles, names, and description along with will give a view to list of row sets and column sets associated with the report.

-- FSG REPORTS --

SELECT fst.id_flex_structure_name
, R.NAME
, R.report_title
, R.DESCRIPTION
, R.column_set "COLUMN SET"
, rw2.structure_id
, rw2.DESCRIPTION "COL DESC"
, R.row_set "ROW SET"
, rw.DESCRIPTION "ROW DESC"
, R.report_display_set "DISPLAY SET"
, R.content_set "CONTENT SET"
, R.row_order "ROW ORDER"
, R.rounding_option "RND"
, u.user_name
, u.DESCRIPTION
, R.creation_date
FROM rg_reports_v R
   , fnd_id_flex_structures_v fst
   , fnd_user u
   , rg_report_axis_sets_v rw
   , rg_report_axis_sets_v rw2
WHERE r.structure_id = fst.id_flex_num
AND R.row_set_id     = rw.axis_set_id
AND r.column_set_id  = rw2.axis_set_id
AND SUBSTR(fst.id_flex_structure_name,1,2) IN ('DC')
AND R.created_by     = u.user_id
ORDER BY 1, 2

Comments

Popular posts from this blog

How to use lexical parameters in Data template (XML document) R12

Sub Inventory Transfer API.