I_PurchasingDocumentShipping

DDL: I_PURCHASINGDOCUMENTSHIPPING SQL: IPURGSHIP Type: view BASIC

CDS View for Purg Document Shipping Data

I_PurchasingDocumentShipping is a Basic CDS View that provides data about "CDS View for Purg Document Shipping Data" in SAP S/4HANA. It reads from 1 data source (ekpv) and exposes 26 fields with key fields PurchasingDocument, PurchasingDocumentItem. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ekpv ekpv from

Associations (9)

CardinalityTargetAliasCondition
[1..1] I_PurchasingDocument _PurchasingDocument $projection.PurchasingDocument = _PurchasingDocument.PurchasingDocument
[1..1] I_PurchasingDocumentItem _PurchasingDocumentItem $projection.PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument and $projection.PurchasingDocumentItem = _PurchasingDocumentItem.PurchasingDocumentItem
[0..1] I_Customer _ShipToParty $projection.ShipToParty = _ShipToParty.Customer
[0..1] I_SalesOrganization _SalesOrganization $projection.SalesOrganization = _SalesOrganization.SalesOrganization
[0..1] I_DistributionChannel _DistributionChannel $projection.DistributionChannel = _DistributionChannel.DistributionChannel
[0..1] I_Division _OrganizationDivision $projection.OrganizationDivision = _OrganizationDivision.Division
[0..1] I_ShippingCondition _ShippingCondition $projection.ShippingCondition = _ShippingCondition.ShippingCondition
[0..1] I_ShippingPoint _ShippingPoint $projection.ShippingPoint = _ShippingPoint.ShippingPoint
[0..1] I_ShippingType _ShippingType $projection.ShippingType = _ShippingType.ShippingType

Annotations (11)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName IPURGSHIP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label CDS View for Purg Document Shipping Data view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument ebeln Source PurchDoc
KEY PurchasingDocumentItem ebelp Item pur. doc.
SoldToParty kunag Sold-to Party
ShipToParty kunnr Stock customer
SalesOrganization vkorg SD Sales Org.
DistributionChannel vtweg RefDistCh-Cust/Mat.
OrganizationDivision spart Source supplier
ShippingCondition vsbed Shipping Conditions
ShippingPoint vstel ShpPtDeparture
Route route Vehicle route
LoadingGroup ladgr Loading Group
TransportationGroup tragr Transport.Group
DeliveryPriority lprio Delivery Prior.
ShippingType vsart Shp.type: stage
UnloadingPointName ablad Unloading Point
DeliveryCreationDate ledat Delivery Date
PlannedDeliveryDuration plifz Plnd Deliv.Time
_PurchasingDocument _PurchasingDocument
_PurchasingDocumentItem _PurchasingDocumentItem
_ShipToParty _ShipToParty
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_OrganizationDivision _OrganizationDivision
_ShippingCondition _ShippingCondition
_ShippingPoint _ShippingPoint
_ShippingType _ShippingType

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 I_PurchasingDocumentShipping.
-- 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.
-- SQL view name: IPURGSHIP

CREATE VIEW I_PurchasingDocumentShipping AS
SELECT
  ebeln AS PurchasingDocument,
  ebelp AS PurchasingDocumentItem,
  kunag AS SoldToParty,
  kunnr AS ShipToParty,
  vkorg AS SalesOrganization,
  vtweg AS DistributionChannel,
  spart AS OrganizationDivision,
  vsbed AS ShippingCondition,
  vstel AS ShippingPoint,
  Route,
  ladgr AS LoadingGroup,
  tragr AS TransportationGroup,
  lprio AS DeliveryPriority,
  vsart AS ShippingType,
  ablad AS UnloadingPointName,
  ledat AS DeliveryCreationDate,
  plifz AS PlannedDeliveryDuration
FROM ekpv
LEFT OUTER JOIN I_PurchasingDocument AS _PurchasingDocument ON PurchasingDocument = _PurchasingDocument.PurchasingDocument  -- association [1..1]
LEFT OUTER JOIN I_PurchasingDocumentItem AS _PurchasingDocumentItem ON PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument AND PurchasingDocumentItem = _PurchasingDocumentItem.PurchasingDocumentItem  -- association [1..1]
LEFT OUTER JOIN I_Customer AS _ShipToParty ON ShipToParty = _ShipToParty.Customer  -- association [0..1]
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganization ON SalesOrganization = _SalesOrganization.SalesOrganization  -- association [0..1]
LEFT OUTER JOIN I_DistributionChannel AS _DistributionChannel ON DistributionChannel = _DistributionChannel.DistributionChannel  -- association [0..1]
LEFT OUTER JOIN I_Division AS _OrganizationDivision ON OrganizationDivision = _OrganizationDivision.Division  -- association [0..1]
LEFT OUTER JOIN I_ShippingCondition AS _ShippingCondition ON ShippingCondition = _ShippingCondition.ShippingCondition  -- association [0..1]
LEFT OUTER JOIN I_ShippingPoint AS _ShippingPoint ON ShippingPoint = _ShippingPoint.ShippingPoint  -- association [0..1]
LEFT OUTER JOIN I_ShippingType AS _ShippingType ON ShippingType = _ShippingType.ShippingType  -- association [0..1]
;