I_MfgOrderActlPlanTgtLdgrCost
Manufacturing Order Actual Plan Target Ledger Specific Cost
I_MfgOrderActlPlanTgtLdgrCost (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Accounting and Financial Close
I_MfgOrderActlPlanTgtLdgrCost is a Composite CDS View (Cube) that provides data about "Manufacturing Order Actual Plan Target Ledger Specific Cost" in SAP S/4HANA. It reads from 1 data source (P_MfgOrderActlPlanTgtCostV2) and exposes 60 fields with key fields OrderItem, WorkCenterInternalID, OrderOperation, GLAccount, PartnerCostCtrActivityType. It has 15 associations to related views.
SAP Help Documentation
| Category | CDS Views for Product Cost Controlling |
|---|---|
| Data Category | Cube |
This CDS view provides the data to answer the following business questions: How many costs are scheduled for the order (plan costs) How many costs are invested in the order (actual costs) Based on different target cost versions, how many costs are budgeted for the order (target costs) This CDS view works as successor of deprecated interface view I_MfgOrderActlPlanTgtCost. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: C_AFKO_AWA ( CIM: Authorization for Prod. Order/Order Type/Plant/Activity ) F_BKPF_BUK ( Accounting Document: Authorization for Company Codes ) K_ORDER ( CO-OPA: General authorization object for internal orders ) Business Data This CDS view includes only released orders. This CDS view supports event-based orders running with scope item 3F0 (event-based production posting solution) and non-event-based orders running with scope item BEI (period-end production posting solution). This CDS view supports order category production order (10) and process order (40). This CDS view supports normal products and co-products. This CDS view supports currency roles as per customized in your universal journal entry ledger currency settings, for example: company code currency (10), controlling area currency (30), free defined currency (Z1, Z2).
Structure
Parameters The parameters of the CDS view are as follows: P_FromFiscalYearPeriod: Lower limit of time frame to select production costs. Period format in YYYYMMM (for example 2020005). P_ToFiscalYearPeriod: Upper limit of time frame to select production costs. Period format in YYYYMMM (for example 2021005). P_Ledger: Display ledger. This CDS view supports standard ledgers as per customized in your universal journal entry ledger settings, including leading ledger and parallel non-leading ledger, for example 0L, 2L. P_CurrencyRole: Display currency. This CDS view supports currency roles as per customized in your universal journal entry ledger currency settings, for example company code currency (10), group currency (30), free defined currency (Z1). P_TargetCostVariant: Target cost calculation base. Specify it as ‘0’ to get results of target costs based on standard cost estimate; Specify it as ‘1’to get result of target costs based on order planned costs. Fields used for filtering The main filters are as follows: Controlling Area Ledger Company Code Plant Order Number Order Item Order Type Order Category G/L Account Chart of Accounts Work Center Operation Product (Produced Product) Material (Input Component) Partner Activity Type Partner Cost Center Sales Order Sales Order Item Valuation Strategy WBS element Further important fields Important fields in this view include the following: Actual Cost Credit Actual Cost Debit Actual Fixed Cost Credit Actual Fixed Cost Debit Actual Quantity Plan Cost Credit Plan Cost Debit Plan Fixed Cost Debit Plan Quantity Target Quantity Target Cost Credit Target Cost Debit Unit of Measure
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Accounting and Financial Close |
| Application Component | CO-PC-OBJ |
| Capabilities | Data Source for Defining CDS Entities |
| Package | Accounting and Financial Close for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view is an analytical query view which provides work in process and variance details of event-based manufacturing orders based on ledger selection.</p> This CDS view provides the data to answer the following business questions:<ul> <li><p>How much work in process was created in the selected period?</p></li> <li><p>What variances were created during the production process?</p></li> <li><p>What specific factors are the root causes of the overall production variance? (Input quantity, input price, component usage, and so on)</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> |
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 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 (1)
| Source | Alias | Join Type |
|---|---|---|
| P_MfgOrderActlPlanTgtCostV2 | P_MfgOrderActlPlanTgtCostV2 | from |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_FromFiscalYearPeriod | fins_fyearperiod | |
| P_ToFiscalYearPeriod | fins_fyearperiod | |
| P_Ledger | fins_ledger | |
| P_CurrencyRole | fac_crcyrole | |
| P_TargetCostVariant | fis_awvrs |
Associations (15)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_Product | _Product | $projection.Product = _Product.Product |
| [0..1] | I_Product | _ProducedProduct | $projection.ProducedProduct = _ProducedProduct.Product |
| [0..1] | I_Order | _Order | $projection.OrderID = _Order.OrderID |
| [0..1] | I_OrderItem | _OrderItem | $projection.OrderID = _OrderItem.OrderID and $projection.OrderItem = _OrderItem.OrderItem |
| [0..1] | I_UnitOfMeasure | _BaseUnit | $projection.UnitOfMeasure = _BaseUnit.UnitOfMeasure |
| [0..*] | I_CostCenter | _PartnerCostCenter | $projection.ControllingArea = _PartnerCostCenter.ControllingArea and $projection.PartnerCostCenter = _PartnerCostCenter.CostCenter |
| [0..*] | I_CostCenterActivityType | _PartnerCostCtrActivityType | $projection.ControllingArea = _PartnerCostCtrActivityType.ControllingArea and $projection.PartnerCostCtrActivityType = _PartnerCostCtrActivityType.CostCtrActivityType |
| [0..1] | I_ChartOfAccounts | _ChartOfAccounts | $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts |
| [0..1] | I_GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | $projection.ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts and $projection.GLAccount = _GLAccountInChartOfAccounts.GLAccount |
| [0..1] | I_SalesOrder | _SalesOrder | $projection.SalesOrder = _SalesOrder.SalesOrder |
| [0..1] | I_SalesOrderItem | _SalesOrderItem | $projection.SalesOrder = _SalesOrderItem.SalesOrder and $projection.SalesOrderItem = _SalesOrderItem.SalesOrderItem |
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [0..1] | I_WorkCenter | _WorkCenter | $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID and _WorkCenter.WorkCenterTypeCode = 'A' |
| [0..1] | I_WBSElementBasicData | _WBSElement | _WBSElement.WBSElementInternalID = $projection.WBSElementInternalID |
Annotations (18)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | IFIORDAPTLCOST | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Manufacturing Order Actual Plan Target Ledger Specific Cost | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.internalName | #LOCAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view |
Fields (60)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| lookupEntityI_FiscalCalendarDate | ||||
| resultElementFiscalYearPeriod | ||||
| resultElementFiscalYearPeriod | ||||
| P_FromFiscalYearPeriod | ||||
| P_ToFiscalYearPeriod | ||||
| P_Ledger | ||||
| P_CurrencyRole | ||||
| WBSElementInternalIDkeyOrderID | ||||
| KEY | OrderItem | OrderItem | Order item number | |
| KEY | WorkCenterInternalID | WorkCenterInternalID | Object ID of the resource | |
| KEY | OrderOperation | OrderOperation | Operation or Phase Number | |
| KEY | GLAccount | GLAccount | General Ledger | |
| KEY | PartnerCostCtrActivityType | PartnerCostCtrActivityType | Partner Cost Center Activity Type | |
| KEY | PartnerCostCenter | PartnerCostCenter | Partner Cost Center | |
| KEY | Plant | Plant | Valuation Area | |
| KEY | Product | Product | Product Number | |
| KEY | UnitOfMeasure | UnitOfMeasure | Unit Protected Qty | |
| KEY | CurPlanProjSlsOrdValnStrategy | CurPlanProjSlsOrdValnStrategy | Val. Strat. for Current Plan Price, Sales Order/Proj. Stock | |
| Ledger | Ledger in General Ledger Accounting | |||
| ControllingArea | ControllingArea | Controlling Area | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| ProducedProduct | ProducedProduct | Product Number | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| WBSElementExternalID | _WBSElement | WBSElementExternalID | Work Breakdown Structure Element (WBS Element) Edited | |
| WorkCenter | _WorkCenter | WorkCenter | Work Center | |
| ChartOfAccounts | ChartOfAccounts | Chart of Accounts | ||
| OrderType | OrderType | Order Type | ||
| OrderCategory | OrderCategory | Order Category | ||
| DisplayCurrency | DisplayCurrency | Display Currency | ||
| CreditActlCostInDspCrcy | Actual Cost Credit | |||
| DebitActlCostInDspCrcy | Actual Cost Debit | |||
| CrdtActlFxdCostInDspCrcy | Actual Fixed Cost Credit | |||
| DebitActlFxdCostInDspCrcy | Actual Fixed Cost Debit | |||
| ActualQtyInCostSourceUnit | Actual Quantity | |||
| CreditPlanCostInDspCrcy | Plan Cost Credit | |||
| DebitPlanCostInDspCrcy | Plan Cost Debit | |||
| CrdtPlnFxdCostInDspCrcy | Plan Fixed Cost Credit | |||
| DebitPlnFxdCostInDspCrcy | Plan Fixed Cost Debit | |||
| PlanQtyInCostSourceUnit | Plan Quantity | |||
| CrdtTargetCostInDspCrcy | Target Cost Credit | |||
| DebitTargetCostInDspCrcy | Target Cost Debit | |||
| TargetQtyInCostSourceUnit | Target Quantity | |||
| _Order | _Order | |||
| _OrderItem | _OrderItem | |||
| _ControllingArea | _ControllingArea | |||
| _CompanyCode | _CompanyCode | |||
| _Plant | _Plant | |||
| _Product | _Product | |||
| _ProducedProduct | _ProducedProduct | |||
| _PartnerCostCtrActivityType | _PartnerCostCtrActivityType | |||
| _PartnerCostCenter | _PartnerCostCenter | |||
| _WorkCenter | _WorkCenter | |||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | |||
| _BaseUnit | _BaseUnit | |||
| _SalesOrder | _SalesOrder | |||
| _SalesOrderItem | _SalesOrderItem | |||
| _WBSElement | _WBSElement |
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_MfgOrderActlPlanTgtLdgrCost.
-- 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: IFIORDAPTLCOST
-- Parameters: P_FromFiscalYearPeriod : fins_fyearperiod, P_ToFiscalYearPeriod : fins_fyearperiod, P_Ledger : fins_ledger, P_CurrencyRole : fac_crcyrole, P_TargetCostVariant : fis_awvrs
CREATE VIEW I_MfgOrderActlPlanTgtLdgrCost AS
SELECT
lookupEntity: 'I_FiscalCalendarDate' AS lookupEntityI_FiscalCalendarDate,
resultElement: 'FiscalYearPeriod' AS resultElementFiscalYearPeriod,
derivation: { lookupEntity: 'I_Ledger', resultElement: 'Ledger', binding: [ { targetElement: 'IsLeadingLedger', type: #CONSTANT, value: 'X' AS P_FromFiscalYearPeriod,
P_ToFiscalYearPeriod : $parameters.P_ToFiscalYearPeriod AS P_ToFiscalYearPeriod,
P_Ledger : $parameters.P_Ledger AS P_Ledger,
P_CurrencyRole : $parameters.P_CurrencyRole AS P_CurrencyRole,
OrderItem,
WorkCenterInternalID,
OrderOperation,
GLAccount,
PartnerCostCtrActivityType,
PartnerCostCenter,
Plant,
Product,
UnitOfMeasure,
CurPlanProjSlsOrdValnStrategy,
cast( :P_Ledger as fins_ledger ) AS Ledger,
ControllingArea,
CompanyCode,
ProducedProduct,
SalesOrder,
SalesOrderItem,
WBSElementInternalID,
_WBSElement.WBSElementExternalID AS WBSElementExternalID,
_WorkCenter.WorkCenter AS WorkCenter,
ChartOfAccounts,
OrderType,
OrderCategory,
DisplayCurrency,
cast(CreditActlCostInDisplayCrcy as fis_cr_actlcost_in_dspcrcy) AS CreditActlCostInDspCrcy,
cast(DebitActlCostInDisplayCrcy as fis_dr_actlcost_in_dspcrcy) AS DebitActlCostInDspCrcy,
cast(CrdtActlFixedCostInDspCrcy as fis_cr_actlfxdcost_in_dspcrcy) AS CrdtActlFxdCostInDspCrcy,
cast(DebitActlFixedCostInDspCrcy as fis_dr_actlfxdcost_in_dspcrcy) AS DebitActlFxdCostInDspCrcy,
cast(ActualQtyInCostSourceUnit as fis_actlqty_in_costsrceunit) AS ActualQtyInCostSourceUnit,
cast(CreditPlanCostInDisplayCrcy as fis_cr_plancost_in_dspcrcy) AS CreditPlanCostInDspCrcy,
cast(DebitPlanCostInDisplayCrcy as fis_dr_plancost_in_dspcrcy) AS DebitPlanCostInDspCrcy,
cast(CrdtPlanFixedCostInDspCrcy as fis_cr_plnfxdcost_in_dspcrcy) AS CrdtPlnFxdCostInDspCrcy,
cast(DebitPlanFixedCostInDspCrcy as fis_dr_plnfxdcost_in_dspcrcy) AS DebitPlnFxdCostInDspCrcy,
cast(PlanQtyInCostSourceUnit as fis_planqty_in_costsrceunit) AS PlanQtyInCostSourceUnit,
cast(CreditTgtCostInDisplayCrcy as fis_cr_tgtcost_in_dspcrcy) AS CrdtTargetCostInDspCrcy,
cast(DebitTgtCostInDisplayCrcy as fis_dr_tgtcost_in_dspcrcy) AS DebitTargetCostInDspCrcy,
cast(TargetQtyInCostSourceUnit as fis_tgtqty_in_costsrceunit) AS TargetQtyInCostSourceUnit
FROM P_MfgOrderActlPlanTgtCostV2
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product -- association [0..1]
LEFT OUTER JOIN I_Product AS _ProducedProduct ON ProducedProduct = _ProducedProduct.Product -- association [0..1]
LEFT OUTER JOIN I_Order AS _Order ON OrderID = _Order.OrderID -- association [0..1]
LEFT OUTER JOIN I_OrderItem AS _OrderItem ON OrderID = _OrderItem.OrderID AND OrderItem = _OrderItem.OrderItem -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON UnitOfMeasure = _BaseUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _PartnerCostCenter ON ControllingArea = _PartnerCostCenter.ControllingArea AND PartnerCostCenter = _PartnerCostCenter.CostCenter -- association [0..*]
LEFT OUTER JOIN I_CostCenterActivityType AS _PartnerCostCtrActivityType ON ControllingArea = _PartnerCostCtrActivityType.ControllingArea AND PartnerCostCtrActivityType = _PartnerCostCtrActivityType.CostCtrActivityType -- association [0..*]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts -- association [0..1]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts ON ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts AND GLAccount = _GLAccountInChartOfAccounts.GLAccount -- association [0..1]
LEFT OUTER JOIN I_SalesOrder AS _SalesOrder ON SalesOrder = _SalesOrder.SalesOrder -- association [0..1]
LEFT OUTER JOIN I_SalesOrderItem AS _SalesOrderItem ON SalesOrder = _SalesOrderItem.SalesOrder AND SalesOrderItem = _SalesOrderItem.SalesOrderItem -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [0..1]
LEFT OUTER JOIN I_WorkCenter AS _WorkCenter ON WorkCenterInternalID = _WorkCenter.WorkCenterInternalID AND _WorkCenter.WorkCenterTypeCode = 'A' -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElement ON _WBSElement.WBSElementInternalID = WBSElementInternalID -- 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