Search Results qp_segments_b
Overview
QP_SEGMENTS_B is a core configuration table within the Oracle Advanced Pricing (QP) module. It stores the attribute (segment) definitions that make up pricing contexts in Oracle E-Business Suite releases 12.1.1 and 12.2.2. Every pricing qualifier, modifier, and price list line operates within a pricing context, and each context is composed of one or more segments defined in this table. QP_SEGMENTS_B is a child of QP_PRC_CONTEXTS_B, meaning the segments it defines belong to a specific pricing context identified by PRC_CONTEXT_ID.
The table is owned by the QP schema, holds 40 documented columns, and is marked VALID in the ETRM 12.2.2 physical schema. Under the heuristic Data Vault classification mined from the foreign key structure, the table is modeled as standalone — that is, it does not participate in a hub/link/satellite parent-child chain beyond its reference to CSF_TDS_SEGMENTS. Treat this as a modeling suggestion only; in native EBS terms it is a transactional reference (lookup) table.
Because pricing contexts drive eligibility and applicability of pricing rules, QP_SEGMENTS_B effectively controls how the pricing engine filters and matches pricing data at runtime. Misconfigured segments lead to incorrect qualifier matching, making this table a frequent subject of troubleshooting and reporting queries.
Key Information Stored
Although 40 columns exist, the following are the most significant for querying and understanding the data:
- SEGMENT_ID — Surrogate primary key. It also participates in the first unique business key QP_SEGMENTS_B_U1 (SEGMENT_ID, ZD_EDITION_NAME).
- SEGMENT_CODE — Short code identifying the attribute (e.g., CUSTOMER, ITEM). The second unique key QP_SEGMENTS_B_U2 is (SEGMENT_CODE, PRC_CONTEXT_ID, ZD_EDITION_NAME), making this the primary business-key candidate alongside context.
- PRC_CONTEXT_ID — Foreign-key-style reference to the parent pricing context in QP_PRC_CONTEXTS_B. Part of two unique key definitions.
- SEGMENT_MAPPING_COLUMN — The underlying database column that the segment maps to (e.g., an attribute on a pricing entity). Part of the third unique key QP_SEGMENTS_B_U3 (SEGMENT_MAPPING_COLUMN, PRC_CONTEXT_ID, ZD_EDITION_NAME).
- AVAILABILITY_IN_BASIC — Controls whether the segment is available in the Basic pricing product.
- SEEDED_FLAG, SEEDED_PRECEDENCE, USER_PRECEDENCE — Indicate whether the segment is Oracle-seeded or user-defined, and control the precedence ordering used when multiple segments apply.
- SEEDED_VALUESET_ID, USER_VALUESET_ID — Value set IDs used to validate allowable values for the segment.
- SEEDED_FORMAT_TYPE, USER_FORMAT_TYPE — Formatting rules applied to the segment values.
- APPLICATION_ID — The owning application for the segment definition.
- REQUIRED_FLAG, PARTY_HIERARCHY_ENABLED_FLAG — Booleans controlling whether the segment must be supplied and whether the party hierarchy is expanded when qualifying.
- CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN, PROGRAM_APPLICATION_ID, PROGRAM_ID, PROGRAM_UPDATE_DATE — Standard Oracle EBS who-columns used for auditing and concurrent program traceability.
- ZD_EDITION_NAME — Editioning column used in all three unique indexes. In 12.2.x it supports the online patching (editioning) model.
- ATTRIBUTE1 … ATTRIBUTE15 — Developer/extension descriptive flexfield or attribute columns for customer-specific extensions.
Common Use Cases and Queries
Typical usage revolves around auditing context definitions, migrating configuration between environments, and diagnosing qualifier matching failures. A common join lists all segments belonging to each pricing context:
- SELECT s.segment_code, s.segment_mapping_column, s.prc_context_id, s.availability_in_basic, s.required_flag FROM qp_segments_b s WHERE s.prc_context_id = :context_id;
- Query segments by code and context for a given edition: SELECT * FROM qp_segments_b WHERE segment_code = :code AND prc_context_id = :ctx AND zd_edition_name = 'ORA$BASE';
Reporting use cases include: identifying seeded versus user-defined segments via SEEDED_FLAG; auditing which contexts expose the PARTY_HIERARCHY feature; and building a configuration extract by joining QP_SEGMENTS_B to QP_PRC_CONTEXTS_B to produce a full context-to-segment mapping for FNDLOAD or migration scripts. Concurrent program traceability is possible using PROGRAM_APPLICATION_ID, PROGRAM_ID, and PROGRAM_UPDATE_DATE when an unexpected segment row appears.
Related Objects
The following objects are the most significant to understand alongside QP_SEGMENTS_B:
- QP_PRC_CONTEXTS_B — Parent table. Join on PRC_CONTEXT_ID to retrieve the context name and context code that owns each segment.
- QP_PRC_CONTEXTS_TL — Provides translated context names for reporting.
- CSF_TDS_SEGMENTS — Referenced indirectly via QP_SEGMENTS_B.SEGMENT_ID (business reference). Used for CRM/Foundation segment metadata.
- QP_PRC_CONTEXT_DENORM — Denormalized context-to-segment structure populated from this table and used by the pricing engine.
- FND_VS_VALUES_VL / FND_VS_VALUE_SETS — Resolve the SEEDED_VALUESET_ID and USER_VALUESET_ID references to actual value sets.
- FND_APPLICATION_VL — Resolves APPLICATION_ID to the owning application name.
These objects, combined with QP_SEGMENTS_B, provide a complete picture of pricing context configuration in Oracle EBS 12.1.1 and 12.2.2.
-
Table: QP_SEGMENTS_B
12.1.1
owner:QP, object_type:TABLE, fnd_design_data:QP.QP_SEGMENTS_B, object_name:QP_SEGMENTS_B, status:VALID, product: QP - Advanced Pricing , description: This table stores all the attribute details for all types of attributes. This table is a child table of QP_PRC_CONTEXTS_B. , implementation_dba_data: QP.QP_SEGMENTS_B ,
-
Table: QP_SEGMENTS_B
12.2.2
owner:QP, object_type:TABLE, fnd_design_data:QP.QP_SEGMENTS_B, object_name:QP_SEGMENTS_B, status:VALID, product: QP - Advanced Pricing , description: This table stores all the attribute details for all types of attributes. This table is a child table of QP_PRC_CONTEXTS_B. , implementation_dba_data: QP.QP_SEGMENTS_B ,
-
VIEW: QP.QP_SEGMENTS_B#
12.2.2
owner:QP, object_type:VIEW, object_name:QP_SEGMENTS_B#, status:VALID,
-
TRIGGER: APPS.QP_SEGMENTS_B+
12.2.2
owner:APPS, object_type:TRIGGER, object_name:QP_SEGMENTS_B+, status:VALID,
-
TRIGGER: APPS.QP_SEGMENTS_B+
12.2.2
-
VIEW: APPS.QP_PTE_CONTEXT_TYPES_V
12.1.1
-
VIEW: APPS.QP_PTE_CONTEXT_TYPES_V
12.2.2
-
View: QP_SEGMENTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:QP.QP_SEGMENTS_V, object_name:QP_SEGMENTS_V, status:VALID, product: QP - Advanced Pricing , description: This view contains all details about all the attributes along with thier translated names. This view is based on QP_SEGMENTS_B and QP_SEGMENTS_TL. , implementation_dba_data: APPS.QP_SEGMENTS_V ,
-
VIEW: APPS.QP_SEGMENTS_V
12.1.1
-
VIEW: APPS.QP_SEGMENTS_V
12.2.2
-
APPS.QP_SEGMENTS_PKG SQL Statements
12.2.2
-
APPS.QP_SEGMENTS_PKG SQL Statements
12.1.1
-
View: QP_SEGMENTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:QP.QP_SEGMENTS_V, object_name:QP_SEGMENTS_V, status:VALID, product: QP - Advanced Pricing , description: This view contains all details about all the attributes along with thier translated names. This view is based on QP_SEGMENTS_B and QP_SEGMENTS_TL. , implementation_dba_data: APPS.QP_SEGMENTS_V ,
-
APPS.QP_UTIL SQL Statements
12.2.2
-
APPS.QP_UTIL SQL Statements
12.1.1
-
SYNONYM: APPS.QP_SEGMENTS_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:QP_SEGMENTS_B, status:VALID,
-
VIEW: QP.QP_SEGMENTS_B#
12.2.2
-
SYNONYM: APPS.QP_SEGMENTS_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:QP_SEGMENTS_B, status:VALID,
-
APPS.QP_LOADER_DIST_PUB SQL Statements
12.2.2
-
APPS.QP_LOADER_DIST_PUB SQL Statements
12.1.1
-
12.2.2 DBA Data
12.2.2
-
FUNCTION: APPS.QP_SEGMENTS_B=
12.2.2
-
12.2.2 DBA Data
12.2.2
-
FUNCTION: APPS.QP_SEGMENTS_B=
12.2.2
owner:APPS, object_type:FUNCTION, object_name:QP_SEGMENTS_B=, status:VALID,
-
APPS.QP_ATM_UPGRADE SQL Statements
12.2.2
-
APPS.QP_ATM_UPGRADE SQL Statements
12.1.1
-
PACKAGE: APPS.QP_ATM_UPGRADE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:QP_ATM_UPGRADE, status:VALID,
-
VIEW: APPS.QP_QUALIFIER_CONTEXT_V
12.1.1
-
PACKAGE BODY: APPS.QP_SEGMENTS_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:QP_SEGMENTS_PKG, status:VALID,
-
VIEW: APPS.QP_QUALIFIER_CONTEXT_V
12.2.2
-
PACKAGE BODY: APPS.QP_LOADER_DIST_PUB
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:QP_LOADER_DIST_PUB, status:VALID,
-
PACKAGE BODY: APPS.QP_BLANKET_AGR_UTIL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:QP_BLANKET_AGR_UTIL, status:VALID,
-
PACKAGE: APPS.QP_ATM_UPGRADE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:QP_ATM_UPGRADE, status:VALID,
-
PACKAGE BODY: APPS.QP_BLANKET_AGR_UTIL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:QP_BLANKET_AGR_UTIL, status:VALID,
-
PACKAGE BODY: APPS.QP_LOADER_DIST_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:QP_LOADER_DIST_PUB, status:VALID,
-
PACKAGE BODY: APPS.QP_MASS_MAINTAIN_UTIL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:QP_MASS_MAINTAIN_UTIL, status:VALID,
-
PACKAGE BODY: APPS.QP_SEGMENTS_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:QP_SEGMENTS_PKG, status:VALID,
-
PACKAGE BODY: APPS.QP_MASS_MAINTAIN_UTIL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:QP_MASS_MAINTAIN_UTIL, status:VALID,
-
PACKAGE BODY: APPS.QP_VALIDATE_FORMULA_LINES
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:QP_VALIDATE_FORMULA_LINES, status:VALID,
-
PACKAGE BODY: APPS.QP_DATA_COMPARE_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:QP_DATA_COMPARE_PVT, status:VALID,
-
PACKAGE BODY: APPS.QP_DATA_COMPARE_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:QP_DATA_COMPARE_PVT, status:VALID,
-
PACKAGE BODY: APPS.QP_VALIDATE_FORMULA_LINES
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:QP_VALIDATE_FORMULA_LINES, status:VALID,
-
PACKAGE BODY: APPS.QP_FORMULA_LINES_UTIL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:QP_FORMULA_LINES_UTIL, status:VALID,
-
View: QP_PTE_CONTEXT_TYPES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:QP.QP_PTE_CONTEXT_TYPES_V, object_name:QP_PTE_CONTEXT_TYPES_V, status:VALID, product: QP - Advanced Pricing , description: This view is used by QPXPTMAP.fmb to display the all Pricing transaction entities for all the Context type for which at least one attribute is linked to that Pricing Transaction Entity. , implementation_dba_data: APPS.QP_PTE_CONTEXT_TYPES_V ,
-
PACKAGE BODY: APPS.QP_ATM_UPGRADE
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:QP_ATM_UPGRADE, status:VALID,
-
PACKAGE BODY: APPS.QP_LIMIT_ATTRS_UTIL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:QP_LIMIT_ATTRS_UTIL, status:VALID,
-
PACKAGE BODY: APPS.QP_SEG_UTIL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:QP_SEG_UTIL, status:VALID,
-
PACKAGE BODY: APPS.QP_CURR_DETAILS_UTIL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:QP_CURR_DETAILS_UTIL, status:VALID,
-
PACKAGE BODY: APPS.QP_CURR_DETAILS_UTIL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:QP_CURR_DETAILS_UTIL, status:VALID,
-
View: QP_PTE_CONTEXT_TYPES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:QP.QP_PTE_CONTEXT_TYPES_V, object_name:QP_PTE_CONTEXT_TYPES_V, status:VALID, product: QP - Advanced Pricing , description: This view is used by QPXPTMAP.fmb to display the all Pricing transaction entities for all the Context type for which at least one attribute is linked to that Pricing Transaction Entity. , implementation_dba_data: APPS.QP_PTE_CONTEXT_TYPES_V ,