A_ProductionOrder
API Production Order
A_ProductionOrder is a Composite CDS View that provides data about "API Production Order" in SAP S/4HANA. It reads from 1 data source (I_MfgOrderDuration) and exposes 77 fields with key field ProductionOrder. It has 6 associations to related views. Part of development package ODATA_PP_API_PRODORDER.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MfgOrderDuration | I_MfgOrderDuration | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | A_ProductionOrderOperation | _ProductionOrderOperation | $projection.ProductionOrder = _ProductionOrderOperation.ManufacturingOrder |
| [0..*] | A_ProductionOrderComponent | _ProductionOrderComponent | $projection.ProductionOrder = _ProductionOrderComponent.ManufacturingOrder |
| [0..*] | A_ProductionOrderItem | _ProductionOrderItem | $projection.ProductionOrder = _ProductionOrderItem.ManufacturingOrder |
| [0..*] | A_ProductionOrderStatus | _ProductionOrderStatus | $projection.ProductionOrder = _ProductionOrderStatus.ManufacturingOrder |
| [0..*] | A_ProductionRsceTools | _ProductionRsceTools | $projection.ProductionOrder = _ProductionRsceTools.ManufacturingOrder |
| [1..1] | E_LogisticsOrder | _Extension | $projection.ProductionOrder = _Extension.OrderID |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | API Production Order | view | |
| VDM.viewType | #COMPOSITE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.representativeKey | ProductionOrder | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view |
Fields (77)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProductionOrder | ManufacturingOrder | Production Order | |
| ProductionPlant | ProductionPlant | Prod plnt | ||
| OrderInternalBillOfOperations | OrderInternalBillOfOperations | Order Internal Bill of Operations | ||
| OrderIsCreated | OrderIsCreated | |||
| OrderIsReleased | OrderIsReleased | |||
| OrderIsPrinted | OrderIsPrinted | |||
| OrderIsConfirmed | OrderIsConfirmed | |||
| OrderIsPartiallyConfirmed | OrderIsPartiallyConfirmed | |||
| OrderIsDelivered | OrderIsDelivered | |||
| OrderIsDeleted | OrderIsDeleted | |||
| OrderIsPreCosted | OrderIsPreCosted | |||
| SettlementRuleIsCreated | SettlementRuleIsCreated | |||
| OrderIsPartiallyReleased | OrderIsPartiallyReleased | |||
| OrderIsLocked | OrderIsLocked | |||
| OrderIsTechnicallyCompleted | OrderIsTechnicallyCompleted | |||
| OrderIsClosed | OrderIsClosed | |||
| OrderIsPartiallyDelivered | OrderIsPartiallyDelivered | |||
| OrderIsMarkedForDeletion | OrderIsMarkedForDeletion | |||
| SettlementRuleIsCrtedManually | SettlementRuleIsCrtedManually | |||
| OrderIsScheduled | OrderIsScheduled | |||
| OrderHasGeneratedOperations | OrderHasGeneratedOperations | |||
| OrderIsToBeHandledInBatches | OrderIsToBeHandledInBatches | |||
| MaterialAvailyIsNotChecked | MaterialAvailyIsNotChecked | |||
| Material | Material | Vehicle Model | ||
| MaterialName | ||||
| ProductionUnit | ProductionUnit | |||
| TotalQuantity | MfgOrderPlannedTotalQty | |||
| ManufacturingOrderType | ManufacturingOrderType | |||
| MRPArea | MRPArea | MRP Area | ||
| ManufacturingObject | ObjectInternalID | Object number | ||
| Plant | MRPPlant | Plant | ||
| MfgOrderConfirmedYieldQty | MfgOrderConfirmedYieldQty | |||
| MfgOrderPlannedStartDate | MfgOrderPlannedStartDate | |||
| MfgOrderPlannedStartTime | MfgOrderPlannedStartTime | |||
| MfgOrderPlannedEndDate | MfgOrderPlannedEndDate | |||
| MfgOrderPlannedEndTime | MfgOrderPlannedEndTime | |||
| MfgOrderScheduledStartDate | MfgOrderScheduledStartDate | |||
| MfgOrderScheduledStartTime | MfgOrderScheduledStartTime | |||
| MfgOrderScheduledEndDate | MfgOrderScheduledEndDate | |||
| MfgOrderScheduledEndTime | MfgOrderScheduledEndTime | |||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| PlannedOrder | PlannedOrder | |||
| CustomerName | ||||
| WBSElement | ||||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| WBSDescription | _WBSElement | WBSDescription | WBS Element Name | |
| CompanyCode | CompanyCode | Receiver Company Code | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| PlannedCostsCostingVariant | PlannedCostsCostingVariant | Plnd Costing Variant | ||
| ActualCostsCostingVariant | ActualCostsCostingVariant | Act. Costing Variant | ||
| UserID | _MRPController | UserID | User Name | |
| ProductionVersion | ProductionVersion | Version ID | ||
| MRPController | MRPController | MRP Controller | ||
| ProductionSupervisor | ProductionSupervisor | Prodn Supervisor | ||
| ManufacturingOrderCategory | ManufacturingOrderCategory | |||
| _ProductionOrderOperation | _ProductionOrderOperation | |||
| _ProductionOrderComponent | _ProductionOrderComponent | |||
| _ProductionOrderStatus | _ProductionOrderStatus | |||
| _ProductionOrderItem | _ProductionOrderItem | |||
| _ProductionRsceTools | _ProductionRsceTools | |||
| BusinessArea | BusinessArea | Business Area | ||
| MfgOrderPlannedScrapQty | MfgOrderPlannedScrapQty | |||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ManufacturingOrderImportance | ManufacturingOrderImportance | |||
| OrderSequenceNumber | OrderSequenceNumber | |||
| MfgOrderCreationDate | MfgOrderCreationDate | Time Stamp | ||
| MfgOrderCreationTime | MfgOrderCreationTime | Time of Change | ||
| MfgOrderActualReleaseDate | MfgOrderActualReleaseDate | |||
| GoodsRecipientName | GoodsRecipientName | Recipient Name | ||
| MaterialGoodsReceiptDuration | MaterialGoodsReceiptDuration | GR proc. time | ||
| InventoryUsabilityCode | InventoryUsabilityCode | Stock Type | ||
| UnloadingPointName | UnloadingPointName | Unloading Point Name | ||
| QuantityDistributionKey | QuantityDistributionKey | Distribution | ||
| StockSegment | StockSegment | Stock Segment | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| BasicSchedulingType | BasicSchedulingType | Scheduling type |
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 A_ProductionOrder.
-- 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 A_ProductionOrder AS
SELECT
ManufacturingOrder AS ProductionOrder,
ProductionPlant,
OrderInternalBillOfOperations,
OrderIsCreated,
OrderIsReleased,
OrderIsPrinted,
OrderIsConfirmed,
OrderIsPartiallyConfirmed,
OrderIsDelivered,
OrderIsDeleted,
OrderIsPreCosted,
SettlementRuleIsCreated,
OrderIsPartiallyReleased,
OrderIsLocked,
OrderIsTechnicallyCompleted,
OrderIsClosed,
OrderIsPartiallyDelivered,
OrderIsMarkedForDeletion,
SettlementRuleIsCrtedManually,
OrderIsScheduled,
OrderHasGeneratedOperations,
OrderIsToBeHandledInBatches,
MaterialAvailyIsNotChecked,
Material,
_Material._Text[1: Language=$session.system_language].MaterialName AS MaterialName,
ProductionUnit,
MfgOrderPlannedTotalQty AS TotalQuantity,
ManufacturingOrderType,
MRPArea,
ObjectInternalID AS ManufacturingObject,
MRPPlant AS Plant,
MfgOrderConfirmedYieldQty,
MfgOrderPlannedStartDate,
MfgOrderPlannedStartTime,
MfgOrderPlannedEndDate,
MfgOrderPlannedEndTime,
MfgOrderScheduledStartDate,
MfgOrderScheduledStartTime,
MfgOrderScheduledEndDate,
MfgOrderScheduledEndTime,
SalesOrder,
SalesOrderItem,
PlannedOrder,
_PlannedOrder._Customer.CustomerName AS CustomerName,
cast( _WBSElement.WBSElement as rcpe_ps_posnr preserving type ) AS WBSElement,
WBSElementInternalID,
_WBSElement.WBSDescription AS WBSDescription,
CompanyCode,
FunctionalArea,
PlannedCostsCostingVariant,
ActualCostsCostingVariant,
_MRPController.UserID AS UserID,
ProductionVersion,
MRPController,
ProductionSupervisor,
ManufacturingOrderCategory,
BusinessArea,
MfgOrderPlannedScrapQty,
ProfitCenter,
ManufacturingOrderImportance,
OrderSequenceNumber,
MfgOrderCreationDate,
MfgOrderCreationTime,
MfgOrderActualReleaseDate,
GoodsRecipientName,
MaterialGoodsReceiptDuration,
InventoryUsabilityCode,
UnloadingPointName,
QuantityDistributionKey,
StockSegment,
StorageLocation,
BasicSchedulingType
FROM I_MfgOrderDuration
LEFT OUTER JOIN A_ProductionOrderOperation AS _ProductionOrderOperation ON ProductionOrder = _ProductionOrderOperation.ManufacturingOrder -- association [0..*]
LEFT OUTER JOIN A_ProductionOrderComponent AS _ProductionOrderComponent ON ProductionOrder = _ProductionOrderComponent.ManufacturingOrder -- association [0..*]
LEFT OUTER JOIN A_ProductionOrderItem AS _ProductionOrderItem ON ProductionOrder = _ProductionOrderItem.ManufacturingOrder -- association [0..*]
LEFT OUTER JOIN A_ProductionOrderStatus AS _ProductionOrderStatus ON ProductionOrder = _ProductionOrderStatus.ManufacturingOrder -- association [0..*]
LEFT OUTER JOIN A_ProductionRsceTools AS _ProductionRsceTools ON ProductionOrder = _ProductionRsceTools.ManufacturingOrder -- association [0..*]
LEFT OUTER JOIN E_LogisticsOrder AS _Extension ON ProductionOrder = _Extension.OrderID -- association [1..1]
;
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