P_SuplrDeliveryPredictCount1
P_SuplrDeliveryPredictCount1 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_CalendarDate, P_SuplrDeliveryPredictionCount) and exposes 5 fields.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CalendarDate | _cal | inner |
| P_SuplrDeliveryPredictionCount | _MinScheduleLine | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSUPRDELPRDCNT1 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| PurchaseOrder | P_SuplrDeliveryPredictionCount | PurchaseOrder | ||
| PurchaseOrderItem | P_SuplrDeliveryPredictionCount | PurchaseOrderItem | ||
| ScheduleLine | P_SuplrDeliveryPredictionCount | ScheduleLine | ||
| FirstDayOfMonthDate | I_CalendarDate | FirstDayOfMonthDate | ||
| FirstDayOfWeekDate | I_CalendarDate | FirstDayOfWeekDate |
@AbapCatalog.sqlViewName: 'PSUPRDELPRDCNT1'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view P_SuplrDeliveryPredictCount1
as select distinct from I_SuplrDeliveryPredictionCache as _supdelprd
// First prediction per PO Item
inner join P_SuplrDeliveryPredictionCount as _MinScheduleLine on _supdelprd.PurchaseOrder = _MinScheduleLine.PurchaseOrder
and _supdelprd.PurchaseOrderItem = _MinScheduleLine.PurchaseOrderItem
and _supdelprd.ScheduleLine = _MinScheduleLine.ScheduleLine
// Prediction Month and Week corresponding to that First Prediction
inner join I_CalendarDate as _cal on _supdelprd.SuplrDelivPredictionCreatedOn = _cal.CalendarDate
{
_MinScheduleLine.PurchaseOrder,
_MinScheduleLine.PurchaseOrderItem,
_MinScheduleLine.ScheduleLine,
_cal.FirstDayOfMonthDate,
_cal.FirstDayOfWeekDate
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CALENDARDATE",
"I_SUPLRDELIVERYPREDICTIONCACHE",
"P_SUPLRDELIVERYPREDICTIONCOUNT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"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