P_MLPricePersistedPeriod
P_MLPricePersistedPeriod is a Basic CDS View in SAP S/4HANA. It reads from 4 data sources (ckmlcr, ckmlhd, R_MatlPriceDataMigrationStatus, t001k) and exposes 7 fields with key fields CostEstimate, ValuationArea, Material, CurrencyRole, FiscalYearPeriod.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| ckmlcr | cr | from |
| ckmlhd | hd | inner |
| R_MatlPriceDataMigrationStatus | tf | inner |
| t001k | tk | inner |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMLPRICEPERSPER | 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 | #BASIC | view |
@AbapCatalog.sqlViewName: 'PMLPRICEPERSPER'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #BASIC
define view P_MLPricePersistedPeriod
as select from ckmlcr as cr
inner join R_MatlPriceDataMigrationStatus as tf on ( tf.MatlPriceDataMigrationStatus = 'X' )
or ( tf.MatlPriceDataMigrationStatus = 'R' )
inner join ckmlhd as hd on hd.kalnr = cr.kalnr
inner join t001k as tk on tk.bwkey = hd.bwkey
{
key cr.kalnr as CostEstimate,
key tk.bwkey as ValuationArea,
key hd.matnr as Material,
key cr.curtp as CurrencyRole,
key concat(cr.bdatj,cr.poper) as FiscalYearPeriod,
tk.bukrs as CompanyCode,
cast(hd.price_sdm_yearper as fml_yearper_nconv) as MatlPrcMigratedUntilFsclYrPerd
}
where ( hd.price_sdm_yearper = '0000000' or hd.price_sdm_yearper > concat( bdatj, poper ) )
and cr.sdm_version is initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"R_MATLPRICEDATAMIGRATIONSTATUS",
"CKMLCR",
"CKMLHD",
"T001K"
],
"ASSOCIATED":
[],
"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