C_MatlValnManageCostEst
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)
| Source | Alias | Join Type |
|---|---|---|
| P_Matval_Manage_Cost | ce | from |
| R_MatlLedgerValnCrcyRole | lvcr | inner |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA