Skip to main content

SQL to retrieve a list of descriptive flexfields

SQL to retrieve a list of descriptive flexfields with column usages and value-set definitions


For a little project I needed to retrieve E-Business Suite Descriptive Flexfields for all applications together with the column usages and value set assignments and settings.

So, here you go...of course adjust the statement per your requirements.

SELECT
  A.APPLICATION_NAME,
  FDF.APPLICATION_TABLE_NAME,
  FDFT.TITLE,
  FDF.DESCRIPTIVE_FLEXFIELD_NAME,
  FDF.FREEZE_FLEX_DEFINITION_FLAG,
  FDCF.DESCRIPTIVE_FLEX_CONTEXT_CODE,
  FDFCU.COLUMN_SEQ_NUM SEQUENCE_NUMBER,
  FDFCU.END_USER_COLUMN_NAME PARAMETER_NAME,
  FFVS.FLEX_VALUE_SET_NAME VALUE_SET,
  FFVS.DESCRIPTION VALUE_SET_DESCRIPTION,
  T.FORM_LEFT_PROMPT PROMPT,
  FDFCU.DEFAULT_VALUE DEFAULT_VALUE,
  FDFCU.ENABLED_FLAG,
  FDFCU.REQUIRED_FLAG,
  FDFCU.SECURITY_ENABLED_FLAG,
  FDFCU.DISPLAY_FLAG,
  FDFCU.DISPLAY_SIZE
FROM
  FND_LOOKUP_VALUES FLVF,
  FND_DESCRIPTIVE_FLEXS FDF,
  FND_DESCRIPTIVE_FLEXS_TL FDFT,
  FND_DESCR_FLEX_CONTEXTS FDCF,
  FND_DESCR_FLEX_COLUMN_USAGES FDFCU,
  FND_DESCR_FLEX_COL_USAGE_TL T,
  FND_FLEX_VALUE_SETS FFVS,
  FND_APPLICATION_TL A
WHERE
  FDF.DESCRIPTIVE_FLEXFIELD_NAME = FDFT.DESCRIPTIVE_FLEXFIELD_NAME
  AND FDF.DESCRIPTIVE_FLEXFIELD_NAME = FDCF.DESCRIPTIVE_FLEXFIELD_NAME(+)
  AND FDCF.DESCRIPTIVE_FLEXFIELD_NAME = FDFCU.DESCRIPTIVE_FLEXFIELD_NAME(+)
  AND FDCF.DESCRIPTIVE_FLEX_CONTEXT_CODE = FDFCU.DESCRIPTIVE_FLEX_CONTEXT_CODE(+)
  AND FFVS.FLEX_VALUE_SET_ID(+) = FDFCU.FLEX_VALUE_SET_ID
  AND T.LANGUAGE = 'US'
  AND A.LANGUAGE = 'US'
  AND FDFT.LANGUAGE = 'US'
  AND FDF.APPLICATION_ID = A.APPLICATION_ID
  AND FDFCU.DESCRIPTIVE_FLEXFIELD_NAME = T.DESCRIPTIVE_FLEXFIELD_NAME
  AND FDFCU.DESCRIPTIVE_FLEX_CONTEXT_CODE = T.DESCRIPTIVE_FLEX_CONTEXT_CODE
  AND FDFCU.APPLICATION_COLUMN_NAME = T.APPLICATION_COLUMN_NAME
  AND FLVF.LOOKUP_TYPE(+) = 'COLUMN_TYPE'
  AND FLVF.LOOKUP_CODE(+) = FDFCU.DEFAULT_TYPE
ORDER BY
  A.APPLICATION_NAME,
  FDF.DESCRIPTIVE_FLEXFIELD_NAME,
  FDFCU.COLUMN_SEQ_NUM 
SQL to retrieve a list of descriptive flexfields with column usages and valueset definitions - See more at: http://oracleebsapps.blogspot.com/2014/09/sql-to-retrieve-list-of-descriptive.html#sthash.QxKxfA7U.dpuf

Comments

  1. Hi may I know what table stores information about window prompt and numbers in dff

    ReplyDelete

Post a Comment

Popular posts from this blog

How To Enable / Disable Forms Personalization Option

Forms Personalization gives great flexibility to execute custom business logic without performing so much of technical work. To start forms personalization navigate to Help -> Diagnostics -> Custom Code -> Personalize But many time when we click on personalize it give below error  " Function is not available for this respnosibility. Change responsibilities or contact your System Administrator " To Enable access to forms personalization function we need to set below profile option.  -  Utilities:Diagnostics -> Yes / No It determines the diagnostics option is enabled for a user / responsibility or site, depending on the level profile option is set. Navigate to System Administrator -> Profile -> System Query for your user / responsibility for which you want to provide access. Set the value to 'Yes' , If you want allow access to forms personalization Since we change the profile option please change the respons...

Query to find Operating Unit, Business Group and Legal Entity Information

SELECT   DISTINCT   hrl . country ,                  hroutl_bg . name              bg ,                  hroutl_bg . organization_id ,                  lep . legal_entity_id ,                  lep . name                    legal_entity ,                  hroutl_ou . name              ou_name ,               ...

Oracle Purchasing – Receipt Accounting

Oracle Purchasing – Receipt Accounting (Accrue On Receipt and Accrue at Period End) Inventory Accruals: Inventory and Purchasing provides visibility and control of accrued liabilities for inventory items. Purchasing automatically records the accrued liability for the inventory items at the time of receipt. This transaction is automatically recorded in the general ledger at the time of receipt. The inventory expense is recorded at delivery if Standard Delivery is used and at receipt if Direct Delivery used. Expense Accruals: Purchasing optionally accrues un-invoiced receipts of non-inventory items when a period is closed. Purchasing automatically creates a balanced journal entry for each receipt un-invoiced at period end which can be reversed at the beginning of the next period. Navigation: India Local Purchasing > Oracle Purchasing > Setup > Organizations > Purchasing Options Difference between 'Accrue On Receipt' and 'Accrue at Per...