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 )
GCC.SEGMENT4 is invalid identfier
ReplyDeleteHi, you have to replace your account segment with segment4.....Accounting segment is different with respect to implementation instance.
DeleteCould you please send me query for oracle cloud application?
ReplyDeleteThis query is specific to fusion cloud application only.
DeleteThe query has been very useful! Thank you.
ReplyDeleteThe FTN.PK1_START_VALUE column identifies the child account, allowing you to track the starting point of the account structure.
ReplyDeleteSEO Services
SEO Company
Using FTN.PARENT_PK1_VALUE, we retrieve the parent account associated with each child account, which is critical for hierarchy analysis.
ReplyDeleteSEO Agency in Delhi
SEO Agency in India
The FVV.DESCRIPTION field provides a description of the parent account, making the results easier to interpret.
ReplyDeleteInvest in Brands
Franchise
The TREE_STRUCTURE_CODE is set to 'GL_ACCT_FLEX', defining the hierarchical structure related to general ledger accounts.
ReplyDeleteFranchise Opportunities
Franchise Business
The TREE_CODE filter 'GDI_ACC_HIE' specifies the organization’s account hierarchy, allowing flexibility for different hierarchies if needed.
ReplyDeleteBusiness Opportunities
Distributorship
This query is configured to only include nodes where PK1_START_VALUE matches GCC.SEGMENT4, focusing on a specific child account.
ReplyDeleteDistributorship Opportunities
Franchise for Sale
By joining FTN.PARENT_PK1_VALUE with FVV.FLEX_VALUE, the query retrieves details about the parent account, such as its description.
ReplyDeleteFranchise in USa
Franchise in India
The TREE_VERSION_ID filter in the subquery ensures that only the active hierarchy version is retrieved, enhancing accuracy.
ReplyDeletefranchise Website
Invest in Brands India
Using TRUNC(SYSDATE) in the BETWEEN condition ensures that the query pulls data from the hierarchy version valid on the current date.
ReplyDeleteBusiness Opportunities India
allen solly franchise
The EFFECTIVE_START_DATE and EFFECTIVE_END_DATE in the subquery further restrict results to active date ranges, supporting dynamic reporting.
ReplyDeletenescafe franchise
South Indian Food Restaurant Franchise
The query uses the FND_TREE_NODE and FND_FLEX_VALUES_VL tables to link child and parent account details within the GL hierarchy.
ReplyDeleteworld free 4 u
hdmovieshub.in 2023
It’s important to replace 'GDI_ACC_HIE' with your organization's specific account hierarchy code for accurate results.
ReplyDeletewow momo franchise
lenskart franchise
This query could be expanded by joining other tables to include additional metadata about accounts or hierarchies as needed.
ReplyDeletebest franchise business in india
kamdhenu tmt franchise
Ensure GCC.SEGMENT4 is properly defined in the query as the specific child account; otherwise, results may not be as expected.
ReplyDeletedmart franchise
distributorship opportunities