C_MatlValnManageCostEst

DDL: C_MATLVALNMANAGECOSTEST SQL: CMVMCOSTEST Type: view CONSUMPTION

Cost Estimates for Material Valuations

C_MatlValnManageCostEst is a Consumption CDS View that provides data about "Cost Estimates for Material Valuations" in SAP S/4HANA. It reads from 2 data sources (P_Matval_Manage_Cost, R_MatlLedgerValnCrcyRole) and exposes 38 fields with key fields CostEstimate, CostingStatus, LedgerValuationCurrencyRole, Ledger. It has 4 associations to related views.

Data Sources (2)

SourceAliasJoin Type
P_Matval_Manage_Cost ce from
R_MatlLedgerValnCrcyRole lvcr inner

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_ControllingArea _ControllingAreaText $projection.controllingarea = _ControllingAreaText.ControllingArea
[0..*] I_ControllingValuationTypeText _ControllingValuationTypeText $projection.ControllingValuationType = _ControllingValuationTypeText.ControllingValuationType
[0..*] I_CostingVariantText _CostingVariantText $projection.CostingVariant = _CostingVariantText.CostingVariant
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CMVMCOSTEST view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Cost Estimates for Material Valuations view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY CostEstimate CostEstimate Cost EstimateNo
KEY CostingStatus CostingStatus
KEY LedgerValuationCurrencyRole P_Matval_Manage_Cost LedgerValuationCurrencyRole Valuation Area
KEY Ledger R_MatlLedgerValnCrcyRole Ledger Ledger
LegalCurrencyRole R_MatlLedgerValnCrcyRole LegalCurrencyRole
LegalCurrencyRoleName R_MatlLedgerValnCrcyRole LegalCurrencyRoleName
CurrencyRole
CurrencyRoleName R_MatlLedgerValnCrcyRole CurrencyRoleName
AccountingValuationSubview R_MatlLedgerValnCrcyRole AccountingValuationSubview Subtype Val
AccountingValuationSubviewName R_MatlLedgerValnCrcyRole AccountingValuationSubviewName
AcctgValnVwSubviewCombinedName R_MatlLedgerValnCrcyRole AcctgValnVwSubviewCombinedName
LedgerName R_MatlLedgerValnCrcyRole LedgerName Ledger Name
ControllingValuationType R_MatlLedgerValnCrcyRole AccountingValuationView Valuation View
AccountingValuationViewName R_MatlLedgerValnCrcyRole AccountingValuationViewName
CostingVersion CostingVersion
CostingVariant CostingVariant
CostEstimateValidityStartDate CostEstimateValidityStartDate
ValuationArea ValuationArea Valuation Area
CompanyCode P_Matval_Manage_Cost CompanyCode Receiver Company Code
ControllingArea _CompanyCode ControllingArea Controlling Area
ValuationVariant ValuationVariant
CostingType CostingType
CostEstimateMarkingDate CostEstimateMarkingDate
CostEstimateMarkingUser CostEstimateMarkingUser
CostEstimateReleaseDate CostEstimateReleaseDate
CostEstimateReleaseUser CostEstimateReleaseUser
PlannedPrice PlannedPrice Inventory Price
FixedPortionOfPlannedPrice FixedPortionOfPlannedPrice
Currency P_Matval_Manage_Cost Currency Valuation Crcy
MaterialPriceUnitQty MaterialPriceUnitQty Price unit
BaseUnit BaseUnit Unit of Measure
ValuationQuantityUnit ValuationQuantityUnit
ItemIsSelectedForProcessing
Material P_Matval_Manage_Cost Material Vehicle Model
_ControllingArea _CompanyCode _ControllingArea
_CostingVariantText _CostingVariantText
_ControllingValuationTypeText _ControllingValuationTypeText
_ControllingAreaText _ControllingAreaText

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 C_MatlValnManageCostEst.
-- 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: CMVMCOSTEST

CREATE VIEW C_MatlValnManageCostEst AS
SELECT
  CostEstimate,
  CostingStatus,
  ce.LedgerValuationCurrencyRole AS LedgerValuationCurrencyRole,
  lvcr.Ledger AS Ledger,
  lvcr.LegalCurrencyRole AS LegalCurrencyRole,
  lvcr.LegalCurrencyRoleName AS LegalCurrencyRoleName,
  cast( lvcr.CurrencyRole as fins_ext_curtype preserving type ) AS CurrencyRole,
  lvcr.CurrencyRoleName AS CurrencyRoleName,
  lvcr.AccountingValuationSubview AS AccountingValuationSubview,
  lvcr.AccountingValuationSubviewName AS AccountingValuationSubviewName,
  lvcr.AcctgValnVwSubviewCombinedName AS AcctgValnVwSubviewCombinedName,
  lvcr.LedgerName AS LedgerName,
  lvcr.AccountingValuationView AS ControllingValuationType,
  lvcr.AccountingValuationViewName AS AccountingValuationViewName,
  CostingVersion,
  CostingVariant,
  CostEstimateValidityStartDate,
  ValuationArea,
  ce.CompanyCode AS CompanyCode,
  _CompanyCode.ControllingArea AS ControllingArea,
  ValuationVariant,
  CostingType,
  CostEstimateMarkingDate,
  CostEstimateMarkingUser,
  CostEstimateReleaseDate,
  CostEstimateReleaseUser,
  PlannedPrice,
  FixedPortionOfPlannedPrice,
  ce.Currency AS Currency,
  MaterialPriceUnitQty,
  BaseUnit,
  ValuationQuantityUnit,
  '' AS ItemIsSelectedForProcessing,
  ce.Material AS Material,
  _CompanyCode._ControllingArea AS _ControllingArea
FROM P_Matval_Manage_Cost AS ce
INNER JOIN R_MatlLedgerValnCrcyRole AS lvcr ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ControllingArea AS _ControllingAreaText ON controllingarea = _ControllingAreaText.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_ControllingValuationTypeText AS _ControllingValuationTypeText ON ControllingValuationType = _ControllingValuationTypeText.ControllingValuationType  -- association [0..*]
LEFT OUTER JOIN I_CostingVariantText AS _CostingVariantText ON CostingVariant = _CostingVariantText.CostingVariant  -- association [0..*]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
;