C_MPEProdnOrderPover

DDL: C_MPEPRODNORDERPOVER Type: view_entity CONSUMPTION Package: ODATA_MPE_MFGORDER

Production Order Popover

C_MPEProdnOrderPover is a Consumption CDS View that provides data about "Production Order Popover" in SAP S/4HANA. It reads from 1 data source (P_MPEProdnOrderItemPover) and exposes 86 fields with key fields ManufacturingOrder, ManufacturingOrderItem. It has 9 associations to related views. It is exposed through 1 OData service (ASQL_F0251A). Part of development package ODATA_MPE_MFGORDER.

Data Sources (1)

SourceAliasJoin Type
P_MPEProdnOrderItemPover mfgorder from

Associations (9)

CardinalityTargetAliasCondition
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_Plant _ProductionPlant $projection.ProductionPlant = _ProductionPlant.Plant
[0..1] I_ProductionLine _ProductionLine $projection.Plant = _ProductionLine.Plant and $projection.ProductionLine = _ProductionLine.ProductionLine
[0..1] I_Customer _SoldToParty $projection.SoldToParty = _SoldToParty.Customer
[0..1] P_MPEProdnOrdMatlIsMissing _ProdnOrdMaterialMissing $projection.OrderInternalBillOfOperations = _ProdnOrdMaterialMissing.OrderInternalBillOfOperations and $projection.ManufacturingOrder = _ProdnOrdMaterialMissing.ManufacturingOrder
[0..1] P_MPEProdnOrdMissingMatl _ProdnOrdMissingMaterial $projection.OrderInternalBillOfOperations = _ProdnOrdMissingMaterial.OrderInternalBillOfOperations and $projection.ManufacturingOrder = _ProdnOrdMissingMaterial.ManufacturingOrder and _ProdnOrdMissingMaterial.ManufacturingOrderCategory = '10'
[1..1] P_MPEProdnOrdCurOpData _CurOp $projection.OrderInternalBillOfOperations = _CurOp.OrderInternalBillOfOperations and $projection.ManufacturingOrder = _CurOp.OrderID
[1..1] P_MPEProdnOrdNextOpData _NextOp $projection.OrderInternalBillOfOperations = _NextOp.OrderInternalBillOfOperations and $projection.ManufacturingOrder = _NextOp.OrderID
[1..1] I_UnitOfMeasure _ProdItemUnitBaseUnit $projection.MfgOrderItemProductionUnit = _ProdItemUnitBaseUnit.UnitOfMeasure

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Production Order Popover view
VDM.viewType #CONSUMPTION view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F0251A ASQL_F0251A C2 NOT_RELEASED

Fields (86)

KeyFieldSource TableSource FieldDescription
KEY ManufacturingOrder ManufacturingOrder Order
KEY ManufacturingOrderItem ManufacturingOrderItem Manufacturing Order Item
OrderInternalBillOfOperations P_MPEProdnOrderItemPover OrderInternalBillOfOperations Order Internal Bill of Operations
ManufacturingOrderCategory P_MPEProdnOrderItemPover ManufacturingOrderCategory
ProductionPlant P_MPEProdnOrderItemPover ProductionPlant Prod plnt
Material P_MPEProdnOrderItemPover Material Vehicle Model
MaterialName MaterialName Material Description
StatusName
ProductionMilestoneStatus ProductionMilestoneStatus
ManufacturingOrderImportance P_MPEProdnOrderItemPover ManufacturingOrderImportance
ManufacturingOrderType ManufacturingOrderType
ManufacturingOrderTypeName ManufacturingOrderTypeName
MfgOrderScheduledReleaseDate P_MPEProdnOrderItemPover MfgOrderScheduledReleaseDate
MfgOrderScheduledEndDate P_MPEProdnOrderItemPover MfgOrderScheduledEndDate
MfgOrderPlannedStartDate P_MPEProdnOrderItemPover MfgOrderPlannedStartDate
MfgOrderPlannedStartTime P_MPEProdnOrderItemPover MfgOrderPlannedStartTime
MfgOrderPlannedEndDate P_MPEProdnOrderItemPover MfgOrderPlannedEndDate
MfgOrderPlannedEndTime P_MPEProdnOrderItemPover MfgOrderPlannedEndTime
MfgOrderScheduledStartDate P_MPEProdnOrderItemPover MfgOrderScheduledStartDate
MfgOrderActualStartDate P_MPEProdnOrderItemPover MfgOrderActualStartDate
MfgOrderActualStartTime P_MPEProdnOrderItemPover MfgOrderActualStartTime
MfgOrderActualEndDate P_MPEProdnOrderItemPover MfgOrderActualEndDate
MaterialGoodsReceiptDuration MaterialGoodsReceiptDuration GR proc. time
ProductionUnit P_MPEProdnOrderItemPover ProductionUnit
MfgOrderItemProductionUnit MfgOrderItemProductionUnit
UnitOfMeasureNumberOfDecimals _ProdItemUnitBaseUnit UnitOfMeasureNumberOfDecimals
UnitOfMeasureDspNmbrOfDcmls _ProdItemUnitBaseUnit UnitOfMeasureDspNmbrOfDcmls
UnitOfMeasureCommercialName
MfgOrderPlannedTotalQty P_MPEProdnOrderItemPover MfgOrderPlannedTotalQty
MfgOrderItemPlannedTotalQty MfgOrderItemPlannedTotalQty
MfgOrderPlannedScrapQty MfgOrderPlannedScrapQty
MfgOrderItemPlannedScrapQty MfgOrderItemPlannedScrapQty
ActualDeliveredQuantity ActualDeliveredQuantity Delivered Quantity
MfgOrderItemGoodsReceiptQty MfgOrderItemGoodsReceiptQty
ExpectedDeviationQuantity ExpectedDeviationQuantity
OpenQuantity PBE Entry Open Qty
ProductionVersion ProductionVersion Version ID
ProductionVersionText ProductionVersionText
Plant Plant Valuation Area
ProductionLine ProductionLine Production Line
WorkCenterText WorkCenterText Work Center Text
MissingMaterialelseendasMissingMaterial
MaterialComponentIsMissing
OrderExecutionStartIsLate OrderExecutionStartIsLate
OrderExecutionEndIsLate OrderExecutionEndIsLate
MRPPlant P_MPEProdnOrderItemPover MRPPlant Plant
MRPController MRPController MRP Controller
MRPControllerName MRPControllerName Controller name
ProductionSupervisor ProductionSupervisor Prodn Supervisor
ProductionSupervisorName ProductionSupervisorName
CurOperationendasCurOperation
CurOperationTextendasCurOperationText
CurOperationQtyendasCurOperationQty
NextOperationendasNextOperation
NextOperationTextendasNextOperationText
NextOperationUnitendasNextOperationUnit
NextOperationQtyendasNextOperationQty
LeadingMfgOrderMaterial LeadingMfgOrderMaterial Vehicle Model
LeadingMfgOrderMaterialName LeadingMfgOrderMaterialName
LeadingOrder P_MPEProdnOrderItemPover LeadingOrder Last order
SDDocument SD Document
SDDocumentItem
SDDocumentCategory SDDocumentCategory Document Cat.
SDDocumentCategoryName SDDocumentCategoryName
SoldToParty SoldToParty Sold-to Party
CustomerName CustomerName Name of Customer
AuthorizationGroup AuthorizationGroup AuthorizGroup
WBSElement WBSElement WBS Internal ID
WBSDescription WBSDescription WBS Element Name
ProjectResponsiblePerson ProjectResponsiblePerson
ProjectResponsiblePersonName ProjectResponsiblePersonName
Project Project WBS Element
ProjectDescription ProjectDescription Project Name
LastChangeDateTime Timestamp
_OrdInternalBillOfOperations _OrdInternalBillOfOperations
_MfgOrderCategory _MfgOrderCategory
_ProductionPlant _ProductionPlant
_Material _Material
_MfgOrderType _MfgOrderType
_ProductionVersion _ProductionVersion
_Plant _Plant
_ProductionLine _ProductionLine
_MRPPlant _MRPPlant
_MRPController P_MPEProdnOrderItemPover _MRPController
_ProductionSupervisor _ProductionSupervisor
_SoldToParty _SoldToParty

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_MPEProdnOrderPover.
-- 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 C_MPEProdnOrderPover AS
SELECT
  ManufacturingOrder,
  ManufacturingOrderItem,
  mfgorder.OrderInternalBillOfOperations AS OrderInternalBillOfOperations,
  mfgorder.ManufacturingOrderCategory AS ManufacturingOrderCategory,
  mfgorder.ProductionPlant AS ProductionPlant,
  mfgorder.Material AS Material,
  MaterialName,
  mfgorder._StatusText.StatusName AS StatusName,
  ProductionMilestoneStatus,
  mfgorder.ManufacturingOrderImportance AS ManufacturingOrderImportance,
  ManufacturingOrderType,
  ManufacturingOrderTypeName,
  mfgorder.MfgOrderScheduledReleaseDate AS MfgOrderScheduledReleaseDate,
  mfgorder.MfgOrderScheduledEndDate AS MfgOrderScheduledEndDate,
  mfgorder.MfgOrderPlannedStartDate AS MfgOrderPlannedStartDate,
  mfgorder.MfgOrderPlannedStartTime AS MfgOrderPlannedStartTime,
  mfgorder.MfgOrderPlannedEndDate AS MfgOrderPlannedEndDate,
  mfgorder.MfgOrderPlannedEndTime AS MfgOrderPlannedEndTime,
  mfgorder.MfgOrderScheduledStartDate AS MfgOrderScheduledStartDate,
  mfgorder.MfgOrderActualStartDate AS MfgOrderActualStartDate,
  mfgorder.MfgOrderActualStartTime AS MfgOrderActualStartTime,
  mfgorder.MfgOrderActualEndDate AS MfgOrderActualEndDate,
  MaterialGoodsReceiptDuration,
  mfgorder.ProductionUnit AS ProductionUnit,
  MfgOrderItemProductionUnit,
  _ProdItemUnitBaseUnit.UnitOfMeasureNumberOfDecimals AS UnitOfMeasureNumberOfDecimals,
  _ProdItemUnitBaseUnit.UnitOfMeasureDspNmbrOfDcmls AS UnitOfMeasureDspNmbrOfDcmls,
  _ProdItemUnitBaseUnit._Text[1: Language = $session.system_language ].UnitOfMeasureCommercialName AS UnitOfMeasureCommercialName,
  mfgorder.MfgOrderPlannedTotalQty AS MfgOrderPlannedTotalQty,
  MfgOrderItemPlannedTotalQty,
  MfgOrderPlannedScrapQty,
  MfgOrderItemPlannedScrapQty,
  ActualDeliveredQuantity,
  MfgOrderItemGoodsReceiptQty,
  ExpectedDeviationQuantity,
  cast(OpenQuantity as abap.quan(13, 3)) AS OpenQuantity,
  ProductionVersion,
  ProductionVersionText,
  Plant,
  ProductionLine,
  WorkCenterText,
  case _ProdnOrdMaterialMissing.MaterialComponentIsMissing when 'X' then _ProdnOrdMissingMaterial.MissingMaterial else '' end as MissingMaterial AS MissingMaterialelseendasMissingMaterial,
  cast(_ProdnOrdMaterialMissing.MaterialComponentIsMissing as xfehl preserving type) AS MaterialComponentIsMissing,
  OrderExecutionStartIsLate,
  OrderExecutionEndIsLate,
  mfgorder.MRPPlant AS MRPPlant,
  MRPController,
  MRPControllerName,
  ProductionSupervisor,
  ProductionSupervisorName,
  case when OrderStatus = 'I0012' or OrderStatus = 'I0076' then '' else _CurOp.CurOperation end as CurOperation AS CurOperationendasCurOperation,
  case when OrderStatus = 'I0012' or OrderStatus = 'I0076' then '' else _CurOp.CurOperationText end as CurOperationText AS CurOperationTextendasCurOperationText,
  case when OrderStatus = 'I0012' or OrderStatus = 'I0076' then cast( 0 as abap.quan(13,3) ) else _CurOp.CurOperationQty end as CurOperationQty AS CurOperationQtyendasCurOperationQty,
  case when OrderStatus = 'I0012' or OrderStatus = 'I0076' then '' else _NextOp.NextOperation end as NextOperation AS NextOperationendasNextOperation,
  case when OrderStatus = 'I0012' or OrderStatus = 'I0076' then '' else _NextOp.NextOperationText end as NextOperationText AS NextOperationTextendasNextOperationText,
  case when OrderStatus = 'I0012' or OrderStatus = 'I0076' then cast('' as abap.unit) else _NextOp.NextOperationUnit end as NextOperationUnit AS NextOperationUnitendasNextOperationUnit,
  case when OrderStatus = 'I0012' or OrderStatus = 'I0076' then cast( 0 as abap.quan(13,3) ) else _NextOp.NextOperationQty end as NextOperationQty AS NextOperationQtyendasNextOperationQty,
  LeadingMfgOrderMaterial,
  LeadingMfgOrderMaterialName,
  mfgorder.LeadingOrder AS LeadingOrder,
  cast(SDDocument as vbeln_va preserving type) AS SDDocument,
  cast(SDDocumentItem as abap.int4 ) AS SDDocumentItem,
  SDDocumentCategory,
  SDDocumentCategoryName,
  SoldToParty,
  CustomerName,
  AuthorizationGroup,
  WBSElement,
  WBSDescription,
  ProjectResponsiblePerson,
  ProjectResponsiblePersonName,
  Project,
  ProjectDescription,
  cast(LastChangeDateTime as vdm_lastchangedon ) AS LastChangeDateTime,
  mfgorder._MRPController AS _MRPController
FROM P_MPEProdnOrderItemPover AS mfgorder
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _ProductionPlant ON ProductionPlant = _ProductionPlant.Plant  -- association [1..1]
LEFT OUTER JOIN I_ProductionLine AS _ProductionLine ON Plant = _ProductionLine.Plant AND ProductionLine = _ProductionLine.ProductionLine  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _SoldToParty ON SoldToParty = _SoldToParty.Customer  -- association [0..1]
LEFT OUTER JOIN P_MPEProdnOrdMatlIsMissing AS _ProdnOrdMaterialMissing ON OrderInternalBillOfOperations = _ProdnOrdMaterialMissing.OrderInternalBillOfOperations AND ManufacturingOrder = _ProdnOrdMaterialMissing.ManufacturingOrder  -- association [0..1]
LEFT OUTER JOIN P_MPEProdnOrdMissingMatl AS _ProdnOrdMissingMaterial ON OrderInternalBillOfOperations = _ProdnOrdMissingMaterial.OrderInternalBillOfOperations AND ManufacturingOrder = _ProdnOrdMissingMaterial.ManufacturingOrder AND _ProdnOrdMissingMaterial.ManufacturingOrderCategory = '10'  -- association [0..1]
LEFT OUTER JOIN P_MPEProdnOrdCurOpData AS _CurOp ON OrderInternalBillOfOperations = _CurOp.OrderInternalBillOfOperations AND ManufacturingOrder = _CurOp.OrderID  -- association [1..1]
LEFT OUTER JOIN P_MPEProdnOrdNextOpData AS _NextOp ON OrderInternalBillOfOperations = _NextOp.OrderInternalBillOfOperations AND ManufacturingOrder = _NextOp.OrderID  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _ProdItemUnitBaseUnit ON MfgOrderItemProductionUnit = _ProdItemUnitBaseUnit.UnitOfMeasure  -- association [1..1]
;