P_ProdPlantPlndIndepRqmtBasic
P_ProdPlantPlndIndepRqmtBasic is a Basic CDS View in SAP S/4HANA. It reads from 4 data sources (makt, mara, marc, t438m) and exposes 7 fields with key fields Product, Plant.
Data Sources (4)
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | PPIRMB | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.sqlViewName: 'PPIRMB'
@AbapCatalog.preserveKey:true
@VDM.private: true
@VDM.viewType: #BASIC
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #L, dataClass: #TRANSACTIONAL}
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
define view P_ProdPlantPlndIndepRqmtBasic
as select from marc
inner join mara on marc.matnr = mara.matnr
left outer join makt on makt.spras = $session.system_language
and makt.matnr = marc.matnr
left outer join t438m on t438m.werks = marc.werks
and t438m.mtart = marc.disgr
{
key marc.matnr as Product,
key marc.werks as Plant,
marc.perkz as PeriodType,
mara.meins as UnitOfMeasure,
makt.maktx as ProductName,
marc.dispo as MRPController,
case when marc.strgr = '' and t438m.strgr is not null
then t438m.strgr
else marc.strgr
end as Strategy_Group
// marc.strgr as Strategy_Group
}
where
(
/* Select materials with Month/Week as plan indicator or those that haven't been planned */
marc.perkz = 'M'
or marc.perkz = 'W'
//or marc.perkz = ''
)
and mara.lvorm = '' -- ignore materilas deleted at client level
and marc.lvorm = '' -- ignore materilas deleted at plant level
and ( marc.strgr <> '' or marc.disgr <> '' ) -- ignore materials without MRP Stratergy
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"MAKT",
"MARA",
"MARC",
"T438M"
],
"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