P_MfgOrdTargetCost3V2
Manufacturing Order Target Ledger Specific Cost2 V2
P_MfgOrdTargetCost3V2 is a Composite CDS View that provides data about "Manufacturing Order Target Ledger Specific Cost2 V2" in SAP S/4HANA. It reads from 3 data sources (P_EBPC_MfgPlanOutputQuantity, P_EBOrderActualOutputQty, P_MfgOrdPlanCostByLdgr2V2) and exposes 19 fields with key fields OrderID, OrderItem, CompanyCode, AccountAssignmentType, ControllingArea. Part of development package FINS_FIS_PCC.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| P_EBPC_MfgPlanOutputQuantity | _PlanQuantity | inner |
| P_EBOrderActualOutputQty | P_EBOrderActualOutputQty | from |
| P_MfgOrdPlanCostByLdgr2V2 | P_MfgOrdPlanCostByLdgr2V2 | inner |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_FromFiscalYearPeriod | fis_jahrper | |
| P_ToFiscalYearPeriod | fis_jahrper | |
| P_Ledger | fins_ledger | |
| P_CurrencyRole | fac_crcyrole |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMFGORDTGTCST3V2 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.private | true | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderID | _ActualQuantity | OrderID | Order ID |
| KEY | OrderItem | _ActualQuantity | OrderItem | |
| KEY | CompanyCode | _PlanCost | CompanyCode | Receiver Company Code |
| KEY | AccountAssignmentType | AccountAssignmentType | Sndr AcctAssgmt Type | |
| KEY | ControllingArea | ControllingArea | Controlling Area | |
| KEY | product | _PlanCost | Material | Vehicle Model |
| KEY | Plant | _PlanCost | Plant | Valuation Area |
| KEY | GLAccount | GLAccount | General Ledger | |
| KEY | WorkCenterInternalID | WorkCenterInternalID | Work Center | |
| KEY | OrderOperation | OrderOperation | Operation or Phase | |
| KEY | TargetCostVariant | |||
| KEY | ControllingValueType | |||
| KEY | ControllingDebitCreditCode | ControllingDebitCreditCode | Dr/Cr ind. CO | |
| KEY | PartnerCostCenter | PartnerCostCenter | Sender Cost Ctr | |
| KEY | PartnerCostCtrActivityType | PartnerCostCtrActivityType | Partner Cost Center Activity Type | |
| KEY | UnitOfMeasure | CostSourceUnit | ||
| KEY | IsLotSizeIndependent | IsLotSizeIndependent | ||
| KEY | ValuationStrategy | |||
| quan233else0endendasTotalQuantity |
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 P_MfgOrdTargetCost3V2.
-- 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: PMFGORDTGTCST3V2
-- Parameters: P_FromFiscalYearPeriod : fis_jahrper, P_ToFiscalYearPeriod : fis_jahrper, P_Ledger : fins_ledger, P_CurrencyRole : fac_crcyrole
CREATE VIEW P_MfgOrdTargetCost3V2 AS
SELECT
_ActualQuantity.OrderID AS OrderID,
_ActualQuantity.OrderItem AS OrderItem,
_PlanCost.CompanyCode AS CompanyCode,
AccountAssignmentType,
ControllingArea,
_PlanCost.Material AS product,
_PlanCost.Plant AS Plant,
GLAccount,
WorkCenterInternalID,
OrderOperation,
cast('001' as fis_awvrs ) AS TargetCostVariant,
cast('05' as co_wrttp) AS ControllingValueType,
ControllingDebitCreditCode,
PartnerCostCenter,
PartnerCostCtrActivityType,
CostSourceUnit AS UnitOfMeasure,
IsLotSizeIndependent,
cast('3' as ck_lbwst) AS ValuationStrategy,
case when IsLotSizeIndependent = 'X' then TotalQuantity else case when PlanOutputQuantity <> 0 then cast( round(cast(division( ActualOutputQuantity, PlanOutputQuantity, 6) as abap.dec(14, 6)) * TotalQuantity, 3) as abap.quan( 23, 3 ) ) else 0 end end as TotalQuantity AS quan233else0endendasTotalQuantity
FROM P_EBOrderActualOutputQty
INNER JOIN P_EBPC_MfgPlanOutputQuantity AS _PlanQuantity ON /* join condition not captured in parsed metadata */
INNER JOIN P_MfgOrdPlanCostByLdgr2V2 ON /* join condition not captured in parsed metadata */
;
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