P_ActlCostgRunRsltBegInvtryDta
Beginning Inventory Data
P_ActlCostgRunRsltBegInvtryDta is a Composite CDS View that provides data about "Beginning Inventory Data" in SAP S/4HANA. It reads from 8 data sources and exposes 51 fields with key fields CostEstimate, CurrencyRole, Ledger, Material, ValuationArea. Part of development package FCML4H_DISPLAY.
Data Sources (8)
| Source | Alias | Join Type |
|---|---|---|
| P_MaterialLedgerCostingRun | CostingRun | inner |
| P_MaterialLedgerCostingRun | CostingRun | inner |
| P_InvtryLdgrMatlLedgerDocument | MatlLedgerDocument | inner |
| P_MaterialLedgerHeaderData | MatlLedgerHeaderData | inner |
| P_MaterialLedgerHeaderData | MatlLedgerHeaderData | inner |
| P_MatlLedgerDocumentExtract | MLDocExtract | inner |
| P_MatLedgerCostingRunPerPeriod | PerPeriod | from |
| P_MatLedgerCostingRunPerPeriod | PerPeriod | union_all |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_CostingRunType | ckml_run_type | |
| P_FiscalPeriod | fins_fiscalperiod | |
| P_FiscalYear | fis_gjahr_no_conv |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (51)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | P_MatlLedgerDocumentExtract | CostEstimate | Cost EstimateNo |
| KEY | CurrencyRole | P_MatlLedgerDocumentExtract | CurrencyRole | Curr./Val. Type |
| KEY | Ledger | P_MatlLedgerDocumentExtract | Ledger | Ledger |
| KEY | Material | P_MaterialLedgerHeaderData | Material | Vehicle Model |
| KEY | ValuationArea | P_MaterialLedgerHeaderData | ValuationArea | Valuation Area |
| KEY | InventoryValuationType | P_MaterialLedgerHeaderData | InventoryValuationType | Valuation Type |
| KEY | SalesOrder | P_MaterialLedgerHeaderData | SalesOrder | SD Document |
| KEY | SalesOrderItem | P_MaterialLedgerHeaderData | SalesOrderItem | Sales Order Item |
| KEY | InventorySpecialStockType | P_MaterialLedgerHeaderData | InventorySpecialStockType | Special Stock Type |
| KEY | WBSElementExternalID | |||
| KEY | Supplier | P_MaterialLedgerHeaderData | Supplier | Supplier |
| KEY | MaterialLedgerCategory | |||
| KEY | ProcessCategory | |||
| KEY | MatlLdgrDocIsCostingRelevant | |||
| KEY | ProcurementAlternative | PrcrmntAlt/Proc | ||
| KEY | ProductionProcess | Trans. | ||
| KEY | MovementType | |||
| KEY | GLAccount | |||
| FiscalYearPeriod | P_MatlLedgerDocumentExtract | FiscalYearPeriod | Period/Year | |
| PriceDeterminationControl | P_MaterialLedgerHeaderData | PriceDeterminationControl | Price Determ. | |
| TotalVltdStockQuantity | ||||
| ValuationQuantityUnit | P_MatlLedgerDocumentExtract | ValuationQuantityUnit | Valuation Unit | |
| InvtryTransacAmtInDisplayCrcy | ||||
| PriceDiffAmtInDisplayCrcy | ||||
| ExchRateDiffAmtInDspCurrency | ||||
| CostEstimateasCostEstimate | ||||
| KEY | CurrencyRole | P_InvtryLdgrMatlLedgerDocument | CurrencyRole | Curr./Val. Type |
| KEY | Ledger | P_InvtryLdgrMatlLedgerDocument | Ledger | Ledger |
| KEY | Material | P_MaterialLedgerHeaderData | Material | Vehicle Model |
| KEY | ValuationArea | P_MaterialLedgerHeaderData | ValuationArea | Valuation Area |
| KEY | InventoryValuationType | P_MaterialLedgerHeaderData | InventoryValuationType | Valuation Type |
| KEY | SalesOrder | P_MaterialLedgerHeaderData | SalesOrder | SD Document |
| KEY | SalesOrderItem | P_MaterialLedgerHeaderData | SalesOrderItem | Sales Order Item |
| KEY | InventorySpecialStockType | P_MaterialLedgerHeaderData | InventorySpecialStockType | Special Stock Type |
| KEY | WBSElementExternalID | |||
| KEY | Supplier | P_MaterialLedgerHeaderData | Supplier | Supplier |
| KEY | MaterialLedgerCategory | |||
| KEY | ProcessCategory | |||
| KEY | MatlLdgrDocIsCostingRelevant | |||
| KEY | ProcurementAlternative | P_InvtryLdgrMatlLedgerDocument | ProcurementAlternative | PrcrmntAlt/Proc |
| KEY | ProductionProcess | P_InvtryLdgrMatlLedgerDocument | ProductionProcess | Trans. |
| KEY | MovementType | |||
| KEY | GLAccount | |||
| FiscalYearPeriod | P_InvtryLdgrMatlLedgerDocument | FiscalYearPeriod | Period/Year | |
| PriceDeterminationControl | P_MaterialLedgerHeaderData | PriceDeterminationControl | Price Determ. | |
| TotalVltdStockQuantity | ||||
| ValuationQuantityUnit | P_InvtryLdgrMatlLedgerDocument | ValuationQuantityUnit | Valuation Unit | |
| InvtryTransacAmtInDisplayCrcy | ||||
| PriceDiffAmtInDisplayCrcy | ||||
| ExchRateDiffAmtInDspCurrency | ||||
| Currency | P_InvtryLdgrMatlLedgerDocument | Currency | Valuation Crcy |
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_ActlCostgRunRsltBegInvtryDta.
-- 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.
-- Parameters: P_CostingRunType : ckml_run_type, P_FiscalPeriod : fins_fiscalperiod, P_FiscalYear : fis_gjahr_no_conv
CREATE VIEW P_ActlCostgRunRsltBegInvtryDta AS
SELECT
MLDocExtract.CostEstimate AS CostEstimate,
MLDocExtract.CurrencyRole AS CurrencyRole,
MLDocExtract.Ledger AS Ledger,
MatlLedgerHeaderData.Material AS Material,
MatlLedgerHeaderData.ValuationArea AS ValuationArea,
MatlLedgerHeaderData.InventoryValuationType AS InventoryValuationType,
MatlLedgerHeaderData.SalesOrder AS SalesOrder,
MatlLedgerHeaderData.SalesOrderItem AS SalesOrderItem,
MatlLedgerHeaderData.InventorySpecialStockType AS InventorySpecialStockType,
MatlLedgerHeaderData._WBSElementBasicData.WBSElementExternalID AS WBSElementExternalID,
MatlLedgerHeaderData.Supplier AS Supplier,
cast ( 'AB' as ckml_categ preserving type ) AS MaterialLedgerCategory,
cast ( ' ' as ck_ptyp_bvalt preserving type ) AS ProcessCategory,
cast ( 'X' as ml4h_xabr preserving type ) AS MatlLdgrDocIsCostingRelevant,
cast ( '000000000000' as ckml_alprocnr preserving type ) AS ProcurementAlternative,
cast ( '000000000000' as ckml_f_procnr preserving type ) AS ProductionProcess,
cast ( ' ' as mmim_movement_type preserving type ) AS MovementType,
cast ( ' ' as saknr preserving type ) AS GLAccount,
MLDocExtract.FiscalYearPeriod AS FiscalYearPeriod,
MatlLedgerHeaderData.PriceDeterminationControl AS PriceDeterminationControl,
sum(MLDocExtract.TotalVltdStockQuantity) AS TotalVltdStockQuantity,
MLDocExtract.ValuationQuantityUnit AS ValuationQuantityUnit,
sum(MLDocExtract.InvtryTransacAmtInDisplayCrcy) AS InvtryTransacAmtInDisplayCrcy,
cast ( 0 as ml4h_prd ) AS PriceDiffAmtInDisplayCrcy,
cast ( 0 as ml4h_kdm ) AS ExchRateDiffAmtInDspCurrency,
MLDocExtract.Currency as Currency AS CostEstimateasCostEstimate,
MatlLedgerDocument.Currency AS Currency
FROM P_MatLedgerCostingRunPerPeriod AS PerPeriod
INNER JOIN P_MaterialLedgerCostingRun AS CostingRun ON /* join condition not captured in parsed metadata */
INNER JOIN P_MatlLedgerDocumentExtract AS MLDocExtract ON /* join condition not captured in parsed metadata */
INNER JOIN P_MaterialLedgerHeaderData AS MatlLedgerHeaderData ON /* join condition not captured in parsed metadata */
INNER JOIN P_InvtryLdgrMatlLedgerDocument AS MatlLedgerDocument ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_MatLedgerCostingRunPerPeriod
;
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