I_ManufacturingOrderItem
Manufacturing Order Item
I_ManufacturingOrderItem (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
ProductionOrderItem · Manufacturing
I_ManufacturingOrderItem is a Basic CDS View (Dimension) that provides data about "Manufacturing Order Item" in SAP S/4HANA. It reads from 2 data sources (I_LogisticsOrder, I_OrderItem) and exposes 167 fields with key fields ManufacturingOrder, ManufacturingOrderItem. It has 33 associations to related views.
SAP Help Documentation
| Category | CDS Views for Discrete and Process Manufacturing |
|---|---|
| Data Category | Dimension |
With this CDS view you can retrieve manufacturing order item data (table AFPO ). This CDS view provides the data to answer the following business questions: Which items exist for a manufacturing order? Which product belongs to a manufacturing order item? Which manufacturing order items are completely delivered? What are the delivery tolerances of a manufacturing order item? Which storage location and batches are assigned to a manufacturing order item? What are the goods receipt quantities of manufacturing order items? Which manufacturing order items were created with reference to a sales order or a WBS element?
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: C_AFKO_ATY (CIM: Order category) C_AFKO_AWA (CIM: Prod.Order/Order Type/Plant/Activity) C_AFKO_AWK (CIM: Plant for order type of order)
Structure
Important Fields Important fields in this view include the following: Field Name Description ManufacturingOrder Manufacturing Order ManufacturingOrderItem Manufacturing Order Item ManufacturingOrderCategory Order Category ManufacturingOrderType Order Type Product Product ProductionPlant Production Plant MRPController MRP Controller ProductionSupervisor Production Supervisor MRPArea MRP Area SalesOrder Sales Order SalesOrderItem Sales Order Item WBSElementInternalID_2 WBS Internal ID QuotaArrangement Quota Arrangement QuotaArrangementItem Quota Arrangement Item SerialNumberAssgmtProfile Serial Number Profile NumberOfSerialNumbers Number of Serial Numbers UnderdelivTolrtdLmtRatioInPct Underdelivery Tolerance OverdelivTolrtdLmtRatioInPct Overdelivery Tolerance StorageLocation Storage Location Batch Batch InventoryValuationType Valuation Type InventorySpecialStockType Special Stock Type GoodsRecipientName Goods Recipient UnloadingPointName Unloading Point MfgOrderItemScheduledEndDate Order Item Scheduled End Date MfgOrderItemPlndDeliveryDate Planned Delivery MfgOrderItemActualDeliveryDate Actual Delivery Date MfgOrderItemTotalCmtmtDate Commitment Date ProductionUnit Production Unit MfgOrderItemPlannedTotalQty Total Quantity MfgOrderItemPlannedScrapQty Planned Scrap MfgOrderItemGoodsReceiptQty GR Quantity MfgOrderItemActualDeviationQty Expected Deviation PlannedOrder Planned Order AccountAssignmentCategory Account Assignment Category
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Manufacturing |
| Application Component | PP-VDM |
| Capabilities | Analytical Dimension, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities, Data Source for Data Extraction, Data Source in SQL Select |
| Package | Manufacturing for SAP S/4HANA Cloud Private Edition |
| Description | <p>With this CDS view you can retrieve manufacturing order item data (table AFPO). </p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>Which items exist for a manufacturing order?</p></li> <li><p>Which product belongs to a manufacturing order item?</p></li> <li><p>Which manufacturing order items are completely delivered?</p></li> <li><p>What are the delivery tolerances of a manufacturing order item?</p></li> <li><p>Which storage location and batches are assigned to a manufacturing order item?</p></li> <li><p>What are the goods receipt quantities of manufacturing order items?</p></li> <li><p>Which manufacturing order items were created with reference to a sales order or a WBS element?</p></li> </ul> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_LogisticsOrder | head | inner |
| I_OrderItem | item | from |
Associations (33)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_MfgOrderCategory | _MfgOrderCategory | $projection.ManufacturingOrderCategory = _MfgOrderCategory.ManufacturingOrderCategory |
| [1..1] | I_MfgOrderType | _MfgOrderType | $projection.ManufacturingOrderType = _MfgOrderType.ManufacturingOrderType |
| [0..1] | I_MRPController | _MRPController | $projection.ProductionPlant = _MRPController.Plant and $projection.MRPController = _MRPController.MRPController |
| [0..1] | I_ProductionSupervisor | _ProductionSupervisor | $projection.ProductionPlant = _ProductionSupervisor.Plant and $projection.ProductionSupervisor = _ProductionSupervisor.ProductionSupervisor |
| [1..1] | I_ReservationDocumentHeader | _Reservation | $projection.Reservation = _Reservation.Reservation |
| [0..1] | I_Product | _Product | $projection.Product = _Product.Product |
| [0..1] | I_ProductPlant | _ProductPlant | $projection.ProductionPlant = _ProductPlant.Plant and $projection.Product = _ProductPlant.Product |
| [0..1] | I_ProductPlant | _ProductPlanningPlant | $projection.PlanningPlant = _ProductPlanningPlant.Plant and $projection.Product = _ProductPlanningPlant.Product |
| [0..1] | I_ProductPlantBasic | _ProductPlant2 | $projection.ProductionPlant = _ProductPlant2.Plant and $projection.Product = _ProductPlant2.Product |
| [0..1] | I_ProductPlantBasic | _ProductPlanningPlant2 | $projection.PlanningPlant = _ProductPlanningPlant2.Plant and $projection.Product = _ProductPlanningPlant2.Product |
| [0..1] | I_ProductSupplyPlanning | _ProductSupplyPlanning | $projection.PlanningPlant = _ProductSupplyPlanning.Plant and $projection.Product = _ProductSupplyPlanning.Product |
| [0..1] | I_ProductStorageLocation | _ProductStorageLocation | $projection.Material = _ProductStorageLocation.Product and $projection.ProductionPlant = _ProductStorageLocation.Plant and $projection.StorageLocation = _ProductStorageLocation.StorageLocation |
| [0..1] | I_ProductStorageLocationBasic | _ProductStorageLocation2 | $projection.Material = _ProductStorageLocation2.Product and $projection.ProductionPlant = _ProductStorageLocation2.Plant and $projection.StorageLocation = _ProductStorageLocation2.StorageLocation |
| [0..*] | I_ProductUnitsOfMeasure | _ProductUnitsOfMeasure | $projection.Product = _ProductUnitsOfMeasure.Product |
| [0..1] | I_ProductMRPArea | _ProductMRPArea | $projection.Product = _ProductMRPArea.Product and $projection.MRPArea = _ProductMRPArea.MRPArea |
| [0..1] | I_ProductPlantMRP | _ProductPlantMRPArea | $projection.Product = _ProductPlantMRPArea.Product and $projection.ProductionPlant = _ProductPlantMRPArea.Plant and $projection.MRPArea = _ProductPlantMRPArea.MRPArea |
| [0..1] | I_Batch | _Batch | $projection.ProductionPlant = _Batch.Plant and $projection.Product = _Batch.Material and $projection.Batch = _Batch.Batch |
| [0..1] | I_Currency | _Currency | $projection.CompanyCodeCurrency = _Currency.Currency -- to root: Header |
| [1..1] | I_ManufacturingOrder | _MfgOrder | $projection.ManufacturingOrder = _MfgOrder.ManufacturingOrder -- to child: Serial numbers |
| [0..*] | I_MfgOrderItemSerialNumber | _MfgOrderItemSrlNmbr | $projection.ManufacturingOrder = _MfgOrderItemSrlNmbr.ManufacturingOrder and $projection.ManufacturingOrderItem = _MfgOrderItemSrlNmbr.ManufacturingOrderItem -- to child: Longtext |
| [0..*] | I_MfgOrderItemLongText | _MfgOrderItemLongText | $projection.ManufacturingOrder = _MfgOrderItemLongText.ManufacturingOrder and $projection.ManufacturingOrderItem = _MfgOrderItemLongText.ManufacturingOrderItem -- start new associations for full coverage of text relations |
| [1..1] | I_Plant | _ProductionPlantText | $projection.ProductionPlant = _ProductionPlantText.Plant |
| [0..1] | I_Plant | _PlanningPlantText | $projection.PlanningPlant = _PlanningPlantText.Plant |
| [0..*] | I_MaterialText | _MaterialText | $projection.Material = _MaterialText.Material |
| [0..*] | I_ProductText | _ProductText | $projection.Product = _ProductText.Product |
| [0..1] | I_ProductionVersion | _ProductionVersionText | $projection.Material = _ProductionVersionText.Material and $projection.ProductionPlant = _ProductionVersionText.Plant and $projection.ProductionVersion = _ProductionVersionText.ProductionVersion |
| [0..1] | I_MRPArea | _MRPAreaText | $projection.MRPArea = _MRPAreaText.MRPArea |
| [0..1] | I_WBSElementBasicData | _WBSElementText | $projection.WBSElementInternalID_2 = _WBSElementText.WBSElementInternalID |
| [0..1] | I_StorageLocation | _StorageLocationText | $projection.ProductionPlant = _StorageLocationText.Plant and $projection.StorageLocation = _StorageLocationText.StorageLocation |
| [1..1] | I_StatusObject | _StatusObjectHeader | $projection.ManufacturingObject = _StatusObjectHeader.StatusObject |
| [1..1] | I_StatusObject | _StatusObjectItem | $projection.ObjectInternalID = _StatusObjectItem.StatusObject |
| [0..*] | I_BusinessAreaText | _BusinessAreaText | $projection.BusinessArea = _BusinessAreaText.BusinessArea |
| [0..1] | I_CompanyCode | _CompanyCodeText | $projection.CompanyCode = _CompanyCodeText.CompanyCode -- end new associations for full coverage of text relations |
Annotations (20)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMFGORDERITEM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.internalName | #LOCAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.representativeKey | ManufacturingOrderItem | view | |
| ObjectModel.sapObjectNodeType.name | ProductionOrderItem | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Manufacturing Order Item | view |
Fields (167)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ManufacturingOrder | Manufacturing Order ID | ||
| KEY | ManufacturingOrderItem | Manufacturing Order Item ID | ||
| ManufacturingOrderCategory | Manufacturing Order Category | |||
| ManufacturingOrderType | Manufacturing Order Type | |||
| OrderIsReleased | Indicator: Order is Released | |||
| IsMarkedForDeletion | I_OrderItem | IsMarkedForDeletion | Purch.org. data | |
| OrderItemIsNotRelevantForMRP | Indicator: Order Item is not Relevant for MRP | |||
| Material | I_OrderItem | Material | Material Number for Order | |
| Product | Product Number | |||
| ProductionPlant | Production Plant | |||
| MRPPlantasPlanningPlant | ||||
| MRPController | MRP Controller | |||
| ProductionSupervisor | Production Supervisor | |||
| Reservation | Number of reservation/dependent requirements | |||
| ProductionVersion | Production Version | |||
| MRPArea | MRP Area | |||
| SalesOrder | I_OrderItem | SalesOrder | SD Document | |
| SalesOrderItem | I_OrderItem | SalesOrderItem | Sales Order Item | |
| SalesOrderScheduleLine | I_OrderItem | SalesOrderScheduleLine | Sales Order Schedule | |
| WBSElementInternalID | I_OrderItem | WBSElementInternalID | Work Breakdown Structure Element Internal ID | |
| WBSElementInternalID_2 | WBS Element | |||
| QuotaArrangement | Quota Arrangement | |||
| QuotaArrangementItem | Quota Arrangement Item | |||
| SettlementReservation | I_OrderItem | SettlementReservation | Settlement Reservation | |
| SettlementReservationItem | I_OrderItem | SettlementReservationItem | Settlement Reservation Item | |
| CoProductReservation | I_OrderItem | CoProductReservation | Co-Product Reservation | |
| CoProductReservationItem | I_OrderItem | CoProductReservationItem | Co-Product Reservation Item | |
| MaterialProcurementCategory | I_OrderItem | MaterialProcurementCategory | Material Procurement Category | |
| MaterialProcurementType | I_OrderItem | MaterialProcurementType | Material Procurement Type | |
| SerialNumberAssgmtProfile | Serial Number Profile | |||
| NumberOfSerialNumbers | I_OrderItem | NumberOfSerialNumbers | Number of Serial Numbers | |
| MfgOrderItemReplnmtElmntType | I_OrderItem | MfgOrderItemReplnmtElmntType | Kanban Indicator | |
| ProductConfiguration | Product Configuration | |||
| ObjectInternalID | I_OrderItem | ObjectInternalID | Object Internal ID | |
| ManufacturingObject | I_LogisticsOrder | ObjectInternalID | Object Internal ID | |
| QuantityDistributionKey | I_OrderItem | QuantityDistributionKey | MRP Distribution Key | |
| EffectivityParameterVariant | I_OrderItem | EffectivityParameterVariant | Effectivity Parameter Variant | |
| OriginalEffctyParameterVariant | I_OrderItem | OriginalEffctyParameterVariant | Original Effectivity Parameter Variant | |
| GoodsReceiptIsExpected | I_OrderItem | GoodsReceiptIsExpected | Goods Receipt is Allowed and Expected | |
| GoodsReceiptIsNonValuated | I_OrderItem | GoodsReceiptIsNonValuated | Goods Receipt is Non-Valuated | |
| IsCompletelyDelivered | I_OrderItem | IsCompletelyDelivered | "Delivery Completed" Indicator | |
| MaterialGoodsReceiptDuration | I_OrderItem | MaterialGoodsReceiptDuration | Goods Receipt Processing Duration in Days | |
| UnderdelivTolrtdLmtRatioInPct | I_OrderItem | UnderdelivTolrtdLmtRatioInPct | Underdelivery Tolerance | |
| OverdelivTolrtdLmtRatioInPct | I_OrderItem | OverdelivTolrtdLmtRatioInPct | Overdelivery Tolerance | |
| UnlimitedOverdeliveryIsAllowed | I_OrderItem | UnlimitedOverdeliveryIsAllowed | Unlimited Overdelivery Allowed | |
| StorageLocation | Storage Location | |||
| Batch | I_OrderItem | Batch | Batch Number | |
| InventoryValuationType | I_OrderItem | InventoryValuationType | Inventory Valuation Type | |
| InventoryValuationCategory | I_OrderItem | InventoryValuationCategory | Valuation Category | |
| InventoryUsabilityCode | I_OrderItem | InventoryUsabilityCode | Inventory Usability Code | |
| InventorySpecialStockType | I_OrderItem | InventorySpecialStockType | Inventory Special Stock Type | |
| InventorySpecialStockValnType | I_OrderItem | InventorySpecialStockValnType | Inventory Special Stock Valuation Type | |
| ConsumptionPosting | I_OrderItem | ConsumptionPosting | Consumption Posting | |
| GoodsRecipientName | I_OrderItem | GoodsRecipientName | Goods Recipient | |
| UnloadingPointName | I_OrderItem | UnloadingPointName | Unloading Point Name | |
| StockSegment | I_OrderItem | StockSegment | Stock Segment | |
| MfgOrderPlannedStartDate | Manufacturing Order Planned Start Date | |||
| MfgOrderPlannedStartTime | Manufacturing Order Planned Start Time | |||
| MfgOrderScheduledStartDate | Manufacturing Order Scheduled Start Date | |||
| MfgOrderScheduledStartTime | Manufacturing Order Scheduled Start Time | |||
| MfgOrderActualStartDate | Manufacturing Order Actual Start Date | |||
| MfgOrderActualStartTime | Manufacturing Order Actual Start Time | |||
| MfgOrderPlannedEndDate | Manufacturing Order Planned End Date | |||
| MfgOrderPlannedEndTime | Manufacturing Order Planned End Time | |||
| MfgOrderScheduledEndDate | Manufacturing Order Scheduled End Date | |||
| MfgOrderScheduledEndTime | Manufacturing Order Scheduled End Time | |||
| MfgOrderConfirmedEndDate | Manufacturing Order Confirmed End Date | |||
| MfgOrderConfirmedEndTime | Manufacturing Order Confirmed End Time | |||
| MfgOrderActualEndDate | Manufacturing Order Actual End Date | |||
| MfgOrderScheduledReleaseDate | Manufacturing Order Scheduled Release Date | |||
| MfgOrderActualReleaseDate | Manufacturing Order Actual Release Date | |||
| MfgOrderItemPlannedEndDate | Manufacturing Order Item Planned End Date | |||
| MfgOrderItemScheduledEndDate | Manufacturing Order Item Scheduled End Date | |||
| MfgOrderItemPlndDeliveryDate | I_OrderItem | PlannedDeliveryDate | Delivery Date From Planned Order | |
| MfgOrderItemActualDeliveryDate | I_OrderItem | ActualDeliveryDate | Actual Delivery/Finish Date | |
| MfgOrderItemTotalCmtmtDate | I_OrderItem | TotalCommitmentDate | Total Commitment Date | |
| ProductionUnit | I_OrderItem | ProductionUnit | Production Unit of Measure | |
| MfgOrderItemPlannedTotalQty | Order Item Planned Total Quantity | |||
| MfgOrderItemPlannedScrapQty | Order Item Planned Scrap Quantity | |||
| MfgOrderItemPlannedYieldQty | Planned Yield Quantity | |||
| MfgOrderItemGoodsReceiptQty | Quantity of Goods Received for the Order Item | |||
| MfgOrderItemActualDeviationQty | Expected Surplus/Deficit For Goods Receipt | |||
| MfgOrderItemOpenYieldQty | Open Yield Quantity | |||
| MfgOrderConfirmedYieldQty | Confirmed Yield Quantity From Order Confirmation | |||
| MfgOrderConfirmedScrapQty | Confirmed Scrap Quantity From Order Confirmation | |||
| MfgOrderConfirmedReworkQty | Total Confirmed Rework Quantity | |||
| MfgOrderConfirmedTotalQty | Total Quantity From Confirmation | |||
| MfgOrderPlannedTotalQty | Total Order Quantity | |||
| MfgOrderPlannedScrapQty | Total Scrap Quantity in the Order | |||
| PlannedOrder | I_OrderItem | PlannedOrder | Planned Order | |
| PlndOrderPlannedStartDate | Planned Start Date of the Planned Order | |||
| PlannedOrderOpeningDate | Opening Date of the Planned Order | |||
| BaseUnit | I_OrderItem | BaseUnit | Base Unit of Measure | |
| PlndOrderPlannedTotalQty | Planned Total Quantity of the Planned Order | |||
| PlndOrderPlannedScrapQty | Planned Scrap Quantity of the Planned Order | |||
| CompanyCode | Company Code | |||
| BusinessArea | I_OrderItem | BusinessArea | Business Area | |
| AccountAssignmentCategory | I_OrderItem | AccountAssignmentCategory | Account Assignment Category | |
| CompanyCodeCurrency | I_LogisticsOrder | Currency | Valuation Crcy | |
| GoodsReceiptAmountInCoCodeCrcy | I_OrderItem | GoodsReceiptAmountInCoCodeCrcy | Amount of Goods Received in Local Currency | |
| MasterProductionOrder | I_LogisticsOrder | MasterProductionOrder | Master Production Order Number | |
| _MfgOrder | _MfgOrder | |||
| _MfgOrderItemSrlNmbr | _MfgOrderItemSrlNmbr | |||
| _MfgOrderItemLongText | _MfgOrderItemLongText | |||
| _MfgOrderCategory | _MfgOrderCategory | |||
| _MfgOrderType | _MfgOrderType | |||
| _ProductionPlant | I_OrderItem | _ProductionPlant | ||
| _ProductionSupervisor | _ProductionSupervisor | |||
| _MRPController | _MRPController | |||
| _MRPPlant | I_OrderItem | _MRPPlant | ||
| _MRPArea | I_OrderItem | _MRPArea | ||
| _PlannedOrder | I_OrderItem | _PlannedOrder | ||
| _Material | I_OrderItem | _Material | ||
| _Product | _Product | |||
| _ProductPlant | _ProductPlant | |||
| _ProductPlant2 | _ProductPlant2 | |||
| _ProductPlanningPlant | _ProductPlanningPlant | |||
| _ProductPlanningPlant2 | _ProductPlanningPlant2 | |||
| _ProductStorageLocation | _ProductStorageLocation | |||
| _ProductStorageLocation2 | _ProductStorageLocation2 | |||
| _ProductSupplyPlanning | _ProductSupplyPlanning | |||
| _ProductMRPArea | _ProductMRPArea | |||
| _ProductPlantMRPArea | _ProductPlantMRPArea | |||
| _ProductUnitsOfMeasure | _ProductUnitsOfMeasure | |||
| _BaseUnit | I_OrderItem | _BaseUnit | ||
| _ProductionUnit | I_OrderItem | _ProductionUnit | ||
| _ProductionVersion | I_OrderItem | _ProductionVersion | ||
| _Reservation | _Reservation | |||
| _StatusObjectHeader | _StatusObjectHeader | |||
| _StatusObjectItem | _StatusObjectItem | |||
| _MatlProcurementCategory | I_OrderItem | _MatlProcurementCategory | ||
| _MatlProcurementType | I_OrderItem | _MatlProcurementType | ||
| _DeliveryCompletedIndicator | I_OrderItem | _DeliveryCompletedIndicator | ||
| _StorageLocation | I_OrderItem | _StorageLocation | ||
| _Batch | _Batch | |||
| _InventorySpecialStockType | I_OrderItem | _InventorySpecialStockType | ||
| _InventorySpecialStockValnType | I_OrderItem | _InventorySpecialStockValnType | ||
| _InventoryValuationType | I_OrderItem | _InventoryValuationType | ||
| _InventoryUsabilityCode | I_OrderItem | _InventoryUsabilityCode | ||
| _SerialNumberProfile | I_OrderItem | _SerialNumberProfile | ||
| _ConsumptionPosting | I_OrderItem | _ConsumptionPosting | ||
| _SalesOrder | I_OrderItem | _SalesOrder | ||
| _SalesOrderItem | I_OrderItem | _SalesOrderItem | ||
| _SalesOrderScheduleLine | I_OrderItem | _SalesOrderScheduleLine | ||
| _WBSElement | I_OrderItem | _WBSElement | ||
| _WBSElementBasicData | I_OrderItem | _WBSElementBasicData | ||
| _WBSElementBasicData2 | I_OrderItem | _WBSElementBasicData2 | ||
| _QuotaArrangement | I_OrderItem | _QuotaArrangement | ||
| _QuotaArrangementItem | I_OrderItem | _QuotaArrangementItem | ||
| _SettlementReservation | I_OrderItem | _SettlementReservation | ||
| _SettlementReservationItem | I_OrderItem | _SettlementReservationItem | ||
| _CoProductReservation | I_OrderItem | _CoProductReservation | ||
| _CoProductReservationItem | I_OrderItem | _CoProductReservationItem | ||
| _BusinessArea | I_OrderItem | _BusinessArea | ||
| _AccountAssignmentCategory | I_OrderItem | _AccountAssignmentCategory | ||
| _CompanyCode | I_LogisticsOrder | _CompanyCode | ||
| _Currency | _Currency | |||
| _MaterialText | _MaterialText | |||
| _ProductText | _ProductText | |||
| _ProductionPlantText | _ProductionPlantText | |||
| _PlanningPlantText | _PlanningPlantText | |||
| _ProductionVersionText | _ProductionVersionText | |||
| _MRPAreaText | _MRPAreaText | |||
| _WBSElementText | _WBSElementText | |||
| _StorageLocationText | _StorageLocationText | |||
| _BusinessAreaText | _BusinessAreaText | |||
| _CompanyCodeText | _CompanyCodeText |
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 I_ManufacturingOrderItem.
-- 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: IMFGORDERITEM
CREATE VIEW I_ManufacturingOrderItem AS
SELECT
cast(item.OrderID as manufacturingorder preserving type) AS ManufacturingOrder,
cast(item.OrderItem as manufacturingorderitem preserving type) AS ManufacturingOrderItem,
cast(item.OrderCategory as manufacturingordercategory preserving type) AS ManufacturingOrderCategory,
cast(item.OrderType as manufacturingordertype preserving type) AS ManufacturingOrderType,
cast(item.OrderIsReleased as orderisreleased preserving type) AS OrderIsReleased,
item.IsMarkedForDeletion AS IsMarkedForDeletion,
cast(item.OrderItemIsNotRelevantForMRP as vdm_dnrel preserving type) AS OrderItemIsNotRelevantForMRP,
item.Material AS Material,
cast(item.Material as productnumber preserving type) AS Product,
cast(head.MRPController as pph_dispo preserving type) AS MRPController,
cast(head.ProductionSupervisor as pph_fevor preserving type) AS ProductionSupervisor,
item.SalesOrder AS SalesOrder,
item.SalesOrderItem AS SalesOrderItem,
item.SalesOrderScheduleLine AS SalesOrderScheduleLine,
item.WBSElementInternalID AS WBSElementInternalID,
item.SettlementReservation AS SettlementReservation,
item.SettlementReservationItem AS SettlementReservationItem,
item.CoProductReservation AS CoProductReservation,
item.CoProductReservationItem AS CoProductReservationItem,
item.MaterialProcurementCategory AS MaterialProcurementCategory,
item.MaterialProcurementType AS MaterialProcurementType,
item.NumberOfSerialNumbers AS NumberOfSerialNumbers,
item.MfgOrderItemReplnmtElmntType AS MfgOrderItemReplnmtElmntType,
cast(item.ProductConfiguration as product_configuration preserving type) AS ProductConfiguration,
item.ObjectInternalID AS ObjectInternalID,
head.ObjectInternalID AS ManufacturingObject,
item.QuantityDistributionKey AS QuantityDistributionKey,
item.EffectivityParameterVariant AS EffectivityParameterVariant,
item.OriginalEffctyParameterVariant AS OriginalEffctyParameterVariant,
item.GoodsReceiptIsExpected AS GoodsReceiptIsExpected,
item.GoodsReceiptIsNonValuated AS GoodsReceiptIsNonValuated,
item.IsCompletelyDelivered AS IsCompletelyDelivered,
item.MaterialGoodsReceiptDuration AS MaterialGoodsReceiptDuration,
item.UnderdelivTolrtdLmtRatioInPct AS UnderdelivTolrtdLmtRatioInPct,
item.OverdelivTolrtdLmtRatioInPct AS OverdelivTolrtdLmtRatioInPct,
item.UnlimitedOverdeliveryIsAllowed AS UnlimitedOverdeliveryIsAllowed,
item.Batch AS Batch,
item.InventoryValuationType AS InventoryValuationType,
item.InventoryValuationCategory AS InventoryValuationCategory,
item.InventoryUsabilityCode AS InventoryUsabilityCode,
item.InventorySpecialStockType AS InventorySpecialStockType,
item.InventorySpecialStockValnType AS InventorySpecialStockValnType,
item.ConsumptionPosting AS ConsumptionPosting,
item.GoodsRecipientName AS GoodsRecipientName,
item.UnloadingPointName AS UnloadingPointName,
item.StockSegment AS StockSegment,
cast(head.PlannedStartDate as mfgorderplannedstartdate preserving type) AS MfgOrderPlannedStartDate,
cast(head.PlannedStartTime as mfgorderplannedstarttime preserving type) AS MfgOrderPlannedStartTime,
cast(head.ScheduledBasicStartDate as mfgorderscheduledstartdate preserving type) AS MfgOrderScheduledStartDate,
cast(head.ScheduledBasicStartTime as mfgorderscheduledstarttime preserving type) AS MfgOrderScheduledStartTime,
cast(head.ActualStartDate as mfgorderactualstartdate preserving type) AS MfgOrderActualStartDate,
cast(head.ActualStartTime as mfgorderactualstarttime preserving type) AS MfgOrderActualStartTime,
cast(head.PlannedEndDate as mfgorderplannedenddate preserving type) AS MfgOrderPlannedEndDate,
cast(head.PlannedEndTime as mfgorderplannedendtime preserving type) AS MfgOrderPlannedEndTime,
cast(head.ScheduledBasicEndDate as mfgorderscheduledenddate preserving type) AS MfgOrderScheduledEndDate,
cast(head.ScheduledBasicEndTime as mfgorderscheduledendtime preserving type) AS MfgOrderScheduledEndTime,
cast(head.ConfirmedEndDate as mfgorderconfirmedenddate preserving type) AS MfgOrderConfirmedEndDate,
cast(head.ConfirmedEndTime as mfgorderconfirmedendtime preserving type) AS MfgOrderConfirmedEndTime,
cast(head.ActualDeliveryDate as mfgorderactualenddate preserving type) AS MfgOrderActualEndDate,
cast(head.ScheduledReleaseDate as mfgorderscheduledreleasedate preserving type) AS MfgOrderScheduledReleaseDate,
cast(head.ActualReleasedDate as mfgorderactualreleasedate preserving type) AS MfgOrderActualReleaseDate,
cast(item.PlannedEndDate as mfgorderitemplannedenddate preserving type) AS MfgOrderItemPlannedEndDate,
cast(item.ScheduledBasicEndDate as mfgorderitemscheduledenddate preserving type) AS MfgOrderItemScheduledEndDate,
item.PlannedDeliveryDate AS MfgOrderItemPlndDeliveryDate,
item.ActualDeliveryDate AS MfgOrderItemActualDeliveryDate,
item.TotalCommitmentDate AS MfgOrderItemTotalCmtmtDate,
item.ProductionUnit AS ProductionUnit,
cast(item.ItemQuantity as co_psmng preserving type) AS MfgOrderItemPlannedTotalQty,
cast(item.MfgOrderItemPlannedScrapQty as co_psamg preserving type) AS MfgOrderItemPlannedScrapQty,
cast(item.ItemQuantity - item.MfgOrderItemPlannedScrapQty as plannedyieldquantity) AS MfgOrderItemPlannedYieldQty,
cast(item.MfgOrderItemGoodsReceiptQty as co_wemng preserving type) AS MfgOrderItemGoodsReceiptQty,
cast(item.MfgOrderItemActualDeviationQty as co_iamng preserving type) AS MfgOrderItemActualDeviationQty,
cast(item.MfgOrderItemOpenYieldQty as openyieldquantity preserving type) AS MfgOrderItemOpenYieldQty,
cast(head.OrderConfirmedYieldQty as co_igmng preserving type) AS MfgOrderConfirmedYieldQty,
cast(head.OrderConfirmedScrapQty as co_iasmg preserving type) AS MfgOrderConfirmedScrapQty,
cast(head.MfgOrderConfirmedReworkQty as rmnga preserving type) AS MfgOrderConfirmedReworkQty,
cast(head.OrderConfirmedYieldQty + head.OrderConfirmedScrapQty + head.MfgOrderConfirmedReworkQty as pph_tmnga) AS MfgOrderConfirmedTotalQty,
cast(head.OrderPlannedTotalQty as gamng preserving type) AS MfgOrderPlannedTotalQty,
cast(head.OrderPlannedScrapQty as gasmg preserving type) AS MfgOrderPlannedScrapQty,
item.PlannedOrder AS PlannedOrder,
cast(item.PlndOrderPlannedStartDate as vdm_strmp preserving type) AS PlndOrderPlannedStartDate,
cast(item.PlannedOrderOpeningDate as vdm_etrmp preserving type) AS PlannedOrderOpeningDate,
item.BaseUnit AS BaseUnit,
cast(item.OrderPlannedTotalQty as vdm_pgmng preserving type) AS PlndOrderPlannedTotalQty,
cast(item.OrderPlannedScrapQty as vdm_pamng preserving type) AS PlndOrderPlannedScrapQty,
item.BusinessArea AS BusinessArea,
item.AccountAssignmentCategory AS AccountAssignmentCategory,
head.Currency AS CompanyCodeCurrency,
item.GoodsReceiptAmountInCoCodeCrcy AS GoodsReceiptAmountInCoCodeCrcy,
head.MasterProductionOrder AS MasterProductionOrder,
item._ProductionPlant AS _ProductionPlant,
item._MRPPlant AS _MRPPlant,
item._MRPArea AS _MRPArea,
item._PlannedOrder AS _PlannedOrder,
item._Material AS _Material,
item._BaseUnit AS _BaseUnit,
item._ProductionUnit AS _ProductionUnit,
item._ProductionVersion AS _ProductionVersion,
item._MatlProcurementCategory AS _MatlProcurementCategory,
item._MatlProcurementType AS _MatlProcurementType,
item._DeliveryCompletedIndicator AS _DeliveryCompletedIndicator,
item._StorageLocation AS _StorageLocation,
item._InventorySpecialStockType AS _InventorySpecialStockType,
item._InventorySpecialStockValnType AS _InventorySpecialStockValnType,
item._InventoryValuationType AS _InventoryValuationType,
item._InventoryUsabilityCode AS _InventoryUsabilityCode,
item._SerialNumberProfile AS _SerialNumberProfile,
item._ConsumptionPosting AS _ConsumptionPosting,
item._SalesOrder AS _SalesOrder,
item._SalesOrderItem AS _SalesOrderItem,
item._SalesOrderScheduleLine AS _SalesOrderScheduleLine,
item._WBSElement AS _WBSElement,
item._WBSElementBasicData AS _WBSElementBasicData,
item._WBSElementBasicData2 AS _WBSElementBasicData2,
item._QuotaArrangement AS _QuotaArrangement,
item._QuotaArrangementItem AS _QuotaArrangementItem,
item._SettlementReservation AS _SettlementReservation,
item._SettlementReservationItem AS _SettlementReservationItem,
item._CoProductReservation AS _CoProductReservation,
item._CoProductReservationItem AS _CoProductReservationItem,
item._BusinessArea AS _BusinessArea,
item._AccountAssignmentCategory AS _AccountAssignmentCategory,
head._CompanyCode AS _CompanyCode
FROM I_OrderItem AS item
INNER JOIN I_LogisticsOrder AS head ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MfgOrderCategory AS _MfgOrderCategory ON ManufacturingOrderCategory = _MfgOrderCategory.ManufacturingOrderCategory -- association [1..1]
LEFT OUTER JOIN I_MfgOrderType AS _MfgOrderType ON ManufacturingOrderType = _MfgOrderType.ManufacturingOrderType -- association [1..1]
LEFT OUTER JOIN I_MRPController AS _MRPController ON ProductionPlant = _MRPController.Plant AND MRPController = _MRPController.MRPController -- association [0..1]
LEFT OUTER JOIN I_ProductionSupervisor AS _ProductionSupervisor ON ProductionPlant = _ProductionSupervisor.Plant AND ProductionSupervisor = _ProductionSupervisor.ProductionSupervisor -- association [0..1]
LEFT OUTER JOIN I_ReservationDocumentHeader AS _Reservation ON Reservation = _Reservation.Reservation -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product -- association [0..1]
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON ProductionPlant = _ProductPlant.Plant AND Product = _ProductPlant.Product -- association [0..1]
LEFT OUTER JOIN I_ProductPlant AS _ProductPlanningPlant ON PlanningPlant = _ProductPlanningPlant.Plant AND Product = _ProductPlanningPlant.Product -- association [0..1]
LEFT OUTER JOIN I_ProductPlantBasic AS _ProductPlant2 ON ProductionPlant = _ProductPlant2.Plant AND Product = _ProductPlant2.Product -- association [0..1]
LEFT OUTER JOIN I_ProductPlantBasic AS _ProductPlanningPlant2 ON PlanningPlant = _ProductPlanningPlant2.Plant AND Product = _ProductPlanningPlant2.Product -- association [0..1]
LEFT OUTER JOIN I_ProductSupplyPlanning AS _ProductSupplyPlanning ON PlanningPlant = _ProductSupplyPlanning.Plant AND Product = _ProductSupplyPlanning.Product -- association [0..1]
LEFT OUTER JOIN I_ProductStorageLocation AS _ProductStorageLocation ON Material = _ProductStorageLocation.Product AND ProductionPlant = _ProductStorageLocation.Plant AND StorageLocation = _ProductStorageLocation.StorageLocation -- association [0..1]
LEFT OUTER JOIN I_ProductStorageLocationBasic AS _ProductStorageLocation2 ON Material = _ProductStorageLocation2.Product AND ProductionPlant = _ProductStorageLocation2.Plant AND StorageLocation = _ProductStorageLocation2.StorageLocation -- association [0..1]
LEFT OUTER JOIN I_ProductUnitsOfMeasure AS _ProductUnitsOfMeasure ON Product = _ProductUnitsOfMeasure.Product -- association [0..*]
LEFT OUTER JOIN I_ProductMRPArea AS _ProductMRPArea ON Product = _ProductMRPArea.Product AND MRPArea = _ProductMRPArea.MRPArea -- association [0..1]
LEFT OUTER JOIN I_ProductPlantMRP AS _ProductPlantMRPArea ON Product = _ProductPlantMRPArea.Product AND ProductionPlant = _ProductPlantMRPArea.Plant AND MRPArea = _ProductPlantMRPArea.MRPArea -- association [0..1]
LEFT OUTER JOIN I_Batch AS _Batch ON ProductionPlant = _Batch.Plant AND Product = _Batch.Material AND Batch = _Batch.Batch -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON CompanyCodeCurrency = _Currency.Currency -- association [0..1]
LEFT OUTER JOIN I_ManufacturingOrder AS _MfgOrder ON ManufacturingOrder = _MfgOrder.ManufacturingOrder -- association [1..1]
LEFT OUTER JOIN I_MfgOrderItemSerialNumber AS _MfgOrderItemSrlNmbr ON ManufacturingOrder = _MfgOrderItemSrlNmbr.ManufacturingOrder AND ManufacturingOrderItem = _MfgOrderItemSrlNmbr.ManufacturingOrderItem -- association [0..*]
LEFT OUTER JOIN I_MfgOrderItemLongText AS _MfgOrderItemLongText ON ManufacturingOrder = _MfgOrderItemLongText.ManufacturingOrder AND ManufacturingOrderItem = _MfgOrderItemLongText.ManufacturingOrderItem -- association [0..*]
LEFT OUTER JOIN I_Plant AS _ProductionPlantText ON ProductionPlant = _ProductionPlantText.Plant -- association [1..1]
LEFT OUTER JOIN I_Plant AS _PlanningPlantText ON PlanningPlant = _PlanningPlantText.Plant -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material -- association [0..*]
LEFT OUTER JOIN I_ProductText AS _ProductText ON Product = _ProductText.Product -- association [0..*]
LEFT OUTER JOIN I_ProductionVersion AS _ProductionVersionText ON Material = _ProductionVersionText.Material AND ProductionPlant = _ProductionVersionText.Plant AND ProductionVersion = _ProductionVersionText.ProductionVersion -- association [0..1]
LEFT OUTER JOIN I_MRPArea AS _MRPAreaText ON MRPArea = _MRPAreaText.MRPArea -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementText ON WBSElementInternalID_2 = _WBSElementText.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocationText ON ProductionPlant = _StorageLocationText.Plant AND StorageLocation = _StorageLocationText.StorageLocation -- association [0..1]
LEFT OUTER JOIN I_StatusObject AS _StatusObjectHeader ON ManufacturingObject = _StatusObjectHeader.StatusObject -- association [1..1]
LEFT OUTER JOIN I_StatusObject AS _StatusObjectItem ON ObjectInternalID = _StatusObjectItem.StatusObject -- association [1..1]
LEFT OUTER JOIN I_BusinessAreaText AS _BusinessAreaText ON BusinessArea = _BusinessAreaText.BusinessArea -- association [0..*]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCodeText ON CompanyCode = _CompanyCodeText.CompanyCode -- association [0..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