P_DACRMaterialPeriodExtract
MLDOC extract for Actual Costing periods
P_DACRMaterialPeriodExtract is a Composite CDS View that provides data about "MLDOC extract for Actual Costing periods" in SAP S/4HANA. It reads from 3 data sources (P_DACRActualCostingPeriods, P_DACRActualCostingPeriods, P_DACRMaterialHeaderExtract) and exposes 25 fields with key fields CostEstimate, CurrencyRole, Ledger, FiscalYearPeriod, ValuationPriceCategory. It has 1 association to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| P_DACRActualCostingPeriods | _ActualPeriods | from |
| P_DACRActualCostingPeriods | _ActualPeriods | union_all |
| P_DACRMaterialHeaderExtract | _MaterialExtract | union_all |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | P_DACRMaterialHeaderExtract | _MaterialExtract | _MaterialExtract.FiscalYearPeriod < _ActualPeriods.FiscalYearPeriod |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PDACRMLPEREX | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | MLDOC extract for Actual Costing periods | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | P_DACRMaterialHeaderExtract | CostEstimate | Cost EstimateNo |
| KEY | CurrencyRole | P_DACRMaterialHeaderExtract | CurrencyRole | Curr./Val. Type |
| KEY | Ledger | P_DACRMaterialHeaderExtract | Ledger | Ledger |
| KEY | FiscalYearPeriod | |||
| KEY | ValuationPriceCategory | |||
| MaterialPriceUnitQty | ||||
| BaseUnit | P_DACRMaterialHeaderExtract | BaseUnit | Unit of Measure | |
| InventoryPrice | ||||
| CostEstimate | Cost EstimateNo | |||
| KEY | CurrencyRole | P_DACRMaterialHeaderExtract | CurrencyRole | Curr./Val. Type |
| KEY | Ledger | P_DACRMaterialHeaderExtract | Ledger | Ledger |
| KEY | FiscalYearPeriod | |||
| KEY | ValuationPriceCategory | |||
| MaterialPriceUnitQty | ||||
| BaseUnit | P_DACRMaterialHeaderExtract | BaseUnit | Unit of Measure | |
| InventoryPrice | ||||
| CostEstimate | Cost EstimateNo | |||
| KEY | CurrencyRole | P_DACRMaterialHeaderExtract | CurrencyRole | Curr./Val. Type |
| KEY | Ledger | P_DACRMaterialHeaderExtract | Ledger | Ledger |
| KEY | FiscalYearPeriod | |||
| KEY | ValuationPriceCategory | |||
| MaterialPriceUnitQty | ||||
| BaseUnit | P_DACRMaterialHeaderExtract | BaseUnit | Unit of Measure | |
| InventoryPrice | ||||
| Currency | P_DACRMaterialHeaderExtract | 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_DACRMaterialPeriodExtract.
-- 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: PDACRMLPEREX
CREATE VIEW P_DACRMaterialPeriodExtract AS
SELECT
_MaterialExtract.CostEstimate AS CostEstimate,
_MaterialExtract.CurrencyRole AS CurrencyRole,
_MaterialExtract.Ledger AS Ledger,
cast(_ActualPeriods.FiscalYearPeriod as ml4h_jahrper preserving type) AS FiscalYearPeriod,
cast('AB' as ckml_categ preserving type) AS ValuationPriceCategory,
cast( sum(_MaterialExtract.MaterialPriceUnitQty) as ml4h_quantity) AS MaterialPriceUnitQty,
_MaterialExtract.BaseUnit AS BaseUnit,
cast( sum(_MaterialExtract.InventoryPrice) as ml4h_stval) AS InventoryPrice,
_MaterialExtract.Currency AS Currency
FROM P_DACRActualCostingPeriods AS _ActualPeriods
LEFT OUTER JOIN P_DACRMaterialHeaderExtract AS _MaterialExtract ON /* condition not available in parsed metadata */ -- association [1..*]
-- UNION ALL with additional select branch(es): P_DACRActualCostingPeriods, P_DACRMaterialHeaderExtract
;
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