P_DACRMaterialPeriodExtract

DDL: P_DACRMATERIALPERIODEXTRACT SQL: PDACRMLPEREX Type: view COMPOSITE

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)

SourceAliasJoin Type
P_DACRActualCostingPeriods _ActualPeriods from
P_DACRActualCostingPeriods _ActualPeriods union_all
P_DACRMaterialHeaderExtract _MaterialExtract union_all

Associations (1)

CardinalityTargetAliasCondition
[1..*] P_DACRMaterialHeaderExtract _MaterialExtract _MaterialExtract.FiscalYearPeriod < _ActualPeriods.FiscalYearPeriod

Annotations (12)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;