P_WhereUsdIntOrdAlloc
P_WhereUsdIntOrdAlloc is a Composite CDS View in SAP S/4HANA. It reads from 5 data sources (I_AllocationKeyField, I_AllocationKeyField, I_AllocationKeyField, I_InternalOrder, I_InternalOrder) and exposes 60 fields with key fields InternalOrder, AllocationType, AllocationCycle, AllocationCycleStartDate, AllocationCycleSegment. It has 1 association to related views.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| I_AllocationKeyField | _AllocationKeyField | inner |
| I_AllocationKeyField | _AllocationKeyField | inner |
| I_AllocationKeyField | I_AllocationKeyField | union_all |
| I_InternalOrder | I_InternalOrder | from |
| I_InternalOrder | I_InternalOrder | union_all |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_WhereUsdIntOrdAllocPlnCat | _AllocationPlanCategory | $projection.AllocationType = _AllocationPlanCategory.AllocationType and $projection.AllocationCycle = _AllocationPlanCategory.AllocationCycle and $projection.AllocationCycleStartDate = _AllocationPlanCategory.AllocationCycleStartDate |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (60)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InternalOrder | I_InternalOrder | InternalOrder | Order |
| KEY | AllocationType | I_AllocationKeyField | AllocationType | Table |
| KEY | AllocationCycle | I_AllocationKeyField | AllocationCycle | Cycle |
| KEY | AllocationCycleStartDate | I_AllocationKeyField | AllocationCycleStartDate | Valid From |
| KEY | AllocationCycleSegment | I_AllocationKeyField | AllocationCycleSegment | Segment Number |
| KEY | AllocationSetType | I_AllocationKeyField | AllocationSetType | Type of Set |
| KEY | AllocDocumentSequenceNumber | I_AllocationKeyField | AllocDocumentSequenceNumber | Table position |
| AllocationFieldMinimumValue | I_AllocationKeyField | AllocationFieldMinimumValue | From Value | |
| AllocationFieldMaximumValue | I_AllocationKeyField | AllocationFieldMaximumValue | To Value | |
| AllocationSetId | I_AllocationKeyField | AllocationSetId | Group ID | |
| IntervalIsDefinedByHierarchy | ||||
| InternalOrderDescription | I_InternalOrder | InternalOrderDescription | Description | |
| ControllingArea | I_InternalOrder | ControllingArea | Controlling Area | |
| ControllingAreaName | ||||
| CompanyCode | I_InternalOrder | CompanyCode | Receiver Company Code | |
| CompanyCodeName | ||||
| OrderType | I_InternalOrder | OrderType | Order Type | |
| OrderTypeName | ||||
| _Cycle | I_AllocationKeyField | _Cycle | ||
| _Segment | I_AllocationKeyField | _Segment | ||
| InternalOrder | Order | |||
| KEY | AllocationType | I_AllocationKeyField | AllocationType | Table |
| KEY | AllocationCycle | I_AllocationKeyField | AllocationCycle | Cycle |
| KEY | AllocationCycleStartDate | I_AllocationKeyField | AllocationCycleStartDate | Valid From |
| KEY | AllocationCycleSegment | I_AllocationKeyField | AllocationCycleSegment | Segment Number |
| KEY | AllocationSetType | I_AllocationKeyField | AllocationSetType | Type of Set |
| KEY | AllocDocumentSequenceNumber | I_AllocationKeyField | AllocDocumentSequenceNumber | Table position |
| AllocationFieldMinimumValue | I_AllocationKeyField | AllocationFieldMinimumValue | From Value | |
| AllocationFieldMaximumValue | I_AllocationKeyField | AllocationFieldMaximumValue | To Value | |
| AllocationSetId | I_AllocationKeyField | AllocationSetId | Group ID | |
| IntervalIsDefinedByHierarchy | ||||
| InternalOrderDescription | I_InternalOrder | InternalOrderDescription | Description | |
| ControllingArea | I_InternalOrder | ControllingArea | Controlling Area | |
| ControllingAreaName | ||||
| CompanyCode | I_InternalOrder | CompanyCode | Receiver Company Code | |
| CompanyCodeName | ||||
| OrderType | I_InternalOrder | OrderType | Order Type | |
| OrderTypeName | ||||
| _Cycle | I_AllocationKeyField | _Cycle | ||
| _Segment | I_AllocationKeyField | _Segment | ||
| KEY | AllocationType | AllocationType | Table | |
| KEY | AllocationCycle | AllocationCycle | Cycle | |
| KEY | AllocationCycleStartDate | AllocationCycleStartDate | Valid From | |
| KEY | AllocationCycleSegment | AllocationCycleSegment | Segment Number | |
| KEY | AllocationSetType | AllocationSetType | Type of Set | |
| KEY | AllocDocumentSequenceNumber | AllocDocumentSequenceNumber | Table position | |
| AllocationFieldMinimumValue | AllocationFieldMinimumValue | From Value | ||
| AllocationFieldMaximumValue | AllocationFieldMaximumValue | To Value | ||
| AllocationSetId | AllocationSetId | Group ID | ||
| IntervalIsDefinedByHierarchy | ||||
| InternalOrderDescription | Description | |||
| ControllingArea | Controlling Area | |||
| ControllingAreaName | ||||
| CompanyCode | Receiver Company Code | |||
| CompanyCodeName | ||||
| OrderType | Order Type | |||
| OrderTypeName | ||||
| _Cycle | _Cycle | |||
| _Segment | _Segment | |||
| _AllocationPlanCategory | _AllocationPlanCategory |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_WhereUsdIntOrdAlloc.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW P_WhereUsdIntOrdAlloc AS
SELECT
I_InternalOrder.InternalOrder AS InternalOrder,
_AllocationKeyField.AllocationType AS AllocationType,
_AllocationKeyField.AllocationCycle AS AllocationCycle,
_AllocationKeyField.AllocationCycleStartDate AS AllocationCycleStartDate,
_AllocationKeyField.AllocationCycleSegment AS AllocationCycleSegment,
_AllocationKeyField.AllocationSetType AS AllocationSetType,
_AllocationKeyField.AllocDocumentSequenceNumber AS AllocDocumentSequenceNumber,
_AllocationKeyField.AllocationFieldMinimumValue AS AllocationFieldMinimumValue,
_AllocationKeyField.AllocationFieldMaximumValue AS AllocationFieldMaximumValue,
_AllocationKeyField.AllocationSetId AS AllocationSetId,
cast( '' as abap_boolean ) AS IntervalIsDefinedByHierarchy,
I_InternalOrder.InternalOrderDescription AS InternalOrderDescription,
I_InternalOrder.ControllingArea AS ControllingArea,
I_InternalOrder._ControllingArea.ControllingAreaName AS ControllingAreaName,
I_InternalOrder.CompanyCode AS CompanyCode,
I_InternalOrder._CompanyCode.CompanyCodeName AS CompanyCodeName,
I_InternalOrder.OrderType AS OrderType,
I_InternalOrder._InternalOrderTypeText[ Language = $session.system_language ].OrderTypeName AS OrderTypeName,
_AllocationKeyField._Cycle AS _Cycle,
_AllocationKeyField._Segment AS _Segment
FROM I_InternalOrder
INNER JOIN I_AllocationKeyField AS _AllocationKeyField ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_WhereUsdIntOrdAllocPlnCat AS _AllocationPlanCategory ON AllocationType = _AllocationPlanCategory.AllocationType AND AllocationCycle = _AllocationPlanCategory.AllocationCycle AND AllocationCycleStartDate = _AllocationPlanCategory.AllocationCycleStartDate -- association [0..1]
-- UNION ALL with additional select branch(es): I_InternalOrder, I_AllocationKeyField
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA