P_WhereUsdIntOrdAlloc

DDL: P_WHEREUSDINTORDALLOC Type: view_entity COMPOSITE

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)

SourceAliasJoin 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)

CardinalityTargetAliasCondition
[0..1] P_WhereUsdIntOrdAllocPlnCat _AllocationPlanCategory $projection.AllocationType = _AllocationPlanCategory.AllocationType and $projection.AllocationCycle = _AllocationPlanCategory.AllocationCycle and $projection.AllocationCycleStartDate = _AllocationPlanCategory.AllocationCycleStartDate

Annotations (7)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;