P_EWM_InboundDeliveryHeader

DDL: P_EWM_INBOUNDDELIVERYHEADER Type: view_entity COMPOSITE Package: VDM_EWM_DLV

Private view for inbound delivery header

P_EWM_InboundDeliveryHeader is a Composite CDS View that provides data about "Private view for inbound delivery header" in SAP S/4HANA. It reads from 1 data source (I_EWM_InbDeliveryHeaderBasic) and exposes 47 fields with key field InboundDeliveryUUID. It has 4 associations to related views. Part of development package VDM_EWM_DLV.

Data Sources (1)

SourceAliasJoin Type
I_EWM_InbDeliveryHeaderBasic I_EWM_InbDeliveryHeaderBasic from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_EWM_WarehouseTimezone _WarehouseTimezone $projection.WarehouseLocationUUID = _WarehouseTimezone.WarehouseLocationUUID
[0..*] I_EWM_DeliveryDateAndTime _DeliveryDateTime $projection.InboundDeliveryUUID = _DeliveryDateTime.DeliveryOrderUUID and _DeliveryDateTime.DeliveryDocumentCategory = 'PDI'
[0..1] I_EWM_DeliveryBPLocation _BPShipfrom $projection.InboundDeliveryUUID = _BPShipfrom.OutboundDeliveryOrderUUID and $projection.ShipFromPartyUUID = _BPShipfrom.BusinessPartnerUUID and _BPShipfrom.BusinessPartnerRole = 'SFPRT'
[0..1] I_EWM_DeliveryBPLocation _BPCarrier $projection.InboundDeliveryUUID = _BPCarrier.OutboundDeliveryOrderUUID and $projection.CarrierUUID = _BPCarrier.BusinessPartnerUUID and _BPCarrier.BusinessPartnerRole = 'CARR'

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view

Fields (47)

KeyFieldSource TableSource FieldDescription
KEY InboundDeliveryUUID InboundDeliveryUUID Document ID
InboundDelivery InboundDelivery LE Delivery
EWMInboundDelivery EWMInboundDelivery Document Number
ShipFromPartyUUID ShipFromPartyUUID
CarrierUUID CarrierUUID
WarehouseLocationUUID WarehouseLocationUUID
InboundDeliveryDocumentType InboundDeliveryDocumentType
DeliveryDocumentCategory DeliveryDocumentCategory
PlannedDeliveryWhseTmznYear
PlannedDeliveryWhseTmznMonth
PlannedDeliveryWhseTmznDate
PlannedDeliveryWhseTmznHour
PlannedDeliveryWhseTmznTime
ActualDeliveryWhseTmznYear
ActualDeliveryWhseTmznMonth
ActualDeliveryWhseTmznDate
ActualDeliveryWhseTmznHour
ActualDeliveryWhseTmznTime
PlndArrvlInYardWhseTmznYear
PlndArrvlInYardWhseTmznMonth
PlndArrvlInYardWhseTmznDate
PlndArrvlInYardWhseTmznHour
PlndArrvlInYardWhseTmznTime
ActlArrvlInYardWhseTmznYear
ActlArrvlInYardWhseTmznMonth
ActlArrvlInYardWhseTmznDate
ActlArrvlInYardWhseTmznHour
ActlArrvlInYardWhseTmznTime
WhseTmznPlannedDeliverymins
WhseTmznPlndArrivalinYardmins
WhseTmznActualDeliverymins
WhseTmznActualArrvlinYardmins
InbDelivCrtnWhseTmznDateTime InbDelivCrtnWhseTmznDateTime
PlndDeliveryWhseTmznDateTime PlndDeliveryWhseTmznDateTime
ActualDeliveryWhseTmznDateTime ActualDeliveryWhseTmznDateTime
PlndArrvlInYardWhseTmznDteTme PlndArrvlInYardWhseTmznDteTme
ActlArrvlInYardWhseTmznDteTme ActlArrvlInYardWhseTmznDteTme
TimeZoneID _WarehouseTimezone TimeZoneID Time Zone
EWMWarehouseCurrentDate _WarehouseTimezone EWMWarehouseCurrentDate
ShipFromParty _BPShipfrom BusinessPartner Issuing Authority
Carrier _BPCarrier BusinessPartner Issuing Authority
ShipFromPartyName _BPShipfrom BusinessPartnerName Extracted Customer Name
CarrierName _BPCarrier BusinessPartnerName Extracted Customer Name
_DeliveryDateTime _DeliveryDateTime
_WarehouseTimezone _WarehouseTimezone
_BPShipfrom _BPShipfrom
_BPCarrier _BPCarrier

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_EWM_InboundDeliveryHeader.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW P_EWM_InboundDeliveryHeader AS
SELECT
  InboundDeliveryUUID,
  InboundDelivery,
  EWMInboundDelivery,
  ShipFromPartyUUID,
  CarrierUUID,
  WarehouseLocationUUID,
  InboundDeliveryDocumentType,
  DeliveryDocumentCategory,
  cast(substring(cast(PlndDeliveryWhseTmznDateTime as abap.char( 17 )), 1, 4) as /scwm/de_datetime_year) AS PlannedDeliveryWhseTmznYear,
  cast(substring(cast(PlndDeliveryWhseTmznDateTime as abap.char( 17 )), 1, 6) as /scwm/de_datetime_mon) AS PlannedDeliveryWhseTmznMonth,
  cast(substring(cast(PlndDeliveryWhseTmznDateTime as abap.char( 17 )), 1, 8) as /scwm/de_datetime_date) AS PlannedDeliveryWhseTmznDate,
  cast(substring(cast(PlndDeliveryWhseTmznDateTime as abap.char( 17 )), 1, 10) as /scwm/de_datetime_hour) AS PlannedDeliveryWhseTmznHour,
  cast(substring(cast(PlndDeliveryWhseTmznDateTime as abap.char( 17 )), 9, 6) as /scwm/de_datetime_time) AS PlannedDeliveryWhseTmznTime,
  cast(substring(cast(ActualDeliveryWhseTmznDateTime as abap.char( 17 )), 1, 4) as /scwm/de_datetime_year) AS ActualDeliveryWhseTmznYear,
  cast(substring(cast(ActualDeliveryWhseTmznDateTime as abap.char( 17 )), 1, 6) as /scwm/de_datetime_mon) AS ActualDeliveryWhseTmznMonth,
  cast(substring(cast(ActualDeliveryWhseTmznDateTime as abap.char( 17 )), 1, 8) as /scwm/de_datetime_date) AS ActualDeliveryWhseTmznDate,
  cast(substring(cast(ActualDeliveryWhseTmznDateTime as abap.char( 17 )), 1, 10) as /scwm/de_datetime_hour) AS ActualDeliveryWhseTmznHour,
  cast(substring(cast(ActualDeliveryWhseTmznDateTime as abap.char( 17 )), 9, 6) as /scwm/de_datetime_time) AS ActualDeliveryWhseTmznTime,
  cast(substring(cast(PlndArrvlInYardWhseTmznDteTme as abap.char( 17 )), 1, 4) as /scwm/de_datetime_year) AS PlndArrvlInYardWhseTmznYear,
  cast(substring(cast(PlndArrvlInYardWhseTmznDteTme as abap.char( 17 )), 1, 6) as /scwm/de_datetime_mon) AS PlndArrvlInYardWhseTmznMonth,
  cast(substring(cast(PlndArrvlInYardWhseTmznDteTme as abap.char( 17 )), 1, 8) as /scwm/de_datetime_date) AS PlndArrvlInYardWhseTmznDate,
  cast(substring(cast(PlndArrvlInYardWhseTmznDteTme as abap.char( 17 )), 1, 10) as /scwm/de_datetime_hour) AS PlndArrvlInYardWhseTmznHour,
  cast(substring(cast(PlndArrvlInYardWhseTmznDteTme as abap.char( 17 )), 9, 6) as /scwm/de_datetime_time) AS PlndArrvlInYardWhseTmznTime,
  cast(substring(cast(ActlArrvlInYardWhseTmznDteTme as abap.char( 17 )), 1, 4) as /scwm/de_datetime_year) AS ActlArrvlInYardWhseTmznYear,
  cast(substring(cast(ActlArrvlInYardWhseTmznDteTme as abap.char( 17 )), 1, 6) as /scwm/de_datetime_mon) AS ActlArrvlInYardWhseTmznMonth,
  cast(substring(cast(ActlArrvlInYardWhseTmznDteTme as abap.char( 17 )), 1, 8) as /scwm/de_datetime_date) AS ActlArrvlInYardWhseTmznDate,
  cast(substring(cast(ActlArrvlInYardWhseTmznDteTme as abap.char( 17 )), 1, 10) as /scwm/de_datetime_hour) AS ActlArrvlInYardWhseTmznHour,
  cast(substring(cast(ActlArrvlInYardWhseTmznDteTme as abap.char( 17 )), 9, 6) as /scwm/de_datetime_time) AS ActlArrvlInYardWhseTmznTime,
  cast(substring(cast(PlndDeliveryWhseTmznDateTime as abap.char( 17 )), 11, 2) as abap.numc( 2 ) ) AS WhseTmznPlannedDeliverymins,
  cast(substring(cast(PlndArrvlInYardWhseTmznDteTme as abap.char( 17 )), 11, 2) as abap.numc( 2 ) ) AS WhseTmznPlndArrivalinYardmins,
  cast(substring(cast(ActualDeliveryWhseTmznDateTime as abap.char( 17 )), 11, 2) as abap.numc( 2 ) ) AS WhseTmznActualDeliverymins,
  cast(substring(cast(ActlArrvlInYardWhseTmznDteTme as abap.char( 17 )), 11, 2) as abap.numc( 2 ) ) AS WhseTmznActualArrvlinYardmins,
  InbDelivCrtnWhseTmznDateTime,
  PlndDeliveryWhseTmznDateTime,
  ActualDeliveryWhseTmznDateTime,
  PlndArrvlInYardWhseTmznDteTme,
  ActlArrvlInYardWhseTmznDteTme,
  _WarehouseTimezone.TimeZoneID AS TimeZoneID,
  _WarehouseTimezone.EWMWarehouseCurrentDate AS EWMWarehouseCurrentDate,
  _BPShipfrom.BusinessPartner AS ShipFromParty,
  _BPCarrier.BusinessPartner AS Carrier,
  _BPShipfrom.BusinessPartnerName AS ShipFromPartyName,
  _BPCarrier.BusinessPartnerName AS CarrierName
FROM I_EWM_InbDeliveryHeaderBasic
LEFT OUTER JOIN I_EWM_WarehouseTimezone AS _WarehouseTimezone ON WarehouseLocationUUID = _WarehouseTimezone.WarehouseLocationUUID  -- association [0..1]
LEFT OUTER JOIN I_EWM_DeliveryDateAndTime AS _DeliveryDateTime ON InboundDeliveryUUID = _DeliveryDateTime.DeliveryOrderUUID AND _DeliveryDateTime.DeliveryDocumentCategory = 'PDI'  -- association [0..*]
LEFT OUTER JOIN I_EWM_DeliveryBPLocation AS _BPShipfrom ON InboundDeliveryUUID = _BPShipfrom.OutboundDeliveryOrderUUID AND ShipFromPartyUUID = _BPShipfrom.BusinessPartnerUUID AND _BPShipfrom.BusinessPartnerRole = 'SFPRT'  -- association [0..1]
LEFT OUTER JOIN I_EWM_DeliveryBPLocation AS _BPCarrier ON InboundDeliveryUUID = _BPCarrier.OutboundDeliveryOrderUUID AND CarrierUUID = _BPCarrier.BusinessPartnerUUID AND _BPCarrier.BusinessPartnerRole = 'CARR'  -- association [0..1]
;