fusion_describe_flexfields
Identify which DFF segment maps to which ATTRIBUTEn column by reading the flexfield definition, converting Descriptive Flexfield labels directly into queryable database columns.
Instructions
Which DFF segments exist, and which ATTRIBUTEn column holds each one.
Descriptive Flexfields are how Fusion customers add their own fields: the
data lands in the generic ATTRIBUTE1..n / ATTRIBUTE_NUMBERn /
ATTRIBUTE_DATEn columns of the base table, and only the DFF definition
says what each column means. This tool reads that definition (from
fnd_df_segments_b + _tl), so a spec that says "supply duration" can be
resolved to PO_HEADERS_ALL.ATTRIBUTE2 without asking a human.
Protocol for an unknown table:
fusion_describe_tablethe base table -- seeing ATTRIBUTE columns means a DFF may be in use.Call this with the DFF code, which is USUALLY the base table name without
_ALL(PO_HEADERS_ALL ->PO_HEADERS); pass a LIKE pattern (PO_HEADERS%) when unsure -- related codes like PO_HEADERS_SH show up too, and%at both ends casts wider.Project the returned COLUMN_NAME in your query (fusion_adhoc_query), aliased to the SEGMENT_CODE, and filter
ATTRIBUTE_CATEGORYby CONTEXT_CODE when the segment belongs to a context other thanGlobal Data Elements(global segments apply to every row).
SEGMENT_PROMPT is the label users see in the UI -- match the user's
wording against it. Context Data Element rows describe the context
chooser itself (ATTRIBUTE_CATEGORY), not a data segment.
Args:
flexfield: LIKE pattern over the DFF code, e.g. PO_HEADERS or
%INVOICE%. Case-insensitive.
context: Optional LIKE pattern over CONTEXT_CODE to narrow.
limit: Maximum segment rows to return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| context | No | ||
| flexfield | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||