Monday, 23 November 2020

Oracle Fusion: GL Child and Parent Account Query

SELECT

        FTN.PK1_START_VALUE  CHILD_ACCOUNT ,

        FTN.PARENT_PK1_VALUE PARENT_ACCOUNT,

        FVV.DESCRIPTION      PARENT_ACCOUNT_DESCRIPTION

FROM

        FND_TREE_NODE      FTN,

        FND_FLEX_VALUES_VL FVV

WHERE

        FTN.TREE_STRUCTURE_CODE ='GL_ACCT_FLEX'

AND     FTN.TREE_CODE           ='GDI_ACC_HIE'  -- Please Enter Your Organization Account Hierarchy Code

AND     FTN.PK1_START_VALUE     =GCC.SEGMENT4 --Child Account '511109'

AND     FTN.PARENT_PK1_VALUE    =FVV.FLEX_VALUE

AND     FTN.TREE_VERSION_ID IN

        (

                SELECT

                        TREE_VERSION_ID

                FROM

                        FND_TREE_VERSION_VL

                WHERE

                        TREE_STRUCTURE_CODE ='GL_ACCT_FLEX'

                AND     TREE_CODE           ='GDI_ACC_HIE'

                AND     STATUS              ='ACTIVE'

                AND     TRUNC(SYSDATE) BETWEEN EFFECTIVE_START_DATE AND     EFFECTIVE_END_DATE )

19 comments:

  1. GCC.SEGMENT4 is invalid identfier

    ReplyDelete
    Replies
    1. Hi, you have to replace your account segment with segment4.....Accounting segment is different with respect to implementation instance.

      Delete
  2. Could you please send me query for oracle cloud application?

    ReplyDelete
    Replies
    1. This query is specific to fusion cloud application only.

      Delete
  3. The query has been very useful! Thank you.

    ReplyDelete
  4. The FTN.PK1_START_VALUE column identifies the child account, allowing you to track the starting point of the account structure.
    SEO Services
    SEO Company

    ReplyDelete
  5. Using FTN.PARENT_PK1_VALUE, we retrieve the parent account associated with each child account, which is critical for hierarchy analysis.
    SEO Agency in Delhi
    SEO Agency in India

    ReplyDelete
  6. The FVV.DESCRIPTION field provides a description of the parent account, making the results easier to interpret.
    Invest in Brands
    Franchise

    ReplyDelete
  7. The TREE_STRUCTURE_CODE is set to 'GL_ACCT_FLEX', defining the hierarchical structure related to general ledger accounts.
    Franchise Opportunities
    Franchise Business

    ReplyDelete
  8. The TREE_CODE filter 'GDI_ACC_HIE' specifies the organization’s account hierarchy, allowing flexibility for different hierarchies if needed.
    Business Opportunities
    Distributorship

    ReplyDelete
  9. This query is configured to only include nodes where PK1_START_VALUE matches GCC.SEGMENT4, focusing on a specific child account.
    Distributorship Opportunities
    Franchise for Sale

    ReplyDelete
  10. By joining FTN.PARENT_PK1_VALUE with FVV.FLEX_VALUE, the query retrieves details about the parent account, such as its description.
    Franchise in USa
    Franchise in India

    ReplyDelete
  11. The TREE_VERSION_ID filter in the subquery ensures that only the active hierarchy version is retrieved, enhancing accuracy.
    franchise Website
    Invest in Brands India

    ReplyDelete
  12. Using TRUNC(SYSDATE) in the BETWEEN condition ensures that the query pulls data from the hierarchy version valid on the current date.
    Business Opportunities India
    allen solly franchise

    ReplyDelete
  13. The EFFECTIVE_START_DATE and EFFECTIVE_END_DATE in the subquery further restrict results to active date ranges, supporting dynamic reporting.
    nescafe franchise
    South Indian Food Restaurant Franchise

    ReplyDelete
  14. The query uses the FND_TREE_NODE and FND_FLEX_VALUES_VL tables to link child and parent account details within the GL hierarchy.
    world free 4 u
    hdmovieshub.in 2023

    ReplyDelete
  15. It’s important to replace 'GDI_ACC_HIE' with your organization's specific account hierarchy code for accurate results.
    wow momo franchise
    lenskart franchise

    ReplyDelete
  16. This query could be expanded by joining other tables to include additional metadata about accounts or hierarchies as needed.
    best franchise business in india
    kamdhenu tmt franchise

    ReplyDelete
  17. Ensure GCC.SEGMENT4 is properly defined in the query as the specific child account; otherwise, results may not be as expected.
    dmart franchise
    distributorship opportunities

    ReplyDelete