P_PURORDSINGLESCHEDULELINEHLP2

CDS View

P_PURORDSINGLESCHEDULELINEHLP2 is a CDS View in S/4HANA. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
P_PurOrdSingleScheduleLineHlp3 view from COMPOSITE
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@VDM.viewType: #COMPOSITE
@VDM.private: true
@AbapCatalog.sqlViewName: 'PMMPURORDSSHLP2'
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY

// Helper view to get latest Delivery Time if there are multiple Schedule lines having the same Delivery Date


define view P_PurOrdSingleScheduleLineHlp2 as select from P_PurOrdSingleScheduleLineHlp1 as P_PurOrdSingleScheduleLineHlp1  
                                inner join I_PurgDocScheduleLine as I_PurgDocScheduleLine 
                                on  P_PurOrdSingleScheduleLineHlp1.PurchasingDocument       = I_PurgDocScheduleLine.PurchasingDocument
                                and P_PurOrdSingleScheduleLineHlp1.PurchasingDocumentItem   = I_PurgDocScheduleLine.PurchasingDocumentItem
                                and P_PurOrdSingleScheduleLineHlp1.ScheduleLineDeliveryDate = I_PurgDocScheduleLine.ScheduleLineDeliveryDate

  {  key I_PurgDocScheduleLine.PurchasingDocument as PurchasingDocument,
     key  I_PurgDocScheduleLine.PurchasingDocumentItem,
     key  I_PurgDocScheduleLine.ScheduleLineDeliveryDate , 
     min( I_PurgDocScheduleLine.ScheduleLineDeliveryTime ) as ScheduleLineDeliveryTime
  }
  
group by I_PurgDocScheduleLine.PurchasingDocument, 
         I_PurgDocScheduleLine.PurchasingDocumentItem, 
         I_PurgDocScheduleLine.ScheduleLineDeliveryDate            
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURGDOCSCHEDULELINE",
"P_PURORDSINGLESCHEDULELINEHLP1"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/