P_Matval_Manage_Cost_Sls_Ord

DDL: P_MATVAL_MANAGE_COST_SLS_ORD SQL: PMATVALMGSOCOST Type: view COMPOSITE

P_Matval_Manage_Cost_Sls_Ord is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (I_SalesDocumentCostEstimate, R_MatlLedgerValnCrcyRole, mara, I_MLPrExtRefCostEstimate) and exposes 20 fields with key fields CostEstimate, CostingVersion, ValuationVariant, LedgerValuationCurrencyRole.

Data Sources (4)

SourceAliasJoin Type
I_SalesDocumentCostEstimate k inner
R_MatlLedgerValnCrcyRole lvcr inner
mara ma inner
I_MLPrExtRefCostEstimate price from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PMATVALMGSOCOST view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY CostEstimate I_MLPrExtRefCostEstimate CostEstimate Cost EstimateNo
KEY CostingVersion I_SalesDocumentCostEstimate CostingVersion Costing Version
KEY ValuationVariant I_SalesDocumentCostEstimate ValuationVariant Valuation Variant
KEY LedgerValuationCurrencyRole R_MatlLedgerValnCrcyRole LedgerValuationCurrencyRole
AccountingValuationView R_MatlLedgerValnCrcyRole AccountingValuationView
AccountingValuationSubview R_MatlLedgerValnCrcyRole AccountingValuationSubview
CostEstimateStatus I_SalesDocumentCostEstimate CostEstimateStatus Costing Status
CostingVariant I_SalesDocumentCostEstimate CostingVariant Costing Variant
Material I_MLPrExtRefCostEstimate Material Vehicle Model
ValuationArea I_MLPrExtRefCostEstimate ValuationArea Valuation Area
CompanyCode I_MLPrExtRefCostEstimate CompanyCode Receiver Company Code
CostingType I_SalesDocumentCostEstimate CostingType Costing Type
PlannedPrice I_MLPrExtRefCostEstimate MaterialPrice Inventory Price
FixedPortionOfPlannedPrice I_MLPrExtRefCostEstimate FixedPortionOfMaterialPrice
Currency I_MLPrExtRefCostEstimate Currency Valuation Crcy
MaterialPriceUnitQty I_MLPrExtRefCostEstimate MaterialPriceUnitQty Price unit
BaseUnit mara meins Valuation Unit
ValuationQuantityUnit I_MLPrExtRefCostEstimate ValuationQuantityUnit Valuation Unit
SalesOrder I_SalesDocumentCostEstimate SalesDocument SD Document
SalesOrderItem I_SalesDocumentCostEstimate SalesDocumentItem Sales Document Item

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_Matval_Manage_Cost_Sls_Ord.
-- 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: PMATVALMGSOCOST

CREATE VIEW P_Matval_Manage_Cost_Sls_Ord AS
SELECT
  price.CostEstimate AS CostEstimate,
  k.CostingVersion AS CostingVersion,
  k.ValuationVariant AS ValuationVariant,
  lvcr.LedgerValuationCurrencyRole AS LedgerValuationCurrencyRole,
  lvcr.AccountingValuationView AS AccountingValuationView,
  lvcr.AccountingValuationSubview AS AccountingValuationSubview,
  k.CostEstimateStatus AS CostEstimateStatus,
  k.CostingVariant AS CostingVariant,
  price.Material AS Material,
  price.ValuationArea AS ValuationArea,
  price.CompanyCode AS CompanyCode,
  k.CostingType AS CostingType,
  price.MaterialPrice AS PlannedPrice,
  price.FixedPortionOfMaterialPrice AS FixedPortionOfPlannedPrice,
  price.Currency AS Currency,
  price.MaterialPriceUnitQty AS MaterialPriceUnitQty,
  ma.meins AS BaseUnit,
  price.ValuationQuantityUnit AS ValuationQuantityUnit,
  k.SalesDocument AS SalesOrder,
  k.SalesDocumentItem AS SalesOrderItem
FROM I_MLPrExtRefCostEstimate AS price
INNER JOIN I_SalesDocumentCostEstimate AS k ON /* join condition not captured in parsed metadata */
INNER JOIN R_MatlLedgerValnCrcyRole AS lvcr ON /* join condition not captured in parsed metadata */
INNER JOIN mara AS ma ON /* join condition not captured in parsed metadata */
;