Tuesday, October 8, 2013

Key segments value set details (Values/Effective/Hierarchy/Qualifiers)

-----------------------------------------
select ffvs.flex_value_set_name
        ,ffv.flex_value
        ,ffvt.description
        ,ffv.start_date_active
        ,ffv.end_date_active
        ,decode(ffv.enabled_flag,'N','No','Yes') enabled
        ,decode(ffv.summary_flag,'N','No','Yes') parent
        ,ffhv.hierarchy_code rollup_group
        -- Qualifiers
        ,decode(substr(to_char(ffv.compiled_value_attributes),1,1),'N','No','Yes') budgeting_allowed
        ,decode(substr(to_char(ffv.compiled_value_attributes),3,1),'N','No','Yes') posting_allowed
        ,(select acct_type_desc2
            from gl_acct_typ gat
           where gat.acct_type_code = substr(to_char(ffv.compiled_value_attributes),5,1) ) account_type
        ,decode(substr(to_char(ffv.compiled_value_attributes),7,1),'N','No','Yes') third_party_control
        ,decode(substr(to_char(ffv.compiled_value_attributes),9,1),'N','No','Yes') reconcile
 from fnd_flex_values ffv
        ,fnd_flex_values_tl ffvt
        ,fnd_flex_value_sets ffvs
        ,fnd_id_flex_segments fifs
        ,fnd_flex_hierarchies_vl ffhv
where ffv.flex_value_id = ffvt.flex_value_id
    and ffv.flex_value_set_id = ffvs.flex_value_set_id
    and fifs.flex_value_set_id = ffvs.flex_value_set_id
    and ffvs.flex_value_set_name = <<'AK_Account'>>
    and fifs.id_flex_code = 'GL#'
    and ffv.structured_hierarchy_level = ffhv.hierarchy_id(+)
order by ffv.flex_value
;

------------------------------------------------

2 comments:

  1. Νeat blоg! Is youг theme custоm mad&X65; or did you downloаd &X69;t from somеω&X68;ere?
    A design like y&X6F;urs wit&X68; a few simple adjus&X74;ements would гea&X6C;&X6C;y make my blog
    stand οu&X74;. P&X6C;еase let me kn&X6f;w whегe you &X67;o&X74; your
    dеsign. Kuԁos

    A&X6C;s&X6f; visit m&X79; wеblоg - fiх геgistry errors i&X6e;
    ωindoωs 7 (http://www.dorazi.jp/zbxe/notice/164864)

    ReplyDelete
    Replies
    1. Dear Anonymous,

      I am not sure how you were typing while commenting, it is not very clear and also it is not related to the topic.

      But answer to your question on the basis of what I got :).
      This is all from standard buddy, just select the layout/ theme/ template/ configuration you like.

      Delete