P_MonitorMaterialPrice
P_MonitorMaterialPrice is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_MaterialLedgerPrice) and exposes 27 fields with key fields CostEstimate, MaterialPriceType, MaterialPriceSubtype, MaterialPriceValidityStartDate. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaterialLedgerPrice | I_MaterialLedgerPrice | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | P_MonitorMaterialPriceTblFunc | _Valuation | $projection.CostEstimate = _Valuation.CostEstimate and $projection.MaterialPriceType = _Valuation.MaterialPriceType and $projection.MaterialPriceSubtype = _Valuation.MaterialPriceSubtype and $projection.MaterialPriceValidityStartDate = _Valuation.MaterialPriceValidityStartDate and $projection.MaterialPriceValidityEndDate = _Valuation.MaterialPriceValidityEndDate and $projection.CompanyCode = _Valuation.CompanyCode |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | CostEstimate | ||
| KEY | MaterialPriceType | MaterialPriceType | ||
| KEY | MaterialPriceSubtype | MaterialPriceSubtype | ||
| KEY | MaterialPriceValidityStartDate | MaterialPriceValidityStartDate | ||
| MaterialPriceValidityEndDate | MaterialPriceValidityEndDate | |||
| MatlPrcValdtyStrtFsclYearPerd | MatlPrcValdtyStrtFsclYearPerd | |||
| MatlPrcValidityStartFiscalYear | MatlPrcValidityStartFiscalYear | |||
| MatlPrcValdtyStartFiscalPeriod | MatlPrcValdtyStartFiscalPeriod | |||
| MatlPrcValdtyEndFsclYearPeriod | MatlPrcValdtyEndFsclYearPeriod | |||
| MatlPrcValidityEndFiscalYear | MatlPrcValidityEndFiscalYear | |||
| MatlPrcValdtyEndFiscalPeriod | MatlPrcValdtyEndFiscalPeriod | |||
| MaterialPriceControl | MaterialPriceControl | |||
| CurPlanProjSlsOrdValnStrategy | CurPlanProjSlsOrdValnStrategy | |||
| MaterialPriceCostEstimateStage | MaterialPriceCostEstimateStage | |||
| Material | Material | |||
| ValuationArea | ValuationArea | |||
| InventoryValuationType | InventoryValuationType | |||
| CompanyCode | CompanyCode | |||
| InvtryValnSpecialStockType | InvtryValnSpecialStockType | |||
| SalesOrder | SalesOrder | |||
| SalesOrderItem | SalesOrderItem | |||
| WBSElementInternalID | WBSElementInternalID | |||
| Supplier | Supplier | |||
| StkMaterialPriceValuationType | StkMaterialPriceValuationType | |||
| MaterialPriceExtRefCategory | MaterialPriceExtRefCategory | |||
| MaterialPriceExtReference | MaterialPriceExtReference | |||
| _Valuation | _Valuation |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType:{
serviceQuality: #B,
sizeCategory: #XXL,
dataClass: #MIXED
}
@VDM: {
viewType: #COMPOSITE,
private:true
}
define view entity P_MonitorMaterialPrice
as select from I_MaterialLedgerPrice
association [1..1] to P_MonitorMaterialPriceTblFunc as _Valuation on $projection.CostEstimate = _Valuation.CostEstimate
and $projection.MaterialPriceType = _Valuation.MaterialPriceType
and $projection.MaterialPriceSubtype = _Valuation.MaterialPriceSubtype
and $projection.MaterialPriceValidityStartDate = _Valuation.MaterialPriceValidityStartDate
and $projection.MaterialPriceValidityEndDate = _Valuation.MaterialPriceValidityEndDate
and $projection.CompanyCode = _Valuation.CompanyCode
{
key CostEstimate,
// key Ledger,
// key CurrencyRole,
key MaterialPriceType,
key MaterialPriceSubtype,
key MaterialPriceValidityStartDate,
MaterialPriceValidityEndDate,
MatlPrcValdtyStrtFsclYearPerd,
MatlPrcValidityStartFiscalYear,
MatlPrcValdtyStartFiscalPeriod,
MatlPrcValdtyEndFsclYearPeriod,
MatlPrcValidityEndFiscalYear,
MatlPrcValdtyEndFiscalPeriod,
// MaterialPrice,
// FixedPortionOfMaterialPrice,
// Currency,
// MaterialPriceUnitQty,
// ValuationQuantityUnit,
MaterialPriceControl,
CurPlanProjSlsOrdValnStrategy,
MaterialPriceCostEstimateStage,
Material,
ValuationArea,
InventoryValuationType,
CompanyCode,
InvtryValnSpecialStockType,
SalesOrder,
SalesOrderItem,
WBSElementInternalID,
Supplier,
StkMaterialPriceValuationType,
MaterialPriceExtRefCategory,
MaterialPriceExtReference,
// MaterialPriceCreatedByUser,
// MaterialPriceChangedByUser,
// MaterialPriceCreationDateTime,
// MatlPriceLastChangeDateTime,
_Valuation
}
group by
CostEstimate,
MaterialPriceType,
MaterialPriceSubtype,
MaterialPriceValidityStartDate,
MaterialPriceValidityEndDate,
MatlPrcValdtyStrtFsclYearPerd,
MatlPrcValidityStartFiscalYear,
MatlPrcValdtyStartFiscalPeriod,
MatlPrcValdtyEndFsclYearPeriod,
MatlPrcValidityEndFiscalYear,
MatlPrcValdtyEndFiscalPeriod,
// MaterialPrice,
// FixedPortionOfMaterialPrice,
// Currency,
// MaterialPriceUnitQty,
// ValuationQuantityUnit,
MaterialPriceControl,
CurPlanProjSlsOrdValnStrategy,
MaterialPriceCostEstimateStage,
Material,
ValuationArea,
InventoryValuationType,
CompanyCode,
InvtryValnSpecialStockType,
SalesOrder,
SalesOrderItem,
WBSElementInternalID,
Supplier,
StkMaterialPriceValuationType,
MaterialPriceExtRefCategory,
MaterialPriceExtReference
// MaterialPriceCreatedByUser,
// MaterialPriceChangedByUser,
// MaterialPriceCreationDateTime,
// MatlPriceLastChangeDateTime
having
MaterialPriceType <> 'FSTDCE'
and MaterialPriceType <> 'FUTURE'
and CostEstimate <> '000000000000'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MATERIALLEDGERPRICE"
],
"ASSOCIATED":
[
"P_MONITORMATERIALPRICETBLFUNC"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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