C_MatlValnManage

DDL: C_MATLVALNMANAGE SQL: CMATLVALNMANAGE Type: view CONSUMPTION

Material Valuations

C_MatlValnManage is a Consumption CDS View that provides data about "Material Valuations" in SAP S/4HANA. It reads from 1 data source (I_CurrentMaterialValuations) and exposes 77 fields with key fields CostEstimate, LedgerValuationCurrencyRole. It has 10 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CurrentMaterialValuations mv from

Associations (10)

CardinalityTargetAliasCondition
[0..1] I_ControllingArea _ControllingAreaText $projection.ControllingArea = _ControllingAreaText.ControllingArea
[0..*] I_ProfitCenterText _ProfitCenterText $projection.ProfitCenter = _ProfitCenterText.ProfitCenter and $projection.ControllingArea = _ProfitCenterText.ControllingArea
[0..*] I_PriceDeterminationControlTxt _PriceDeterminationControlText $projection.PriceDeterminationControl = _PriceDeterminationControlText.PriceDeterminationControl
[0..*] C_InvtryValnCatTextTemp _InventoryValCategoryText $projection.InventoryValuationCategory = _InventoryValCategoryText.InventoryValuationCategory
[0..*] I_Matlvaluationclasstext _MatlValuationClassText $projection.MaterialValuationClass = _MatlValuationClassText.MaterialValuationClass
[0..1] I_SalesDocumentItem _SalesDocumentItem $projection.SalesOrder = _SalesDocumentItem.SalesDocument and $projection.SalesOrderItem = _SalesDocumentItem.SalesDocumentItem
[0..*] C_MatlValnManageInvtryValn _MatlValnManageInvtryValn $projection.CostEstimate = _MatlValnManageInvtryValn.CostEstimate and $projection.Material = _MatlValnManageInvtryValn.Material and $projection.ValuationArea = _MatlValnManageInvtryValn.ValuationArea
[0..*] C_MatlValnManageCostEst _MatlValnManageCostEst $projection.CostEstimate = _MatlValnManageCostEst.CostEstimate and $projection.Material = _MatlValnManageCostEst.Material and $projection.ValuationArea = _MatlValnManageCostEst.ValuationArea
[0..*] C_MatlLdgrPrSalesOrderCostEst _MatlValnMngSalesOrderCostEst $projection.CostEstimate = _MatlValnMngSalesOrderCostEst.CostEstimate and $projection.Material = _MatlValnMngSalesOrderCostEst.Material and $projection.ValuationArea = _MatlValnMngSalesOrderCostEst.ValuationArea
[0..*] C_ValnPriceCategoryPrice _ValnPriceCategoryPrice $projection.CostEstimate = _ValnPriceCategoryPrice.CostEstimate and $projection.Material = _ValnPriceCategoryPrice.Material and $projection.ValuationArea = _ValnPriceCategoryPrice.ValuationArea

Annotations (16)

NameValueLevelField
EndUserText.label Material Valuations view
AbapCatalog.sqlViewName CMATLVALNMANAGE view
AccessControl.authorizationCheck #CHECK view
Search.searchable true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
UI.headerInfo.typeName Current Material Valuation view
UI.headerInfo.typeNamePlural Current Material Valuations view
UI.headerInfo.title.type #WITH_INTENT_BASED_NAVIGATION view
UI.headerInfo.title.value Material view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value MaterialName view
UI.headerInfo.imageUrl ProductImageURL view

Fields (77)

KeyFieldSource TableSource FieldDescription
KEY CostEstimate I_CurrentMaterialValuations CostEstimate Cost EstimateNo
KEY LedgerValuationCurrencyRole I_CurrentMaterialValuations LedgerValuationCurrencyRole
LegalCurrencyRole I_CurrentMaterialValuations LegalCurrencyRole
Ledger I_CurrentMaterialValuations Ledger Ledger
AccountingValuationView I_CurrentMaterialValuations AccountingValuationView
AccountingValuationViewName I_CurrentMaterialValuations AccountingValuationViewName
AccountingValuationSubview I_CurrentMaterialValuations AccountingValuationSubview
AccountingValuationSubviewName I_CurrentMaterialValuations AccountingValuationSubviewName
AcctgValnVwSubviewCombinedName I_CurrentMaterialValuations AcctgValnVwSubviewCombinedName
LedgerName I_CurrentMaterialValuations LedgerName Ledger Name
LegalCurrencyRoleName I_CurrentMaterialValuations LegalCurrencyRoleName
CurrencyRole I_CurrentMaterialValuations CurrencyRole Curr./Val. Type
Material Material Vehicle Model
ValuationArea ValuationArea Valuation Area
Plant Plant Valuation Area
PlantName PlantName Plant Name
InventoryValuationType InventoryValuationType Valuation Type
InvtryValnSpecialStockType InvtryValnSpecialStockType
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
Supplier Supplier Supplier
WBSElementExternalID WBSElementExternalID WBS Element External ID
WBSElementInternalID WBSElementInternalID WBS Internal ID
ControllingArea ControllingArea Controlling Area
InventoryValuationCategory InventoryValuationCategory
MaterialValuationClass MaterialValuationClass Valuation Class
ValuationClassSalesOrderStock ValuationClassSalesOrderStock VC: Sal.Ord.Stk
ProjectStockValuationClass Project stk VC
PriceDeterminationControl PriceDeterminationControl Price Determ.
ProfitCenter ProfitCenter Profit Center
ProfitCenterHierarchy
ProfitCenterHierarchyNode
CurrentFiscalYear CurrentFiscalYear Fiscal Year
CurrentFiscalPeriod CurrentFiscalPeriod Fiscal Period
MaterialName MaterialName Material Description
ProductImageURL
BaseUnit BaseUnit Unit of Measure
ValuationQuantityUnit ValuationQuantityUnit
CompanyCode CompanyCode Receiver Company Code
CompanyCodeHierarchy
CompanyCodeHierarchyNode
CompanyCodeName CompanyCodeName Company Name
TotalValuatedStockAmount
TotalVltdStockQuantity TotalVltdStockQuantity
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency Local Crcy Amt
CompanyCodeCurrency CompanyCodeCurrency Local Currency
Currency Currency Valuation Crcy
MaterialPriceUnitQty MaterialPriceUnitQty Price unit
ValuationClassInPrevPeriod ValuationClassInPrevPeriod Val. class PP
ValuationClassInPrevYear ValuationClassInPrevYear Val. class PY
FuturePrice FuturePrice
FuturePriceValidityStartDate FuturePriceValidityStartDate Valid from
FuturePlannedPrice
TaxPricel1InCoCodeCrcy TaxPricel1InCoCodeCrcy
TaxPrice2InCoCodeCrcy TaxPrice2InCoCodeCrcy
TaxPrice3InCoCodeCrcy TaxPrice3InCoCodeCrcy
TaxBasedPricesPriceUnitQty TaxBasedPricesPriceUnitQty
CommercialPrice1InCoCodeCrcy CommercialPrice1InCoCodeCrcy
CommercialPrice2InCoCodeCrcy CommercialPrice2InCoCodeCrcy
CommercialPrice3InCoCodeCrcy CommercialPrice3InCoCodeCrcy
PlannedPrice1InCoCodeCrcy PlannedPrice1InCoCodeCrcy
FuturePlndPrice1ValdtyDate FuturePlndPrice1ValdtyDate
PlannedPrice2InCoCodeCrcy PlannedPrice2InCoCodeCrcy
FuturePlndPrice2ValdtyDate FuturePlndPrice2ValdtyDate
PlannedPrice3InCoCodeCrcy PlannedPrice3InCoCodeCrcy
FuturePlndPrice3ValdtyDate FuturePlndPrice3ValdtyDate
IsBlockedForCosting IsBlockedForCosting
CostingLotSize CostingLotSize
IsMaterialCostedWithQtyStruc IsMaterialCostedWithQtyStruc
IsMaterialRelatedOrigin IsMaterialRelatedOrigin
CostOriginGroup CostOriginGroup Origin Group
CostingOverheadGroup CostingOverheadGroup
MaterialUsabilityProfile MaterialUsabilityProfile P-S Mat. Status
IsCoProduct IsCoProduct Co-product?
IsFixedPriceCoProduct IsFixedPriceCoProduct
AlternativeBillOfMaterial AlternativeBillOfMaterial
BillOfMaterialVariantUsage BillOfMaterialVariantUsage Usage

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_MatlValnManage.
-- 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: CMATLVALNMANAGE

CREATE VIEW C_MatlValnManage AS
SELECT
  mv.CostEstimate AS CostEstimate,
  mv.LedgerValuationCurrencyRole AS LedgerValuationCurrencyRole,
  mv.LegalCurrencyRole AS LegalCurrencyRole,
  mv.Ledger AS Ledger,
  mv.AccountingValuationView AS AccountingValuationView,
  mv.AccountingValuationViewName AS AccountingValuationViewName,
  mv.AccountingValuationSubview AS AccountingValuationSubview,
  mv.AccountingValuationSubviewName AS AccountingValuationSubviewName,
  mv.AcctgValnVwSubviewCombinedName AS AcctgValnVwSubviewCombinedName,
  mv.LedgerName AS LedgerName,
  mv.LegalCurrencyRoleName AS LegalCurrencyRoleName,
  mv.CurrencyRole AS CurrencyRole,
  Material,
  ValuationArea,
  Plant,
  PlantName,
  InventoryValuationType,
  InvtryValnSpecialStockType,
  SalesOrder,
  SalesOrderItem,
  Supplier,
  WBSElementExternalID,
  WBSElementInternalID,
  ControllingArea,
  InventoryValuationCategory,
  MaterialValuationClass,
  ValuationClassSalesOrderStock,
  cast(ProjectStockValuationClass as fml_valuationclassprojectstock preserving type) AS ProjectStockValuationClass,
  PriceDeterminationControl,
  ProfitCenter,
  cast('' as fis_prctr_hryid_42) AS ProfitCenterHierarchy,
  cast('' as fis_prctr_hrynid_50) AS ProfitCenterHierarchyNode,
  CurrentFiscalYear,
  CurrentFiscalPeriod,
  MaterialName,
  cast( '' as productimageurl ) AS ProductImageURL,
  BaseUnit,
  ValuationQuantityUnit,
  CompanyCode,
  cast('' as fis_hryid_ccode_42) AS CompanyCodeHierarchy,
  cast('' as fis_hrynid_ccode_50) AS CompanyCodeHierarchyNode,
  CompanyCodeName,
  cast ( TotalValuatedStockAmount as fml_salk3 ) AS TotalValuatedStockAmount,
  TotalVltdStockQuantity,
  AmountInCompanyCodeCurrency,
  CompanyCodeCurrency,
  Currency,
  MaterialPriceUnitQty,
  ValuationClassInPrevPeriod,
  ValuationClassInPrevYear,
  FuturePrice,
  FuturePriceValidityStartDate,
  cast(FuturePlannedPrice as fml_futureplannedprice preserving type) AS FuturePlannedPrice,
  TaxPricel1InCoCodeCrcy,
  TaxPrice2InCoCodeCrcy,
  TaxPrice3InCoCodeCrcy,
  TaxBasedPricesPriceUnitQty,
  CommercialPrice1InCoCodeCrcy,
  CommercialPrice2InCoCodeCrcy,
  CommercialPrice3InCoCodeCrcy,
  PlannedPrice1InCoCodeCrcy,
  FuturePlndPrice1ValdtyDate,
  PlannedPrice2InCoCodeCrcy,
  FuturePlndPrice2ValdtyDate,
  PlannedPrice3InCoCodeCrcy,
  FuturePlndPrice3ValdtyDate,
  IsBlockedForCosting,
  CostingLotSize,
  IsMaterialCostedWithQtyStruc,
  IsMaterialRelatedOrigin,
  CostOriginGroup,
  CostingOverheadGroup,
  MaterialUsabilityProfile,
  IsCoProduct,
  IsFixedPriceCoProduct,
  AlternativeBillOfMaterial,
  BillOfMaterialVariantUsage
FROM I_CurrentMaterialValuations AS mv
LEFT OUTER JOIN I_ControllingArea AS _ControllingAreaText ON ControllingArea = _ControllingAreaText.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterText ON ProfitCenter = _ProfitCenterText.ProfitCenter AND ControllingArea = _ProfitCenterText.ControllingArea  -- association [0..*]
LEFT OUTER JOIN I_PriceDeterminationControlTxt AS _PriceDeterminationControlText ON PriceDeterminationControl = _PriceDeterminationControlText.PriceDeterminationControl  -- association [0..*]
LEFT OUTER JOIN C_InvtryValnCatTextTemp AS _InventoryValCategoryText ON InventoryValuationCategory = _InventoryValCategoryText.InventoryValuationCategory  -- association [0..*]
LEFT OUTER JOIN I_Matlvaluationclasstext AS _MatlValuationClassText ON MaterialValuationClass = _MatlValuationClassText.MaterialValuationClass  -- association [0..*]
LEFT OUTER JOIN I_SalesDocumentItem AS _SalesDocumentItem ON SalesOrder = _SalesDocumentItem.SalesDocument AND SalesOrderItem = _SalesDocumentItem.SalesDocumentItem  -- association [0..1]
LEFT OUTER JOIN C_MatlValnManageInvtryValn AS _MatlValnManageInvtryValn ON CostEstimate = _MatlValnManageInvtryValn.CostEstimate AND Material = _MatlValnManageInvtryValn.Material AND ValuationArea = _MatlValnManageInvtryValn.ValuationArea  -- association [0..*]
LEFT OUTER JOIN C_MatlValnManageCostEst AS _MatlValnManageCostEst ON CostEstimate = _MatlValnManageCostEst.CostEstimate AND Material = _MatlValnManageCostEst.Material AND ValuationArea = _MatlValnManageCostEst.ValuationArea  -- association [0..*]
LEFT OUTER JOIN C_MatlLdgrPrSalesOrderCostEst AS _MatlValnMngSalesOrderCostEst ON CostEstimate = _MatlValnMngSalesOrderCostEst.CostEstimate AND Material = _MatlValnMngSalesOrderCostEst.Material AND ValuationArea = _MatlValnMngSalesOrderCostEst.ValuationArea  -- association [0..*]
LEFT OUTER JOIN C_ValnPriceCategoryPrice AS _ValnPriceCategoryPrice ON CostEstimate = _ValnPriceCategoryPrice.CostEstimate AND Material = _ValnPriceCategoryPrice.Material AND ValuationArea = _ValnPriceCategoryPrice.ValuationArea  -- association [0..*]
;