C_MntrProdAllocOrderItem

DDL: C_MNTRPRODALLOCORDERITEM SQL: CMPAORDITM Type: view CONSUMPTION

Monitor Product Allocation Order Item

C_MntrProdAllocOrderItem is a Consumption CDS View that provides data about "Monitor Product Allocation Order Item" in SAP S/4HANA. It reads from 1 data source (P_MntrProdAllocOrderItem) and exposes 45 fields with key fields ProdAllocAssignedOrder, OrderItem, ProdAllocAssignedOrderType. It has 10 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_MntrProdAllocOrderItem P_MntrProdAllocOrderItem from

Associations (10)

CardinalityTargetAliasCondition
[0..*] C_MntrProdAllocOrderItemPerds _MntrProdAllocOrderItemPerds $projection.OrderItem = _MntrProdAllocOrderItemPerds.ProdAllocAssignedOrderItem and $projection.ProdAllocAssignedOrderType = _MntrProdAllocOrderItemPerds.ProdAllocAssignedOrderType and $projection.ProdAllocAssignedOrder = _MntrProdAllocOrderItemPerds.ProdAllocAssignedOrder
[0..*] I_MaterialText _MaterialText $projection.Material = _MaterialText.Material
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_Plant _ReceivingPlant $projection.ReceivingPlant = _ReceivingPlant.Plant
[0..1] I_Customer_VH _CustomerVH $projection.SoldToParty = _CustomerVH.Customer
[0..1] I_TotalBlockStatus _TotalBlockStatus $projection.TotalBlockStatus = _TotalBlockStatus.TotalBlockStatus
[0..1] I_DeliveryBlockStatus _DeliveryBlockStatus $projection.DeliveryBlockStatus = _DeliveryBlockStatus.DeliveryBlockStatus
[0..1] I_TotalDeliveryStatus _TotalDeliveryStatus $projection.TotalDeliveryStatus = _TotalDeliveryStatus.TotalDeliveryStatus
[0..1] I_SDProcessStatus _SDProcessStatus $projection.SDProcessStatus = _SDProcessStatus.SDProcessStatus
[0..1] I_ProdAllocATPStatus _ProdAllocATPStatus $projection.ProdAllocATPStatus = _ProdAllocATPStatus.ProdAllocATPStatus

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CMPAORDITM view
EndUserText.label Monitor Product Allocation Order Item view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
Metadata.allowExtensions true view
UI.headerInfo.typeName Order Item view
UI.headerInfo.typeNamePlural Order Items view
UI.headerInfo.title.value ProdAllocAssignedOrderItem view

Fields (45)

KeyFieldSource TableSource FieldDescription
KEY ProdAllocAssignedOrder Assigned Order
KEY OrderItem ProdAllocAssignedOrderItem Assigned Order Item
KEY ProdAllocAssignedOrderType ProdAllocAssignedOrderType Order Type
SalesDocumentType SalesDocumentType Sales Doc. Type
OrganizationDivision OrganizationDivision Org. Division
SalesOrganization SalesOrganization Sales Organization
DistributionChannel P_MntrProdAllocOrderItem DistributionChannel RefDistCh-Cust/Mat.
ProdAllocAssignedOrderItem
Plant Plant Valuation Area
Material Material Vehicle Model
ReceivingPlant ReceivingPlant Receiving Plant
SoldToParty SoldToParty Sold-to Party
PurchaseOrderByCustomer PurchaseOrderByCustomer Purchase Order Number
IsBusinessPurposeCompleted _CustomerVH IsBusinessPurposeCompleted Purpose Completed
SDProcessStatus SDProcessStatus
TotalBlockStatus TotalBlockStatus
DeliveryBlockStatus DeliveryBlockStatus
TotalDeliveryStatus TotalDeliveryStatus
ProdAllocationPeriodStartDate Requested Delivery Date
ProductAllocationPeriodEndDate Period End Date
RequestedDeliveryDate Requested Delivery Date
RequestedQuantityUnit RequestedQuantityUnit Requested Quantity Unit
RequestedQuantity Requested Quantity
ConfirmedQuantityUnit ConfirmedQuantityUnit
ConfirmedQuantity Quantity in UnE
DeliveredQuantityUnit DeliveredQuantityUnit
DeliveredQtyInOrderQtyUnit
ProdAllocATPStatus
HigherLevelItem Higher-Lev.Item
CreationDate CreationDate Time Stamp
CreatedByUserName CreatedByUserName Person Resp.
SDDocumentCategory SDDocumentCategory Document Cat.
ProductAllocationObject
ProdAllocCharcValCombn
_MntrProdAllocOrderItemPerds _MntrProdAllocOrderItemPerds
_MaterialText _MaterialText
_ReceivingPlant _ReceivingPlant
_Plant _Plant
_SDProcessStatus _SDProcessStatus
_TotalDeliveryStatus _TotalDeliveryStatus
_TotalBlockStatus _TotalBlockStatus
_DeliveryBlockStatus _DeliveryBlockStatus
_CustomerVH _CustomerVH
_ProdAllocAssignedOrderType _ProdAllocAssignedOrderType
_ProdAllocATPStatus _ProdAllocATPStatus

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 C_MntrProdAllocOrderItem.
-- 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.
-- SQL view name: CMPAORDITM

CREATE VIEW C_MntrProdAllocOrderItem AS
SELECT
  cast ( ProdAllocAssignedOrder as prodallocorder preserving type ) AS ProdAllocAssignedOrder,
  ProdAllocAssignedOrderItem AS OrderItem,
  ProdAllocAssignedOrderType,
  SalesDocumentType,
  OrganizationDivision,
  SalesOrganization,
  P_MntrProdAllocOrderItem.DistributionChannel AS DistributionChannel,
  cast(concat_with_space(ltrim(ProdAllocAssignedOrder,'0'), concat_with_space('-', ltrim(ProdAllocAssignedOrderItem, '0'), 1), 1) as prodallocassignedorderitemid) AS ProdAllocAssignedOrderItem,
  Plant,
  Material,
  ReceivingPlant,
  SoldToParty,
  PurchaseOrderByCustomer,
  _CustomerVH.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
  SDProcessStatus,
  TotalBlockStatus,
  DeliveryBlockStatus,
  TotalDeliveryStatus,
  cast(RequestedDeliveryDate as pal_reqddeliverydate) AS ProdAllocationPeriodStartDate,
  cast(ProductAllocationPeriodEndDate as pal_latestdeliverydate) AS ProductAllocationPeriodEndDate,
  cast(RequestedDeliveryDate as pal_reqddeliverydate_earliest) AS RequestedDeliveryDate,
  RequestedQuantityUnit,
  cast(RequestedQuantity as pal_requestedquantity) AS RequestedQuantity,
  ConfirmedQuantityUnit,
  cast(ConfirmedQuantity as prodallocconfirmationquantity) AS ConfirmedQuantity,
  DeliveredQuantityUnit,
  cast(DeliveredQtyInOrderQtyUnit as pal_deliveredquantity) AS DeliveredQtyInOrderQtyUnit,
  cast(P_MntrProdAllocOrderItem.ProdAllocATPStatus as prodallocatpstatus) AS ProdAllocATPStatus,
  cast(HigherLevelItem as prodallochigherlevelorderitem) AS HigherLevelItem,
  CreationDate,
  CreatedByUserName,
  SDDocumentCategory,
  cast( ' ' as productallocationobject preserving type ) AS ProductAllocationObject,
  cast( ' ' as prodalloccharcvalcombn ) AS ProdAllocCharcValCombn
FROM P_MntrProdAllocOrderItem
LEFT OUTER JOIN C_MntrProdAllocOrderItemPerds AS _MntrProdAllocOrderItemPerds ON OrderItem = _MntrProdAllocOrderItemPerds.ProdAllocAssignedOrderItem AND ProdAllocAssignedOrderType = _MntrProdAllocOrderItemPerds.ProdAllocAssignedOrderType AND ProdAllocAssignedOrder = _MntrProdAllocOrderItemPerds.ProdAllocAssignedOrder  -- association [0..*]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material  -- association [0..*]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _ReceivingPlant ON ReceivingPlant = _ReceivingPlant.Plant  -- association [0..1]
LEFT OUTER JOIN I_Customer_VH AS _CustomerVH ON SoldToParty = _CustomerVH.Customer  -- association [0..1]
LEFT OUTER JOIN I_TotalBlockStatus AS _TotalBlockStatus ON TotalBlockStatus = _TotalBlockStatus.TotalBlockStatus  -- association [0..1]
LEFT OUTER JOIN I_DeliveryBlockStatus AS _DeliveryBlockStatus ON DeliveryBlockStatus = _DeliveryBlockStatus.DeliveryBlockStatus  -- association [0..1]
LEFT OUTER JOIN I_TotalDeliveryStatus AS _TotalDeliveryStatus ON TotalDeliveryStatus = _TotalDeliveryStatus.TotalDeliveryStatus  -- association [0..1]
LEFT OUTER JOIN I_SDProcessStatus AS _SDProcessStatus ON SDProcessStatus = _SDProcessStatus.SDProcessStatus  -- association [0..1]
LEFT OUTER JOIN I_ProdAllocATPStatus AS _ProdAllocATPStatus ON ProdAllocATPStatus = _ProdAllocATPStatus.ProdAllocATPStatus  -- association [0..1]
;