I_MfgOrderItemAmountCube
Manufacturing Order Item Amount - Cube
I_MfgOrderItemAmountCube (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Manufacturing
I_MfgOrderItemAmountCube is a Composite CDS View (Cube) that provides data about "Manufacturing Order Item Amount - Cube" in SAP S/4HANA. It reads from 2 data sources (P_PPH_ReportingDate3, I_MfgOrderItemAmount) and exposes 81 fields with key fields ManufacturingOrder, ManufacturingOrderItem. It has 4 associations to related views. Part of development package PPH_ANALYTICS.
SAP Help Documentation
| Category | CDS Views for Discrete and Process Manufacturing |
|---|
With this CDS view you can retrieve data, such as the following: Scrap or yield quantity of a manufacturing order item Corresponding amounts in company code Display currency based on the material inventory price This CDS view also provides the ratio between planned and confirmed quantities in percent. This CDS view provides the prerequisites for answering the following business questions: What are the planned and confirmed quantities of a manufacturing order item? What are the amounts of the confirmed scrap and rework quantities? What is the inventory price of a manufacturing order item material at the current date?
Prerequisites
You have authorizations to: Display manufacturing orders by order category, type, and plant ( C_AFKO_AWA ) Display manufacturing orders by order category ( C_AFKO_ATY ) Display manufacturing orders by order type and plant ( C_AFKO_ATK )
Structure
Main input parameters This view has the following input parameters. P_DisplayCurrency for the currency amount to be displayed P_ExchangeRateType for translating foreign currency amounts Measures and attributes The following main attributes are provided: Manufacturing order Manufacturing order item Manufacturing order type Material Production plant Planning plant MRP controller Production supervisor Storage location Batch Planned start dates and times Confirmed start dates and times Planned end dates and times Confirmed end dates and times Business area The following main measures are provided: Planned total, yield, and scrap quantities in order unit of measure Confirmed yield, scrap, and rework quantities in order unit of measure Confirmed yield, scrap, and rework quantities as ratio in percent Inventory price in company code currency Planned scrap amount in both company code and display currency Confirmed yield, scrap, and rework amounts in both company code and display currency
SAP API Hub
| Category | Composite |
|---|---|
| State | C1 |
| Line of Business | Manufacturing |
| Application Component | PP-VDM-2CL |
| Capabilities | Data Provider for Analytical Queries |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Not Released |
| Package | Manufacturing for SAP S/4HANA Cloud Public Edition |
| Description | With this CDS view you can retrieve data, such as the following: <ul> <li> <p>Scrap or yield quantity of a manufacturing order item</p> </li> <li> <p>Corresponding amounts in company code</p> </li> <li> <p>Display currency based on the material inventory price</p> </li> </ul> This CDS view also provides the ratio between planned and confirmed quantities in percent. <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li> <p>What are the planned and confirmed quantities of a manufacturing order item?</p> </li> <li> <p>What are the amounts of the confirmed scrap and rework quantities?</p> </li> <li> <p>What is the inventory price of a manufacturing order item material at the current date?</p> </li> </ul> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_PPH_ReportingDate3 | date | inner |
| I_MfgOrderItemAmount | item | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_DisplayCurrency | vdm_v_display_currency | |
| P_ExchangeRateType | kurst |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Currency | _DisplayCurrency | $projection.DisplayCurrency = _DisplayCurrency.Currency |
| [0..1] | I_ReportingPeriod | _ReportingPeriod | $projection.ReportingPeriod = _ReportingPeriod.ReportingPeriod |
| [0..1] | I_WeekDay | _EndDateWeekDay | $projection.EndDateWeekDay = _EndDateWeekDay.WeekDay |
| [0..1] | I_Batch | _Batch | $projection.ProductionPlant = _Batch.Plant and $projection.Product = _Batch.Material and $projection.Batch = _Batch.Batch |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMFGORDITEMAMTC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Analytics.dataCategory | #CUBE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_CUBE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #COMPOSITE | view | |
| EndUserText.label | Manufacturing Order Item Amount - Cube | view |
Fields (81)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ManufacturingOrder | I_MfgOrderItemAmount | ManufacturingOrder | Manufacturing Order ID |
| KEY | ManufacturingOrderItem | I_MfgOrderItemAmount | ManufacturingOrderItem | Manufacturing Order Item ID |
| ManufacturingOrderCategory | I_MfgOrderItemAmount | ManufacturingOrderCategory | Manufacturing Order Category | |
| ManufacturingOrderType | I_MfgOrderItemAmount | ManufacturingOrderType | Manufacturing Order Type | |
| Product | Product | |||
| ProductionPlant | I_MfgOrderItemAmount | ProductionPlant | Production Plant | |
| MRPPlant | I_MfgOrderItemAmount | MRPPlant | Planning Plant for an Order | |
| MRPController | I_MfgOrderItemAmount | MRPController | MRP Controller | |
| ProductionSupervisor | I_MfgOrderItemAmount | ProductionSupervisor | Production Supervisor | |
| MfgOrderItemIsFinallyDelivered | I_MfgOrderItemAmount | MfgOrderItemIsFinallyDelivered | "Delivery Completed" Indicator | |
| MaterialGoodsReceiptDuration | I_MfgOrderItemAmount | MaterialGoodsReceiptDuration | Goods Receipt Processing Duration in Days | |
| StorageLocation | I_MfgOrderItemAmount | StorageLocation | Storage Location | |
| Batch | I_MfgOrderItemAmount | Batch | Batch Number | |
| InventoryValuationType | I_MfgOrderItemAmount | InventoryValuationType | Inventory Valuation Type | |
| MfgOrderPlannedStartDate | I_MfgOrderItemAmount | MfgOrderPlannedStartDate | Manufacturing Order Planned Start Date | |
| MfgOrderPlannedStartTime | I_MfgOrderItemAmount | MfgOrderPlannedStartTime | Manufacturing Order Planned Start Time | |
| MfgOrderScheduledStartDate | I_MfgOrderItemAmount | MfgOrderScheduledStartDate | Manufacturing Order Scheduled Start Date | |
| MfgOrderScheduledStartTime | I_MfgOrderItemAmount | MfgOrderScheduledStartTime | Manufacturing Order Scheduled Start Time | |
| MfgOrderActualStartDate | I_MfgOrderItemAmount | MfgOrderActualStartDate | Manufacturing Order Actual Start Date | |
| MfgOrderActualStartTime | I_MfgOrderItemAmount | MfgOrderActualStartTime | Manufacturing Order Actual Start Time | |
| MfgOrderPlannedEndDate | I_MfgOrderItemAmount | MfgOrderPlannedEndDate | Manufacturing Order Planned End Date | |
| MfgOrderPlannedEndTime | I_MfgOrderItemAmount | MfgOrderPlannedEndTime | Manufacturing Order Planned End Time | |
| MfgOrderScheduledEndDate | I_MfgOrderItemAmount | MfgOrderScheduledEndDate | Manufacturing Order Scheduled End Date | |
| MfgOrderScheduledEndTime | I_MfgOrderItemAmount | MfgOrderScheduledEndTime | Manufacturing Order Scheduled End Time | |
| MfgOrderConfirmedEndDate | I_MfgOrderItemAmount | MfgOrderConfirmedEndDate | Manufacturing Order Confirmed End Date | |
| MfgOrderConfirmedEndTime | I_MfgOrderItemAmount | MfgOrderConfirmedEndTime | Manufacturing Order Confirmed End Time | |
| MfgOrderActualEndDate | I_MfgOrderItemAmount | MfgOrderActualEndDate | Manufacturing Order Actual End Date | |
| MfgOrderScheduledReleaseDate | I_MfgOrderItemAmount | MfgOrderScheduledReleaseDate | Manufacturing Order Scheduled Release Date | |
| MfgOrderActualReleaseDate | I_MfgOrderItemAmount | MfgOrderActualReleaseDate | Manufacturing Order Actual Release Date | |
| MfgOrderItemPlannedEndDate | I_MfgOrderItemAmount | MfgOrderItemPlannedEndDate | Manufacturing Order Item Planned End Date | |
| MfgOrderItemScheduledEndDate | I_MfgOrderItemAmount | MfgOrderItemScheduledEndDate | Manufacturing Order Item Scheduled End Date | |
| MfgOrderItemActualDeliveryDate | I_MfgOrderItemAmount | MfgOrderItemActualDeliveryDate | Actual Delivery/Finish Date | |
| ReportingPeriod | Reporting Period | |||
| EndDateHour | End Date Hour | |||
| EndDateWeekDay | P_PPH_ReportingDate3 | ReportingDateWeekDay | Week Day | |
| EndDateWeek | P_PPH_ReportingDate3 | ReportingDateWeek | Calendar Week | |
| EndDateMonth | P_PPH_ReportingDate3 | ReportingDateMonth | Calendar Month | |
| EndDateYear | P_PPH_ReportingDate3 | ReportingDateYear | Calendar Year | |
| EndDateYearMonth | Year Month | |||
| ManufacturingOrderUnit | I_MfgOrderItemAmount | ProductionUnit | Production Unit of Measure | |
| MfgOrderItemPlannedTotalQty | I_MfgOrderItemAmount | MfgOrderItemPlannedTotalQty | Order Item Planned Total Quantity | |
| MfgOrderItemPlannedScrapQty | I_MfgOrderItemAmount | MfgOrderItemPlannedScrapQty | Order Item Planned Scrap Quantity | |
| MfgOrderItemPlannedYieldQty | I_MfgOrderItemAmount | MfgOrderItemPlannedYieldQty | Planned Yield Quantity | |
| MfgOrderItemGoodsReceiptQty | I_MfgOrderItemAmount | MfgOrderItemGoodsReceiptQty | Quantity of Goods Received for the Order Item | |
| MfgOrderItemActualDeviationQty | I_MfgOrderItemAmount | MfgOrderItemActualDeviationQty | Expected Surplus/Deficit For Goods Receipt | |
| MfgOrderConfirmedYieldQty | I_MfgOrderItemAmount | MfgOrderConfirmedYieldQty | Confirmed Yield Quantity From Order Confirmation | |
| MfgOrderConfirmedScrapQty | I_MfgOrderItemAmount | MfgOrderConfirmedScrapQty | Confirmed Scrap Quantity From Order Confirmation | |
| MfgOrderConfirmedReworkQty | I_MfgOrderItemAmount | MfgOrderConfirmedReworkQty | Total Confirmed Rework Quantity | |
| MfgOrderConfirmedTotalQty | I_MfgOrderItemAmount | MfgOrderConfirmedTotalQty | Total Quantity From Confirmation | |
| BusinessArea | I_MfgOrderItemAmount | BusinessArea | Business Area | |
| CostEstimate | I_MfgOrderItemAmount | CostEstimate | Cost Estimate Number for Product Costing | |
| CompanyCodeCurrency | I_MfgOrderItemAmount | CompanyCodeCurrency | Local Currency | |
| PlannedScrapAmountInCCCrcy | Planned Scrap Amount in Company Code Currency | |||
| ConfirmedScrapAmountInCCCrcy | Confirmed Scrap Amount in Company Code Currency | |||
| ConfirmedYieldAmountInCCCrcy | Confirmed Yield Amount in Company Code Currency | |||
| ConfirmedReworkAmountInCCCrcy | Confirmed Rework Amount in Company Code Currency | |||
| InventoryPrice | I_MfgOrderItemAmount | InventoryPrice | Inventory Price | |
| MaterialPriceUnitQty | I_MfgOrderItemAmount | MaterialPriceUnitQty | Material Price Unit Quantity | |
| BaseUnit | I_MfgOrderItemAmount | BaseUnit | Base Unit of Measure | |
| ValuationArea | I_MfgOrderItemAmount | ValuationArea | Valuation Area | |
| FiscalPeriod | I_MfgOrderItemAmount | FiscalPeriod | Fiscal Period | |
| FiscalYear | Fiscal Year | |||
| FiscalYear_2 | I_MfgOrderItemAmount | FiscalYear | G/L Fiscal Year | |
| DisplayCurrency | Display Currency | |||
| _MfgOrderCategory | I_MfgOrderItemAmount | _MfgOrderCategory | ||
| _MfgOrderType | I_MfgOrderItemAmount | _MfgOrderType | ||
| _ProductionPlant | I_MfgOrderItemAmount | _ProductionPlant | ||
| _ProductionSupervisor | I_MfgOrderItemAmount | _ProductionSupervisor | ||
| _MRPController | I_MfgOrderItemAmount | _MRPController | ||
| _MRPPlant | I_MfgOrderItemAmount | _MRPPlant | ||
| _Product | I_MfgOrderItemAmount | _Product | ||
| _ManufacturingOrderUnit | I_MfgOrderItemAmount | _ProductionUnit | ||
| _BaseUnit | I_MfgOrderItemAmount | _BaseUnit | ||
| _StorageLocation | I_MfgOrderItemAmount | _StorageLocation | ||
| _Batch | _Batch | |||
| _InventoryValuationType | I_MfgOrderItemAmount | _InventoryValuationType | ||
| _ValuationArea | I_MfgOrderItemAmount | _ValuationArea | ||
| _CompanyCodeCurrency | I_MfgOrderItemAmount | _CompanyCodeCurrency | ||
| _DisplayCurrency | _DisplayCurrency | |||
| _ReportingPeriod | _ReportingPeriod | |||
| _EndDateWeekDay | _EndDateWeekDay |
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_MfgOrderItemAmountCube.
-- 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: IMFGORDITEMAMTC
-- Parameters: P_DisplayCurrency : vdm_v_display_currency, P_ExchangeRateType : kurst
CREATE VIEW I_MfgOrderItemAmountCube AS
SELECT
item.ManufacturingOrder AS ManufacturingOrder,
item.ManufacturingOrderItem AS ManufacturingOrderItem,
item.ManufacturingOrderCategory AS ManufacturingOrderCategory,
item.ManufacturingOrderType AS ManufacturingOrderType,
item.ProductionPlant AS ProductionPlant,
item.MRPPlant AS MRPPlant,
item.MRPController AS MRPController,
item.ProductionSupervisor AS ProductionSupervisor,
item.MfgOrderItemIsFinallyDelivered AS MfgOrderItemIsFinallyDelivered,
item.MaterialGoodsReceiptDuration AS MaterialGoodsReceiptDuration,
item.StorageLocation AS StorageLocation,
item.Batch AS Batch,
item.InventoryValuationType AS InventoryValuationType,
item.MfgOrderPlannedStartDate AS MfgOrderPlannedStartDate,
item.MfgOrderPlannedStartTime AS MfgOrderPlannedStartTime,
item.MfgOrderScheduledStartDate AS MfgOrderScheduledStartDate,
item.MfgOrderScheduledStartTime AS MfgOrderScheduledStartTime,
item.MfgOrderActualStartDate AS MfgOrderActualStartDate,
item.MfgOrderActualStartTime AS MfgOrderActualStartTime,
item.MfgOrderPlannedEndDate AS MfgOrderPlannedEndDate,
item.MfgOrderPlannedEndTime AS MfgOrderPlannedEndTime,
item.MfgOrderScheduledEndDate AS MfgOrderScheduledEndDate,
item.MfgOrderScheduledEndTime AS MfgOrderScheduledEndTime,
item.MfgOrderConfirmedEndDate AS MfgOrderConfirmedEndDate,
item.MfgOrderConfirmedEndTime AS MfgOrderConfirmedEndTime,
item.MfgOrderActualEndDate AS MfgOrderActualEndDate,
item.MfgOrderScheduledReleaseDate AS MfgOrderScheduledReleaseDate,
item.MfgOrderActualReleaseDate AS MfgOrderActualReleaseDate,
item.MfgOrderItemPlannedEndDate AS MfgOrderItemPlannedEndDate,
item.MfgOrderItemScheduledEndDate AS MfgOrderItemScheduledEndDate,
item.MfgOrderItemActualDeliveryDate AS MfgOrderItemActualDeliveryDate,
cast(date.ReportingPeriod as pph_reportingperiod preserving type) AS ReportingPeriod,
cast(left(item.MfgOrderConfirmedEndTime,2) as enddatehour) AS EndDateHour,
date.ReportingDateWeekDay AS EndDateWeekDay,
date.ReportingDateWeek AS EndDateWeek,
date.ReportingDateMonth AS EndDateMonth,
date.ReportingDateYear AS EndDateYear,
cast(concat(date.ReportingDateYear, date.ReportingDateMonth) as vdm_yearmonth) AS EndDateYearMonth,
item.ProductionUnit AS ManufacturingOrderUnit,
item.MfgOrderItemPlannedTotalQty AS MfgOrderItemPlannedTotalQty,
item.MfgOrderItemPlannedScrapQty AS MfgOrderItemPlannedScrapQty,
item.MfgOrderItemPlannedYieldQty AS MfgOrderItemPlannedYieldQty,
item.MfgOrderItemGoodsReceiptQty AS MfgOrderItemGoodsReceiptQty,
item.MfgOrderItemActualDeviationQty AS MfgOrderItemActualDeviationQty,
item.MfgOrderConfirmedYieldQty AS MfgOrderConfirmedYieldQty,
item.MfgOrderConfirmedScrapQty AS MfgOrderConfirmedScrapQty,
item.MfgOrderConfirmedReworkQty AS MfgOrderConfirmedReworkQty,
item.MfgOrderConfirmedTotalQty AS MfgOrderConfirmedTotalQty,
item.BusinessArea AS BusinessArea,
item.CostEstimate AS CostEstimate,
item.CompanyCodeCurrency AS CompanyCodeCurrency,
cast(item.PlannedScrapAmountInCCCrcy as plndscrapamtinccrcy preserving type) AS PlannedScrapAmountInCCCrcy,
cast(item.ConfirmedScrapAmountInCCCrcy as confscrapamtinccrcy preserving type) AS ConfirmedScrapAmountInCCCrcy,
cast(item.ConfirmedYieldAmountInCCCrcy as confyieldamtinccrcy preserving type) AS ConfirmedYieldAmountInCCCrcy,
cast(item.ConfirmedReworkAmountInCCCrcy as confreworkamtinccrcy preserving type) AS ConfirmedReworkAmountInCCCrcy,
item.InventoryPrice AS InventoryPrice,
item.MaterialPriceUnitQty AS MaterialPriceUnitQty,
item.BaseUnit AS BaseUnit,
item.ValuationArea AS ValuationArea,
item.FiscalPeriod AS FiscalPeriod,
cast(item.FiscalYear as gjahr preserving type) AS FiscalYear,
item.FiscalYear AS FiscalYear_2,
cast($parameters.P_DisplayCurrency as displaycurrency preserving type) AS DisplayCurrency,
item._MfgOrderCategory AS _MfgOrderCategory,
item._MfgOrderType AS _MfgOrderType,
item._ProductionPlant AS _ProductionPlant,
item._ProductionSupervisor AS _ProductionSupervisor,
item._MRPController AS _MRPController,
item._MRPPlant AS _MRPPlant,
item._Product AS _Product,
item._ProductionUnit AS _ManufacturingOrderUnit,
item._BaseUnit AS _BaseUnit,
item._StorageLocation AS _StorageLocation,
item._InventoryValuationType AS _InventoryValuationType,
item._ValuationArea AS _ValuationArea,
item._CompanyCodeCurrency AS _CompanyCodeCurrency
FROM I_MfgOrderItemAmount AS item
INNER JOIN P_PPH_ReportingDate3 AS date ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Currency AS _DisplayCurrency ON DisplayCurrency = _DisplayCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_ReportingPeriod AS _ReportingPeriod ON ReportingPeriod = _ReportingPeriod.ReportingPeriod -- association [0..1]
LEFT OUTER JOIN I_WeekDay AS _EndDateWeekDay ON EndDateWeekDay = _EndDateWeekDay.WeekDay -- 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]
;
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