Home / AppsDBA Scripts / Query To find the details of the Accounting Flexfield structure

Query To find the details of the Accounting Flexfield structure

SELECT gls.name, 
       idfs.id_flex_num chart_of_accounts_id, 
       idfs.segment_num, 
       idfs.flex_value_set_id, 
       fvs.flex_value_set_name, 
       idfs.application_id, 
       idfs.id_flex_code, 
       idfs.application_column_name, 
       idfs.segment_name, 
       fvs.security_enabled_flag, 
       ( CASE 
           WHEN fvs.validation_type = ‘F’ THEN ‘Table’ 
           WHEN fvs.validation_type = ‘I’ THEN ‘Independent’ 
           WHEN fvs.validation_type = ‘D’ THEN ‘Dependent’ 
           WHEN fvs.validation_type = ‘N’ THEN ‘None’ 
           WHEN fvs.validation_type = ‘P’ THEN ‘Pair’ 
           WHEN fvs.validation_type = ‘U’ THEN ‘Special’ 
           ELSE ‘Unknown Type’ 
         END )          validation_type, 
       ( CASE 
           WHEN fvs.validation_type = ‘F’ THEN fvt.application_table_name 
           ELSE ‘Not Applicable’ 
         END )          validation_table_name 
FROM   gl_ledgers gls, 
       fnd_id_flex_segments idfs, 
       fnd_flex_value_sets fvs, 
       fnd_flex_validation_tables fvt 
WHERE  gls.chart_of_accounts_id (+) = idfs.id_flex_num 
       AND fvs.flex_value_set_id = idfs.flex_value_set_id 
       AND gls.ledger_id = &ledgerid 
       AND idfs.application_id = 101 
       AND idfs.id_flex_code IN ( ‘GL#’, ‘GLLE’ ) 
       AND fvs.flex_value_set_id = fvt.flex_value_set_id (+) 
ORDER  BY idfs.id_flex_code, 
          idfs.id_flex_num, 
          idfs.segment_num ASC; 

 

 

About Syed

As a certified and experienced Oracle Database Administrator with Almost 10 Years of Experience I am able to perform all levels of database maintenance and am fully qualified to do Oracle updates as well. Capitalizing on my interest in Business & IT both, I chose to navigate my career towards Enterprise Solutions, which has enabled me to excel in the combination of both. I have developed exceptional analytical skills that allow me to diagnose and take care of issues immediately. Extremely skilled in planning and execution of special projects in time- critical environments. Extensive knowledge in directing, coordinating and exercising concern authority for planning, organization, control and successful completions. Very skilled at solving customer relations issues by seeking first to understand and then to be understood. Effectively able to communicate with customers, vendors and management.

Check Also

How to Get Apps Password From Backend

How to Get Apps Password From Backend   STEP 1.  First login to Database through …

Leave a Reply