P_SuplrDeliveryPredictCount1

DDL: P_SUPLRDELIVERYPREDICTCOUNT1 SQL: PSUPRDELPRDCNT1 Type: view COMPOSITE

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)

SourceAliasJoin Type
I_CalendarDate _cal inner
P_SuplrDeliveryPredictionCount _MinScheduleLine inner

Annotations (6)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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":""
}
}*/