I_MLPrExtRefCostEstimate

DDL: I_MLPREXTREFCOSTESTIMATE SQL: IMLPEXTREFCE Type: view BASIC Package: FINS_ML_VDM

Material Price Ext Ref for Cost Est Key

I_MLPrExtRefCostEstimate is a Basic CDS View that provides data about "Material Price Ext Ref for Cost Est Key" in SAP S/4HANA. It reads from 1 data source (P_MaterialLedgerPrice) and exposes 31 fields with key fields CostEstimate, Ledger, CurrencyRole, MaterialPriceType, MaterialPriceSubtype. Part of development package FINS_ML_VDM.

Data Sources (1)

SourceAliasJoin Type
P_MaterialLedgerPrice P_MaterialLedgerPrice from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IMLPEXTREFCE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Material Price Ext Ref for Cost Est Key view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #BASIC view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY CostEstimate CostEstimate Cost EstimateNo
KEY Ledger Ledger Ledger
KEY CurrencyRole CurrencyRole Curr./Val. Type
KEY MaterialPriceType MaterialPriceType Price Type
KEY MaterialPriceSubtype MaterialPriceSubtype Price Sub-Type
KEY MaterialPriceValidityStartDate MaterialPriceValidityStartDate Validity Start Date
MaterialPriceValidityEndDate MaterialPriceValidityEndDate Validity End Date
MatlPrcValidityStartFiscalYear MatlPrcValidityStartFiscalYear From Year
MatlPrcValdtyStartFiscalPeriod MatlPrcValdtyStartFiscalPeriod Period Start
MatlPrcValdtyStrtFsclYearPerd MatlPrcValdtyStrtFsclYearPerd
MatlPrcValidityEndFiscalYear MatlPrcValidityEndFiscalYear To FY
MatlPrcValdtyEndFiscalPeriod MatlPrcValdtyEndFiscalPeriod To Period
MaterialPrice MaterialPrice Inventory Price
FixedPortionOfMaterialPrice FixedPortionOfMaterialPrice Price Fixed Portion
Currency Currency Valuation Crcy
MaterialPriceUnitQty MaterialPriceUnitQty Price unit
ValuationQuantityUnit ValuationQuantityUnit Valuation Unit
MaterialPriceCostEstimateStage MaterialPriceCostEstimateStage Stage
Material Material Vehicle Model
ValuationArea ValuationArea Valuation Area
CompanyCode CompanyCode Receiver Company Code
MaterialPriceExtRefCategory MaterialPriceExtRefCategory Orig Ext Ref Cat
MaterialPriceExtReference MaterialPriceExtReference Orig. ER Data
CostingReferenceObject
ProdCostEstNumber
CostingType
CostingDate
CostingVersion
ValuationVariant
CostIsEnteredManually
CurPlanProjSlsOrdValnStrategy CurPlanProjSlsOrdValnStrategy Curr. Valn Strat.

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_MLPrExtRefCostEstimate.
-- 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: IMLPEXTREFCE

CREATE VIEW I_MLPrExtRefCostEstimate AS
SELECT
  CostEstimate,
  Ledger,
  CurrencyRole,
  MaterialPriceType,
  MaterialPriceSubtype,
  MaterialPriceValidityStartDate,
  MaterialPriceValidityEndDate,
  MatlPrcValidityStartFiscalYear,
  MatlPrcValdtyStartFiscalPeriod,
  MatlPrcValdtyStrtFsclYearPerd,
  MatlPrcValidityEndFiscalYear,
  MatlPrcValdtyEndFiscalPeriod,
  MaterialPrice,
  FixedPortionOfMaterialPrice,
  Currency,
  MaterialPriceUnitQty,
  ValuationQuantityUnit,
  MaterialPriceCostEstimateStage,
  Material,
  ValuationArea,
  CompanyCode,
  MaterialPriceExtRefCategory,
  MaterialPriceExtReference,
  cast( substring(MaterialPriceExtReference, 1, 1) as ck_obj preserving type ) AS CostingReferenceObject,
  cast( substring(MaterialPriceExtReference, 3, 12) as ck_kalnr1 ) AS ProdCostEstNumber,
  cast( substring(MaterialPriceExtReference, 16, 2) as ck_kalka preserving type ) AS CostingType,
  cast( substring(MaterialPriceExtReference, 19, 8) as ck_kadky ) AS CostingDate,
  cast( substring(MaterialPriceExtReference, 28, 2) as ck_tvers ) AS CostingVersion,
  cast( substring(MaterialPriceExtReference, 31, 3) as ck_bwvar preserving type ) AS ValuationVariant,
  cast ( '' as ck_kkzma preserving type ) AS CostIsEnteredManually,
  CurPlanProjSlsOrdValnStrategy
FROM P_MaterialLedgerPrice
;