I_DeliveryDocItemAnalytics

DDL: I_DELIVERYDOCITEMANALYTICS SQL: ISDDELDOCITMANA Type: view COMPOSITE

Delivery Document Item Analytics

I_DeliveryDocItemAnalytics is a Composite CDS View that provides data about "Delivery Document Item Analytics" in SAP S/4HANA. It reads from 2 data sources (I_DeliveryDocumentItem, I_SalesDocumentItem) and exposes 222 fields with key fields DeliveryDocument, DeliveryDocumentItem. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_DeliveryDocumentItem DDI from
I_SalesDocumentItem SDI inner

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_Currency _StatisticsCurrency $projection.StatisticsCurrency = _StatisticsCurrency.Currency

Annotations (9)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
EndUserText.label Delivery Document Item Analytics view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
AbapCatalog.sqlViewName ISDDELDOCITMANA view

Fields (222)

KeyFieldSource TableSource FieldDescription
KEY DeliveryDocument I_DeliveryDocumentItem DeliveryDocument Outbound Delivery
KEY DeliveryDocumentItem I_DeliveryDocumentItem DeliveryDocumentItem Outb. Delivery Item
SDDocumentCategory I_DeliveryDocumentItem SDDocumentCategory Document Cat.
DeliveryDocumentItemCategory I_DeliveryDocumentItem DeliveryDocumentItemCategory Item Category
SalesDocumentItemType I_DeliveryDocumentItem SalesDocumentItemType Item Type
CreatedByUser I_DeliveryDocumentItem CreatedByUser User Name
CreationDate I_DeliveryDocumentItem CreationDate Time Stamp
CreationTime I_DeliveryDocumentItem CreationTime Time of Change
LastChangeDate I_DeliveryDocumentItem LastChangeDate Time Stamp
SalesOrganization
DistributionChannel I_DeliveryDocumentItem DistributionChannel RefDistCh-Cust/Mat.
Division I_DeliveryDocumentItem Division Internal Division ID
SalesGroup I_DeliveryDocumentItem SalesGroup Sales Group
SalesOffice I_DeliveryDocumentItem SalesOffice Sales Office
DepartmentClassificationByCust I_DeliveryDocumentItem DepartmentClassificationByCust
Material I_DeliveryDocumentItem Material Vehicle Model
Product I_DeliveryDocumentItem Product Product Sold
MaterialByCustomer I_DeliveryDocumentItem MaterialByCustomer Customer Mat.
OriginallyRequestedMaterial I_DeliveryDocumentItem OriginallyRequestedMaterial MaterialEntered
InternationalArticleNumber I_DeliveryDocumentItem InternationalArticleNumber EAN/UPC
Batch I_DeliveryDocumentItem Batch Lot No.
BatchClassification I_DeliveryDocumentItem BatchClassification
BatchBySupplier I_DeliveryDocumentItem BatchBySupplier Supplier Batch
MaterialIsIntBatchManaged I_DeliveryDocumentItem MaterialIsIntBatchManaged
MaterialIsBatchManaged I_DeliveryDocumentItem MaterialIsBatchManaged
MaterialGroup I_DeliveryDocumentItem MaterialGroup Product Group
ProductGroup I_DeliveryDocumentItem ProductGroup Product Sold Group
MaterialFreightGroup I_DeliveryDocumentItem MaterialFreightGroup Mat.Freight Grp
AdditionalMaterialGroup1 I_DeliveryDocumentItem AdditionalMaterialGroup1 MaterialGroup 1
AdditionalMaterialGroup2 I_DeliveryDocumentItem AdditionalMaterialGroup2 MaterialGroup 2
AdditionalMaterialGroup3 I_DeliveryDocumentItem AdditionalMaterialGroup3 MaterialGroup 3
AdditionalMaterialGroup4 I_DeliveryDocumentItem AdditionalMaterialGroup4 MaterialGroup 4
AdditionalMaterialGroup5 I_DeliveryDocumentItem AdditionalMaterialGroup5 MaterialGroup 5
Plant I_DeliveryDocumentItem Plant Valuation Area
PlantName
StorageLocation I_DeliveryDocumentItem StorageLocation StorageLocation
StorageLocationName
Warehouse I_DeliveryDocumentItem Warehouse Warehouse No.
StorageBin I_DeliveryDocumentItem StorageBin Storage Bin
StorageType I_DeliveryDocumentItem StorageType Storage Type
InventorySpecialStockType I_DeliveryDocumentItem InventorySpecialStockType Special Stock Type
ShelfLifeExpirationDate I_DeliveryDocumentItem ShelfLifeExpirationDate SLED/BBD
NumberOfSerialNumbers I_DeliveryDocumentItem NumberOfSerialNumbers No.serial no.
ProductConfiguration I_DeliveryDocumentItem ProductConfiguration Object Number
ProductHierarchyNode I_DeliveryDocumentItem ProductHierarchyNode Prod. Hierarchy
ManufactureDate I_DeliveryDocumentItem ManufactureDate Date of Manuf.
DeliveryDocumentItemText I_DeliveryDocumentItem DeliveryDocumentItemText
HigherLevelItem I_DeliveryDocumentItem HigherLevelItem Higher-Lev.Item
ActualDeliveryQuantity I_DeliveryDocumentItem ActualDeliveryQuantity Base quantity
QuantityIsFixed I_DeliveryDocumentItem QuantityIsFixed Qty. is fixed
OriginalDeliveryQuantity I_DeliveryDocumentItem OriginalDeliveryQuantity Base quantity
DeliveryQuantityUnit I_DeliveryDocumentItem DeliveryQuantityUnit Unit of measure
ActualDeliveredQtyInBaseUnit I_DeliveryDocumentItem ActualDeliveredQtyInBaseUnit
DeliveryToBaseQuantityDnmntr I_DeliveryDocumentItem DeliveryToBaseQuantityDnmntr
DeliveryToBaseQuantityNmrtr I_DeliveryDocumentItem DeliveryToBaseQuantityNmrtr
ProductAvailabilityDate I_DeliveryDocumentItem ProductAvailabilityDate Mat.Avail.Date
ProductAvailabilityTime I_DeliveryDocumentItem ProductAvailabilityTime Matl Staging Tme
DeliveryGroup I_DeliveryDocumentItem DeliveryGroup Delivery Group
ItemGrossWeight I_DeliveryDocumentItem ItemGrossWeight Gross Weight
ItemNetWeight I_DeliveryDocumentItem ItemNetWeight Net Weight
ItemWeightUnit I_DeliveryDocumentItem ItemWeightUnit Unit of Weight
ItemVolume I_DeliveryDocumentItem ItemVolume Volume
ItemVolumeUnit I_DeliveryDocumentItem ItemVolumeUnit Volume Unit
InspectionLot I_DeliveryDocumentItem InspectionLot Inspection Lot
InspectionPartialLot I_DeliveryDocumentItem InspectionPartialLot
PartialDeliveryIsAllowed I_DeliveryDocumentItem PartialDeliveryIsAllowed Partial Deliv.
UnlimitedOverdeliveryIsAllowed I_DeliveryDocumentItem UnlimitedOverdeliveryIsAllowed Unlimited Tol.
OverdelivTolrtdLmtRatioInPct I_DeliveryDocumentItem OverdelivTolrtdLmtRatioInPct Overdeliv. Tol.
UnderdelivTolrtdLmtRatioInPct I_DeliveryDocumentItem UnderdelivTolrtdLmtRatioInPct Underdel. Tol.
WarehouseStorageBin I_DeliveryDocumentItem WarehouseStorageBin Storage Bin
BOMExplosion I_DeliveryDocumentItem BOMExplosion
CustEngineeringChgStatus I_DeliveryDocumentItem CustEngineeringChgStatus
WarehouseStagingArea I_DeliveryDocumentItem WarehouseStagingArea
WarehouseStockCategory I_DeliveryDocumentItem WarehouseStockCategory
IssgOrRcvgStockCategory I_DeliveryDocumentItem IssgOrRcvgStockCategory
IssgOrRcvgMaterial I_DeliveryDocumentItem IssgOrRcvgMaterial Transfer Material
IssuingOrReceivingPlant I_DeliveryDocumentItem IssuingOrReceivingPlant Transfer Plant
IssuingOrReceivingStorageLoc I_DeliveryDocumentItem IssuingOrReceivingStorageLoc Receiving SLoc.
IssgOrRcvgBatch I_DeliveryDocumentItem IssgOrRcvgBatch Transfer Batch
IssgOrRcvgValuationType I_DeliveryDocumentItem IssgOrRcvgValuationType
IssgOrRcvgSpclStockInd I_DeliveryDocumentItem IssgOrRcvgSpclStockInd Special Stock
PrimaryPostingSwitch I_DeliveryDocumentItem PrimaryPostingSwitch
StockType I_DeliveryDocumentItem StockType Stock Type
IsNotGoodsMovementsRelevant I_DeliveryDocumentItem IsNotGoodsMovementsRelevant
GLAccount I_DeliveryDocumentItem GLAccount General Ledger
GoodsMovementReasonCode I_DeliveryDocumentItem GoodsMovementReasonCode Reason for Mvmt
SubsequentMovementType I_DeliveryDocumentItem SubsequentMovementType
IsCompletelyDelivered I_DeliveryDocumentItem IsCompletelyDelivered Is completely delivered
AlternateProductNumber I_DeliveryDocumentItem AlternateProductNumber
PickingControl I_DeliveryDocumentItem PickingControl
LoadingGroup I_DeliveryDocumentItem LoadingGroup Loading Group
GoodsMovementType I_DeliveryDocumentItem GoodsMovementType Movement Type
TransportationGroup I_DeliveryDocumentItem TransportationGroup Trans. Group
ReceivingPoint I_DeliveryDocumentItem ReceivingPoint Recv. Point
FixedShipgProcgDurationInDays I_DeliveryDocumentItem FixedShipgProcgDurationInDays
VarblShipgProcgDurationInDays I_DeliveryDocumentItem VarblShipgProcgDurationInDays
ProofOfDeliveryRelevanceCode I_DeliveryDocumentItem ProofOfDeliveryRelevanceCode
ItemIsBillingRelevant I_DeliveryDocumentItem ItemIsBillingRelevant Relev.for Bill.
ItemBillingBlockReason I_DeliveryDocumentItem ItemBillingBlockReason Billing Block
PaymentGuaranteeForm I_DeliveryDocumentItem PaymentGuaranteeForm
IntercompanyBillingStatus I_DeliveryDocumentItem IntercompanyBillingStatus
BusinessArea I_DeliveryDocumentItem BusinessArea Business Area
ControllingArea I_DeliveryDocumentItem ControllingArea Controlling Area
ProfitabilitySegment I_DeliveryDocumentItem ProfitabilitySegment_2 Profit. segment
ProfitCenter I_DeliveryDocumentItem ProfitCenter Profit Center
InventoryValuationType
IsSeparateValuation I_DeliveryDocumentItem IsSeparateValuation
ConsumptionPosting I_DeliveryDocumentItem ConsumptionPosting Consumption Posting
OrderID I_DeliveryDocumentItem OrderID Order ID
OrderItem I_DeliveryDocumentItem OrderItem
CostCenter I_DeliveryDocumentItem CostCenter Cost Center
ReferenceSDDocument I_DeliveryDocumentItem ReferenceSDDocument Reference Doc.
ReferenceSDDocumentItem I_DeliveryDocumentItem ReferenceSDDocumentItem Reference Item
ReferenceSDDocumentCategory I_DeliveryDocumentItem ReferenceSDDocumentCategory Prec.Doc.Categ.
ReferenceDocumentLogicalSystem I_DeliveryDocumentItem ReferenceDocumentLogicalSystem Ref. Doc. Lgcl Syst.
AdditionalCustomerGroup1 I_DeliveryDocumentItem AdditionalCustomerGroup1 Customer Grp 1
AdditionalCustomerGroup2 I_DeliveryDocumentItem AdditionalCustomerGroup2 Customer Grp 2
AdditionalCustomerGroup3 I_DeliveryDocumentItem AdditionalCustomerGroup3 Customer Grp 3
AdditionalCustomerGroup4 I_DeliveryDocumentItem AdditionalCustomerGroup4 Customer Grp 4
AdditionalCustomerGroup5 I_DeliveryDocumentItem AdditionalCustomerGroup5 Customer Grp 5
RetailPromotion I_DeliveryDocumentItem RetailPromotion Promotion
StatisticsDate I_DeliveryDocumentItem StatisticsDate
SDProcessStatus I_DeliveryDocumentItem SDProcessStatus Overall Status
PickingConfirmationStatus I_DeliveryDocumentItem PickingConfirmationStatus
PickingStatus I_DeliveryDocumentItem PickingStatus Status Value
WarehouseActivityStatus I_DeliveryDocumentItem WarehouseActivityStatus
PackingStatus I_DeliveryDocumentItem PackingStatus
GoodsMovementStatus I_DeliveryDocumentItem GoodsMovementStatus Gds Movemt Status
DeliveryRelatedBillingStatus I_DeliveryDocumentItem DeliveryRelatedBillingStatus
ProofOfDeliveryStatus I_DeliveryDocumentItem ProofOfDeliveryStatus
ItemGeneralIncompletionStatus I_DeliveryDocumentItem ItemGeneralIncompletionStatus
ItemDeliveryIncompletionStatus I_DeliveryDocumentItem ItemDeliveryIncompletionStatus Delivery – Item
ItemPickingIncompletionStatus I_DeliveryDocumentItem ItemPickingIncompletionStatus
ItemGdsMvtIncompletionSts I_DeliveryDocumentItem ItemGdsMvtIncompletionSts
ItemPackingIncompletionStatus I_DeliveryDocumentItem ItemPackingIncompletionStatus
ItemBillingIncompletionStatus I_DeliveryDocumentItem ItemBillingIncompletionStatus Billing Doc.
SoldToParty
SoldToPartyName
CustomerGroup
SoldToPartyClassification
SalesDistrict
ShippingPoint
BillingDocumentDate
TransactionCurrency I_SalesDocumentItem TransactionCurrency Transaction Currency
StatisticsCurrency
BaseUnit
_DeliveryDocument I_DeliveryDocumentItem _DeliveryDocument
_Partner I_DeliveryDocumentItem _Partner
_SDDocumentCategory I_DeliveryDocumentItem _SDDocumentCategory
_ItemCategory I_DeliveryDocumentItem _ItemCategory
_SalesDocumentItemType I_DeliveryDocumentItem _SalesDocumentItemType
_CreatedByUser I_DeliveryDocumentItem _CreatedByUser
_DistributionChannel I_DeliveryDocumentItem _DistributionChannel
_Division I_DeliveryDocumentItem _Division
_SalesGroup I_DeliveryDocumentItem _SalesGroup
_SalesOffice I_DeliveryDocumentItem _SalesOffice
_Material I_DeliveryDocumentItem _Material
_Product I_DeliveryDocumentItem _Product
_OriginallyRequestedMaterial I_DeliveryDocumentItem _OriginallyRequestedMaterial
_ProductHierarchyNode I_DeliveryDocumentItem _ProductHierarchyNode
_MaterialGroup I_DeliveryDocumentItem _MaterialGroup
_ProductGroup I_DeliveryDocumentItem _ProductGroup
_MaterialFreightGroup I_DeliveryDocumentItem _MaterialFreightGroup
_AdditionalMaterialGroup1 I_DeliveryDocumentItem _AdditionalMaterialGroup1
_AdditionalMaterialGroup2 I_DeliveryDocumentItem _AdditionalMaterialGroup2
_AdditionalMaterialGroup3 I_DeliveryDocumentItem _AdditionalMaterialGroup3
_AdditionalMaterialGroup4 I_DeliveryDocumentItem _AdditionalMaterialGroup4
_AdditionalMaterialGroup5 I_DeliveryDocumentItem _AdditionalMaterialGroup5
_Plant I_DeliveryDocumentItem _Plant
_Warehouse I_DeliveryDocumentItem _Warehouse
_StorageLocation I_DeliveryDocumentItem _StorageLocation
_InventorySpecialStockType I_DeliveryDocumentItem _InventorySpecialStockType
_DeliveryQuantityUnit I_DeliveryDocumentItem _DeliveryQuantityUnit
_BaseUnit I_DeliveryDocumentItem _BaseUnit
_ItemWeightUnit I_DeliveryDocumentItem _ItemWeightUnit
_ItemVolumeUnit I_DeliveryDocumentItem _ItemVolumeUnit
_BOMExplosion I_DeliveryDocumentItem _BOMExplosion
_WarehouseStagingArea I_DeliveryDocumentItem _WarehouseStagingArea
_PickingControl I_DeliveryDocumentItem _PickingControl
_LoadingGroup I_DeliveryDocumentItem _LoadingGroup
_GoodsMovementType I_DeliveryDocumentItem _GoodsMovementType
_TransportationGroup I_DeliveryDocumentItem _TransportationGroup
_ItemIsBillingRelevant I_DeliveryDocumentItem _ItemIsBillingRelevant
_ItemBillingBlockReason I_DeliveryDocumentItem _ItemBillingBlockReason
_PaymentGuaranteeForm I_DeliveryDocumentItem _PaymentGuaranteeForm
_BusinessArea I_DeliveryDocumentItem _BusinessArea
_ControllingArea I_DeliveryDocumentItem _ControllingArea
_ProfitCenter I_DeliveryDocumentItem _ProfitCenter
_InventoryValuationType I_DeliveryDocumentItem _InventoryValuationType
_OrderID I_DeliveryDocumentItem _OrderID
_CostCenter I_DeliveryDocumentItem _CostCenter
_ReferenceSDDocument I_DeliveryDocumentItem _ReferenceSDDocument
_ReferenceSalesDocumentItem I_DeliveryDocumentItem _ReferenceSalesDocumentItem
_ReferenceSDDocumentCategory I_DeliveryDocumentItem _ReferenceSDDocumentCategory
_LogicalSystem I_DeliveryDocumentItem _LogicalSystem
_AdditionalCustomerGroup1 I_DeliveryDocumentItem _AdditionalCustomerGroup1
_AdditionalCustomerGroup2 I_DeliveryDocumentItem _AdditionalCustomerGroup2
_AdditionalCustomerGroup3 I_DeliveryDocumentItem _AdditionalCustomerGroup3
_AdditionalCustomerGroup4 I_DeliveryDocumentItem _AdditionalCustomerGroup4
_AdditionalCustomerGroup5 I_DeliveryDocumentItem _AdditionalCustomerGroup5
_SDProcessStatus I_DeliveryDocumentItem _SDProcessStatus
_PickingConfirmationStatus I_DeliveryDocumentItem _PickingConfirmationStatus
_PickingStatus I_DeliveryDocumentItem _PickingStatus
_WarehouseActivityStatus I_DeliveryDocumentItem _WarehouseActivityStatus
_PackingStatus I_DeliveryDocumentItem _PackingStatus
_GoodsMovementStatus I_DeliveryDocumentItem _GoodsMovementStatus
_DeliveryRelatedBillingStatus I_DeliveryDocumentItem _DeliveryRelatedBillingStatus
_ProofOfDeliveryStatus I_DeliveryDocumentItem _ProofOfDeliveryStatus
_ItemGeneralIncompletionStatus I_DeliveryDocumentItem _ItemGeneralIncompletionStatus
_ItemDelivIncompletionSts I_DeliveryDocumentItem _ItemDelivIncompletionSts
_ItemPickingIncompletionStatus I_DeliveryDocumentItem _ItemPickingIncompletionStatus
_ItemGdsMvtIncompletionSts I_DeliveryDocumentItem _ItemGdsMvtIncompletionSts
_ItemPackingIncompletionStatus I_DeliveryDocumentItem _ItemPackingIncompletionStatus
_ItemBillingIncompletionStatus I_DeliveryDocumentItem _ItemBillingIncompletionStatus
_SalesOrganization
_CustomerGroup
_SalesDistrict
_ShippingPoint
_SoldToParty
_CustomerClassification
_StatisticsCurrency _StatisticsCurrency
_TransactionCurrency I_SalesDocumentItem _TransactionCurrency

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_DeliveryDocItemAnalytics.
-- 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: ISDDELDOCITMANA

CREATE VIEW I_DeliveryDocItemAnalytics AS
SELECT
  DDI.DeliveryDocument AS DeliveryDocument,
  DDI.DeliveryDocumentItem AS DeliveryDocumentItem,
  DDI.SDDocumentCategory AS SDDocumentCategory,
  DDI.DeliveryDocumentItemCategory AS DeliveryDocumentItemCategory,
  DDI.SalesDocumentItemType AS SalesDocumentItemType,
  DDI.CreatedByUser AS CreatedByUser,
  DDI.CreationDate AS CreationDate,
  DDI.CreationTime AS CreationTime,
  DDI.LastChangeDate AS LastChangeDate,
  DDI._DeliveryDocument.SalesOrganization AS SalesOrganization,
  DDI.DistributionChannel AS DistributionChannel,
  DDI.Division AS Division,
  DDI.SalesGroup AS SalesGroup,
  DDI.SalesOffice AS SalesOffice,
  DDI.DepartmentClassificationByCust AS DepartmentClassificationByCust,
  DDI.Material AS Material,
  DDI.Product AS Product,
  DDI.MaterialByCustomer AS MaterialByCustomer,
  DDI.OriginallyRequestedMaterial AS OriginallyRequestedMaterial,
  DDI.InternationalArticleNumber AS InternationalArticleNumber,
  DDI.Batch AS Batch,
  DDI.BatchClassification AS BatchClassification,
  DDI.BatchBySupplier AS BatchBySupplier,
  DDI.MaterialIsIntBatchManaged AS MaterialIsIntBatchManaged,
  DDI.MaterialIsBatchManaged AS MaterialIsBatchManaged,
  DDI.MaterialGroup AS MaterialGroup,
  DDI.ProductGroup AS ProductGroup,
  DDI.MaterialFreightGroup AS MaterialFreightGroup,
  DDI.AdditionalMaterialGroup1 AS AdditionalMaterialGroup1,
  DDI.AdditionalMaterialGroup2 AS AdditionalMaterialGroup2,
  DDI.AdditionalMaterialGroup3 AS AdditionalMaterialGroup3,
  DDI.AdditionalMaterialGroup4 AS AdditionalMaterialGroup4,
  DDI.AdditionalMaterialGroup5 AS AdditionalMaterialGroup5,
  DDI.Plant AS Plant,
  DDI._Plant.PlantName AS PlantName,
  DDI.StorageLocation AS StorageLocation,
  DDI._StorageLocation.StorageLocationName AS StorageLocationName,
  DDI.Warehouse AS Warehouse,
  DDI.StorageBin AS StorageBin,
  DDI.StorageType AS StorageType,
  DDI.InventorySpecialStockType AS InventorySpecialStockType,
  DDI.ShelfLifeExpirationDate AS ShelfLifeExpirationDate,
  DDI.NumberOfSerialNumbers AS NumberOfSerialNumbers,
  DDI.ProductConfiguration AS ProductConfiguration,
  DDI.ProductHierarchyNode AS ProductHierarchyNode,
  DDI.ManufactureDate AS ManufactureDate,
  DDI.DeliveryDocumentItemText AS DeliveryDocumentItemText,
  DDI.HigherLevelItem AS HigherLevelItem,
  DDI.ActualDeliveryQuantity AS ActualDeliveryQuantity,
  DDI.QuantityIsFixed AS QuantityIsFixed,
  DDI.OriginalDeliveryQuantity AS OriginalDeliveryQuantity,
  DDI.DeliveryQuantityUnit AS DeliveryQuantityUnit,
  DDI.ActualDeliveredQtyInBaseUnit AS ActualDeliveredQtyInBaseUnit,
  DDI.DeliveryToBaseQuantityDnmntr AS DeliveryToBaseQuantityDnmntr,
  DDI.DeliveryToBaseQuantityNmrtr AS DeliveryToBaseQuantityNmrtr,
  DDI.ProductAvailabilityDate AS ProductAvailabilityDate,
  DDI.ProductAvailabilityTime AS ProductAvailabilityTime,
  DDI.DeliveryGroup AS DeliveryGroup,
  DDI.ItemGrossWeight AS ItemGrossWeight,
  DDI.ItemNetWeight AS ItemNetWeight,
  DDI.ItemWeightUnit AS ItemWeightUnit,
  DDI.ItemVolume AS ItemVolume,
  DDI.ItemVolumeUnit AS ItemVolumeUnit,
  DDI.InspectionLot AS InspectionLot,
  DDI.InspectionPartialLot AS InspectionPartialLot,
  DDI.PartialDeliveryIsAllowed AS PartialDeliveryIsAllowed,
  DDI.UnlimitedOverdeliveryIsAllowed AS UnlimitedOverdeliveryIsAllowed,
  DDI.OverdelivTolrtdLmtRatioInPct AS OverdelivTolrtdLmtRatioInPct,
  DDI.UnderdelivTolrtdLmtRatioInPct AS UnderdelivTolrtdLmtRatioInPct,
  DDI.WarehouseStorageBin AS WarehouseStorageBin,
  DDI.BOMExplosion AS BOMExplosion,
  DDI.CustEngineeringChgStatus AS CustEngineeringChgStatus,
  DDI.WarehouseStagingArea AS WarehouseStagingArea,
  DDI.WarehouseStockCategory AS WarehouseStockCategory,
  DDI.IssgOrRcvgStockCategory AS IssgOrRcvgStockCategory,
  DDI.IssgOrRcvgMaterial AS IssgOrRcvgMaterial,
  DDI.IssuingOrReceivingPlant AS IssuingOrReceivingPlant,
  DDI.IssuingOrReceivingStorageLoc AS IssuingOrReceivingStorageLoc,
  DDI.IssgOrRcvgBatch AS IssgOrRcvgBatch,
  DDI.IssgOrRcvgValuationType AS IssgOrRcvgValuationType,
  DDI.IssgOrRcvgSpclStockInd AS IssgOrRcvgSpclStockInd,
  DDI.PrimaryPostingSwitch AS PrimaryPostingSwitch,
  DDI.StockType AS StockType,
  DDI.IsNotGoodsMovementsRelevant AS IsNotGoodsMovementsRelevant,
  DDI.GLAccount AS GLAccount,
  DDI.GoodsMovementReasonCode AS GoodsMovementReasonCode,
  DDI.SubsequentMovementType AS SubsequentMovementType,
  DDI.IsCompletelyDelivered AS IsCompletelyDelivered,
  DDI.AlternateProductNumber AS AlternateProductNumber,
  DDI.PickingControl AS PickingControl,
  DDI.LoadingGroup AS LoadingGroup,
  DDI.GoodsMovementType AS GoodsMovementType,
  DDI.TransportationGroup AS TransportationGroup,
  DDI.ReceivingPoint AS ReceivingPoint,
  DDI.FixedShipgProcgDurationInDays AS FixedShipgProcgDurationInDays,
  DDI.VarblShipgProcgDurationInDays AS VarblShipgProcgDurationInDays,
  DDI.ProofOfDeliveryRelevanceCode AS ProofOfDeliveryRelevanceCode,
  DDI.ItemIsBillingRelevant AS ItemIsBillingRelevant,
  DDI.ItemBillingBlockReason AS ItemBillingBlockReason,
  DDI.PaymentGuaranteeForm AS PaymentGuaranteeForm,
  DDI.IntercompanyBillingStatus AS IntercompanyBillingStatus,
  DDI.BusinessArea AS BusinessArea,
  DDI.ControllingArea AS ControllingArea,
  DDI.ProfitabilitySegment_2 AS ProfitabilitySegment,
  DDI.ProfitCenter AS ProfitCenter,
  OMFK DDI.InventoryValuationType AS InventoryValuationType,
  DDI.IsSeparateValuation AS IsSeparateValuation,
  DDI.ConsumptionPosting AS ConsumptionPosting,
  DDI.OrderID AS OrderID,
  DDI.OrderItem AS OrderItem,
  DDI.CostCenter AS CostCenter,
  DDI.ReferenceSDDocument AS ReferenceSDDocument,
  DDI.ReferenceSDDocumentItem AS ReferenceSDDocumentItem,
  DDI.ReferenceSDDocumentCategory AS ReferenceSDDocumentCategory,
  DDI.ReferenceDocumentLogicalSystem AS ReferenceDocumentLogicalSystem,
  DDI.AdditionalCustomerGroup1 AS AdditionalCustomerGroup1,
  DDI.AdditionalCustomerGroup2 AS AdditionalCustomerGroup2,
  DDI.AdditionalCustomerGroup3 AS AdditionalCustomerGroup3,
  DDI.AdditionalCustomerGroup4 AS AdditionalCustomerGroup4,
  DDI.AdditionalCustomerGroup5 AS AdditionalCustomerGroup5,
  DDI.RetailPromotion AS RetailPromotion,
  DDI.StatisticsDate AS StatisticsDate,
  DDI.SDProcessStatus AS SDProcessStatus,
  DDI.PickingConfirmationStatus AS PickingConfirmationStatus,
  DDI.PickingStatus AS PickingStatus,
  DDI.WarehouseActivityStatus AS WarehouseActivityStatus,
  DDI.PackingStatus AS PackingStatus,
  DDI.GoodsMovementStatus AS GoodsMovementStatus,
  DDI.DeliveryRelatedBillingStatus AS DeliveryRelatedBillingStatus,
  DDI.ProofOfDeliveryStatus AS ProofOfDeliveryStatus,
  DDI.ItemGeneralIncompletionStatus AS ItemGeneralIncompletionStatus,
  DDI.ItemDeliveryIncompletionStatus AS ItemDeliveryIncompletionStatus,
  DDI.ItemPickingIncompletionStatus AS ItemPickingIncompletionStatus,
  DDI.ItemGdsMvtIncompletionSts AS ItemGdsMvtIncompletionSts,
  DDI.ItemPackingIncompletionStatus AS ItemPackingIncompletionStatus,
  DDI.ItemBillingIncompletionStatus AS ItemBillingIncompletionStatus,
  DDI._DeliveryDocument.SoldToParty AS SoldToParty,
  cast(DDI._DeliveryDocument._SoldToParty.CustomerName as vdm_sold_to_name) AS SoldToPartyName,
  DDI._DeliveryDocument.CustomerGroup AS CustomerGroup,
  DDI._DeliveryDocument._SoldToParty.CustomerClassification AS SoldToPartyClassification,
  DDI._DeliveryDocument.SalesDistrict AS SalesDistrict,
  DDI._DeliveryDocument.ShippingPoint AS ShippingPoint,
  SDI.TransactionCurrency AS TransactionCurrency,
  _DeliveryDocument._SalesOrganization.SalesOrganizationCurrency AS StatisticsCurrency,
  DDI._DeliveryDocument AS _DeliveryDocument,
  DDI._Partner AS _Partner,
  DDI._SDDocumentCategory AS _SDDocumentCategory,
  DDI._ItemCategory AS _ItemCategory,
  DDI._SalesDocumentItemType AS _SalesDocumentItemType,
  DDI._CreatedByUser AS _CreatedByUser,
  DDI._DistributionChannel AS _DistributionChannel,
  DDI._Division AS _Division,
  DDI._SalesGroup AS _SalesGroup,
  DDI._SalesOffice AS _SalesOffice,
  DDI._Material AS _Material,
  DDI._Product AS _Product,
  DDI._OriginallyRequestedMaterial AS _OriginallyRequestedMaterial,
  DDI._ProductHierarchyNode AS _ProductHierarchyNode,
  DDI._MaterialGroup AS _MaterialGroup,
  DDI._ProductGroup AS _ProductGroup,
  DDI._MaterialFreightGroup AS _MaterialFreightGroup,
  DDI._AdditionalMaterialGroup1 AS _AdditionalMaterialGroup1,
  DDI._AdditionalMaterialGroup2 AS _AdditionalMaterialGroup2,
  DDI._AdditionalMaterialGroup3 AS _AdditionalMaterialGroup3,
  DDI._AdditionalMaterialGroup4 AS _AdditionalMaterialGroup4,
  DDI._AdditionalMaterialGroup5 AS _AdditionalMaterialGroup5,
  DDI._Plant AS _Plant,
  DDI._Warehouse AS _Warehouse,
  DDI._StorageLocation AS _StorageLocation,
  DDI._InventorySpecialStockType AS _InventorySpecialStockType,
  DDI._DeliveryQuantityUnit AS _DeliveryQuantityUnit,
  DDI._BaseUnit AS _BaseUnit,
  DDI._ItemWeightUnit AS _ItemWeightUnit,
  DDI._ItemVolumeUnit AS _ItemVolumeUnit,
  DDI._BOMExplosion AS _BOMExplosion,
  DDI._WarehouseStagingArea AS _WarehouseStagingArea,
  DDI._PickingControl AS _PickingControl,
  DDI._LoadingGroup AS _LoadingGroup,
  DDI._GoodsMovementType AS _GoodsMovementType,
  DDI._TransportationGroup AS _TransportationGroup,
  DDI._ItemIsBillingRelevant AS _ItemIsBillingRelevant,
  DDI._ItemBillingBlockReason AS _ItemBillingBlockReason,
  DDI._PaymentGuaranteeForm AS _PaymentGuaranteeForm,
  DDI._BusinessArea AS _BusinessArea,
  DDI._ControllingArea AS _ControllingArea,
  DDI._ProfitCenter AS _ProfitCenter,
  DDI._InventoryValuationType AS _InventoryValuationType,
  DDI._OrderID AS _OrderID,
  DDI._CostCenter AS _CostCenter,
  DDI._ReferenceSDDocument AS _ReferenceSDDocument,
  DDI._ReferenceSalesDocumentItem AS _ReferenceSalesDocumentItem,
  DDI._ReferenceSDDocumentCategory AS _ReferenceSDDocumentCategory,
  DDI._LogicalSystem AS _LogicalSystem,
  DDI._AdditionalCustomerGroup1 AS _AdditionalCustomerGroup1,
  DDI._AdditionalCustomerGroup2 AS _AdditionalCustomerGroup2,
  DDI._AdditionalCustomerGroup3 AS _AdditionalCustomerGroup3,
  DDI._AdditionalCustomerGroup4 AS _AdditionalCustomerGroup4,
  DDI._AdditionalCustomerGroup5 AS _AdditionalCustomerGroup5,
  DDI._SDProcessStatus AS _SDProcessStatus,
  DDI._PickingConfirmationStatus AS _PickingConfirmationStatus,
  DDI._PickingStatus AS _PickingStatus,
  DDI._WarehouseActivityStatus AS _WarehouseActivityStatus,
  DDI._PackingStatus AS _PackingStatus,
  DDI._GoodsMovementStatus AS _GoodsMovementStatus,
  DDI._DeliveryRelatedBillingStatus AS _DeliveryRelatedBillingStatus,
  DDI._ProofOfDeliveryStatus AS _ProofOfDeliveryStatus,
  DDI._ItemGeneralIncompletionStatus AS _ItemGeneralIncompletionStatus,
  DDI._ItemDelivIncompletionSts AS _ItemDelivIncompletionSts,
  DDI._ItemPickingIncompletionStatus AS _ItemPickingIncompletionStatus,
  DDI._ItemGdsMvtIncompletionSts AS _ItemGdsMvtIncompletionSts,
  DDI._ItemPackingIncompletionStatus AS _ItemPackingIncompletionStatus,
  DDI._ItemBillingIncompletionStatus AS _ItemBillingIncompletionStatus,
  DDI._DeliveryDocument._SalesOrganization AS _SalesOrganization,
  DDI._DeliveryDocument._CustomerGroup AS _CustomerGroup,
  DDI._DeliveryDocument._SalesDistrict AS _SalesDistrict,
  DDI._DeliveryDocument._ShippingPoint AS _ShippingPoint,
  DDI._DeliveryDocument._SoldToParty AS _SoldToParty,
  DDI._DeliveryDocument._SoldToParty._CustomerClassification AS _CustomerClassification,
  SDI._TransactionCurrency AS _TransactionCurrency
FROM I_DeliveryDocumentItem AS DDI
INNER JOIN I_SalesDocumentItem AS SDI ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Currency AS _StatisticsCurrency ON StatisticsCurrency = _StatisticsCurrency.Currency  -- association [0..1]
;