Friday, 29 April 2022

CONNECT BY PRIOR example in Oracle EBS

 SELECT

            parent_flex_value,

            flex_value,

            ROWNUM AS row_num

        FROM

            apps.fnd_flex_value_children_v

        WHERE

            flex_value_set_id = (

                SELECT

                    flex_value_set_id

                FROM

                    apps.fnd_flex_value_sets

                WHERE

                    flex_value_set_name = 'UVN_GL_COMPANY'

            )

        START WITH

            parent_flex_value IN (

                SELECT

                    ffv.flex_value

                FROM

                    applsys.fnd_flex_value_sets# ffvs, applsys.fnd_flex_values#     ffv

                WHERE

                    ffvs.flex_value_set_name = 'XXUNV_PBCS_COMP_SEG'

                    AND ffvs.flex_value_set_id = ffv.flex_value_set_id

                    AND ffv.enabled_flag = 'Y'

                    AND ffv.flex_value = 'SUCI'

            )

        CONNECT BY

            PRIOR flex_value = parent_flex_value

   

No comments:

Post a Comment

In how many ways we can link the requisition to purchase order in oracle ebs

 In Oracle E-Business Suite (EBS) R12 / R12.2, a Purchase Requisition can be joined to a Purchase Order across 4 primary levels , depending ...