P_DELIVPROCFLOWLATESTTRANSFORD

CDS View

Latest Warehouse Transfer Order

P_DELIVPROCFLOWLATESTTRANSFORD is a CDS View in S/4HANA. Latest Warehouse Transfer Order. 5 CDS views read from this table.

CDS Views using this table (5)

ViewTypeJoinVDMDescription
P_DlvNodesForInbDelivProcFlow view inner COMPOSITE
P_InbDelivProcFlowChildren view left_outer COMPOSITE Inbound Delivery Process Flow Successors
P_InbDelivProcFlowChildren view inner COMPOSITE Inbound Delivery Process Flow Successors
P_OutbDelivProcFlowRelated view left_outer CONSUMPTION Outbound Delivery Process Flow Predecessor and Successors
P_OutbDelivProcFlowRelated view inner CONSUMPTION Outbound Delivery Process Flow Predecessor and Successors
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@EndUserText.label: 'Latest Warehouse Transfer Order'
@AccessControl.authorizationCheck: #CHECK
@VDM.private: true
@VDM.viewType: #COMPOSITE
@AbapCatalog.sqlViewName: 'PDLVFLOWMAXWMTO'

define view P_DelivProcFlowLatestTransfOrd
  as select from P_DeliveryProcFlowTransfOrd   as LatestWMTO
    inner join P_DelivProcFlowLatestConfDate   as LatestConfDate on  LatestWMTO.DeliveryDocument          = LatestConfDate.DeliveryDocument
                                                                 and LatestWMTO.WrhsMgmtTransfOrdConfDate = LatestConfDate.WrhsMgmtTransfOrdConfDate
                                                                 
association [1..1] to I_DeliveryDocument as _DeliveryDocument on $projection.DeliveryDocument = _DeliveryDocument.DeliveryDocument
                                                                 
{
  key LatestWMTO.DeliveryDocument,

      max(LatestWMTO.WrhsMgmtTransferOrder) as WrhsMgmtTransferOrder,
      
  _DeliveryDocument
        
}
group by
  LatestWMTO.DeliveryDocument