0% found this document useful (0 votes)
20 views

Find Segment Values Select From FND - ID - FLEX - SEGMENTS Where Id - Flex - Code 'GL#'

This document contains SQL queries that: 1. Join several tables to select segment values from a gl_code_combinations table and retrieve their descriptions from lookup tables. 2. Select specific fields from tables like gl_code_combinations, fnd_id_flexs, and FND_ID_FLEX_SEGMENTS. 3. Contains queries to find the description for a segment value and to retrieve the current organization ID.

Uploaded by

bhush
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Find Segment Values Select From FND - ID - FLEX - SEGMENTS Where Id - Flex - Code 'GL#'

This document contains SQL queries that: 1. Join several tables to select segment values from a gl_code_combinations table and retrieve their descriptions from lookup tables. 2. Select specific fields from tables like gl_code_combinations, fnd_id_flexs, and FND_ID_FLEX_SEGMENTS. 3. Contains queries to find the description for a segment value and to retrieve the current organization ID.

Uploaded by

bhush
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

select

gcc.segment1||'-'||gcc.segment2||'-'||gcc.segment3
gcc.segment6
'- gcc.segme '- gcc.segme 'ACCOUNT,
'- A2.DESCRIPTI '- A3.DESCRIPTI ''
nt4
'
nt5
' A1.DESCRIPTI '
ON
'
ON
'
ON
A4.DESCRIPTION||'-'||A5.DESCRIPTION||'-'||A6.DESCRIPTION description
from
fnd_flex_values_vl A1,
fnd_flex_values_vl A2,
fnd_flex_values_vl A3,
fnd_flex_values_vl A4,
fnd_flex_values_vl A5,
fnd_flex_values_vl A6,
gl_code_combinations gcc
WHERE
a1.flex_value=gcc.segment1
and a2.flex_value=gcc.segment2
and a3.flex_value=gcc.segment3
and a4.flex_value=gcc.segment4
and a5.flex_value=gcc.segment5
and a6.flex_value=gcc.segment6

selectgcc.segment4,ff.descriptionfromgl_code_combinationsgcc,
fnd_id_flexsff
select*fromfnd_id_flexs
select*fromgl_code_combinations

FINDSEGMENTVALUES
select*fromFND_ID_FLEX_SEGMENTS
whereid_flex_code='GL#'
select*fromGL_CODE_COMBINATIONS_KFV
select*fromfnd_flex_values_vl
whereflex_value_set_id=1014183

QUERYFORFINDTHEDESCRIPTION:
selectgcc.segment4,ffv.descriptionfromgl_code_combinations
gcc,fnd_flex_values_vlffv,fnd_flex_value_setsffs
whereffv.flex_value=gcc.segment4andffs.FLEX_VALUE_SET_NAME='Segment4lov
name'

queryforORG_ID
selectmo_global.get_current_org_idfromdual

selectFND_GLOBAL.org_idfromdual

You might also like