I_FldLogsPurchasingItem

DDL: I_FLDLOGSPURCHASINGITEM Type: view_entity COMPOSITE

Field Logistics Purchasing Items

I_FldLogsPurchasingItem is a Composite CDS View that provides data about "Field Logistics Purchasing Items" in SAP S/4HANA. It reads from 2 data sources (I_FieldLogisticsPlantAll, I_PurchasingDocumentItem) and exposes 60 fields with key fields PurchasingDocument, PurchasingDocumentItem, DeliveryDocument, DeliveryDocumentItem. It has 14 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_FieldLogisticsPlantAll _FldLogsAllPlants inner
I_PurchasingDocumentItem _PurchasingDocumentItem from

Associations (14)

CardinalityTargetAliasCondition
[0..1] I_FldLogsPurOrdOpenQty _POOpenQty $projection.PurchasingDocument = _POOpenQty.PurchasingDocument and $projection.PurchasingDocumentItem = _POOpenQty.PurchasingDocumentItem
[0..*] I_FldLogsValuationType _ValuationType _PurchasingDocumentItem.Material = _ValuationType.Material and _PurchasingDocumentItem.Plant = _ValuationType.Plant
[0..1] I_FldLogsMaterialDetails _MaterialDetails _PurchasingDocumentItem.Material = _MaterialDetails.Material
[1..1] I_FldLogsMaterialPlantDetails _ProductPlant _PurchasingDocumentItem.Material = _ProductPlant.Material and _PurchasingDocumentItem.Plant = _ProductPlant.Plant
[0..1] I_FldLogsAggregateBlockedQty _OpenBlockedItems $projection.PurchasingDocument = _OpenBlockedItems.PurchaseOrder and $projection.PurchasingDocumentItem = _OpenBlockedItems.PurchaseOrderItem and $projection.DeliveryDocument = _OpenBlockedItems.DeliveryDocument and $projection.DeliveryDocumentItem = _OpenBlockedItems.DeliveryDocumentItem
[0..1] I_FldLogsAggregateReceivedQty _ReceivedItems $projection.PurchasingDocument = _ReceivedItems.PurchaseOrder and $projection.PurchasingDocumentItem = _ReceivedItems.PurchaseOrderItem and $projection.DeliveryDocument = _ReceivedItems.DeliveryDocument and $projection.DeliveryDocument = _ReceivedItems.DeliveryDocumentItem
[0..1] I_FldLogsInbDelivWhseTsk _FldLogsInbDelivWhseTsk _DeliveryItem.DistrStatusByDecentralizedWrhs is not initial and $projection.EWMInboundDelivery = _FldLogsInbDelivWhseTsk.EWMInboundDelivery and $projection.EWMInboundDeliveryItem = _FldLogsInbDelivWhseTsk.EWMInboundDeliveryItem
[0..1] I_FldLogsAggregateDelivQty _DeliveryAggrgQty $projection.DeliveryDocument is not initial and $projection.DeliveryDocument = _DeliveryAggrgQty.DeliveryDocument and $projection.DeliveryDocumentItem = _DeliveryAggrgQty.DeliveryDocumentItem
[0..1] I_FldLogsOpenPackQty _OpenPackQty $projection.DeliveryDocument is not initial and $projection.DeliveryDocument = _OpenPackQty.DeliveryDocument and $projection.DeliveryDocumentItem = _OpenPackQty.DeliveryDocumentItem
[0..1] I_FldLogsAggrgdPackedQuantity _LogisticsHandlingUnitQuantity $projection.DeliveryDocument is not initial and $projection.DeliveryDocument = _LogisticsHandlingUnitQuantity.OutboundDelivery and $projection.DeliveryDocumentItem = _LogisticsHandlingUnitQuantity.OutboundDeliveryItem
[0..1] I_Supplier _Supplier $projection.supplier = _Supplier.Supplier
[0..1] I_Customer _SoldToParty _DeliveryItem.SoldToParty = _SoldToParty.Customer
[0..1] I_Customer _ShipToParty _DeliveryItem.ShipToParty = _ShipToParty.Customer
[0..1] I_FldLogsNonEvalMatConfig _config _PurchasingDocumentItem.Plant = _config.Plant and _PurchasingDocumentItem.MaterialType = _config.MaterialType

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Field Logistics Purchasing Items view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (60)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument I_PurchasingDocumentItem PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem I_PurchasingDocumentItem PurchasingDocumentItem Purchasing Doc. Item
KEY DeliveryDocument
KEY DeliveryDocumentItem
PurchaseRequisition I_PurchasingDocumentItem PurchaseRequisition Requisition
PurchaseRequisitionItem I_PurchasingDocumentItem PurchaseRequisitionItem Requisn. item
FldLogsPurOrdItem
FldLogsDelivDocItem
IsCompletelyDelivered I_PurchasingDocumentItem IsCompletelyDelivered Is completely delivered
Material I_PurchasingDocumentItem Material Vehicle Model
Plant I_PurchasingDocumentItem Plant Valuation Area
TargetStockType I_PurchasingDocumentItem StockType Stock Type
DeliveryDate
FldLogsDelivQty
DeliveryQuantityUnit _DeliveryItem DeliveryQuantityUnit Unit of measure
OpenQtyInPurchaseOrderUnit _POOpenQty OpenQtyInPurchaseOrderUnit
FldLogsPOTotalQty I_PurchasingDocumentItem OrderQuantity Quantity
OrderQuantityUnit I_PurchasingDocumentItem OrderQuantityUnit Sales Unit
StorageLocationendasStorageLocation
Batch
DocumentCurrency I_PurchasingDocumentItem DocumentCurrency Document Currency
NetPriceAmount I_PurchasingDocumentItem NetPriceAmount Net Price
PurchasingDocumentSubtype
Supplier
MaterialGroup I_PurchasingDocumentItem MaterialGroup Product Group
_MaterialDetails _MaterialDetails
_POOpenQty _POOpenQty
_ValuationType _ValuationType
_ProductPlant _ProductPlant
_PurchasingDocument I_PurchasingDocumentItem _PurchasingDocument
_Plant I_PurchasingDocumentItem _Plant
_Supplier _Supplier
InboundDelivery _DeliveryItem DeliveryDocument Outbound Delivery
GoodsMovementStatus _DeliveryItem GoodsMovementStatus Gds Movemt Status
GoodsMovementType _DeliveryItem GoodsMovementType Movement Type
ActualDeliveryQuantity _DeliveryItem ActualDeliveryQuantity Base quantity
InventoryValuationType
FldLogsStatus _DeliveryItem FldLogsStatus FL Process Status
DistrStatusByDecentralizedWrhs _DeliveryItem DistrStatusByDecentralizedWrhs
DeliveryDocumentBySupplier _DeliveryItem DeliveryDocumentBySupplier
LoadingPoint _DeliveryItem LoadingPoint Loading Point
PickingStatus _DeliveryItem PickingStatus Status Value
IsToBeAcceptedAtOrigin
PurchasingDocumentItemCategory I_PurchasingDocumentItem PurchasingDocumentItemCategory Item Category
IsEndOfPurposeBlocked
IsBusinessPurposeCompleted _ShipToParty IsBusinessPurposeCompleted Purpose Completed
IsBusPrpsCmpltdCustomer _SoldToParty IsBusinessPurposeCompleted Purpose Completed
MaterialType _MaterialDetails MaterialType Material Type
SuplrCoIsBusPrpsCmpltd
RequisitionerName I_PurchasingDocumentItem RequisitionerName Requisitioner
UnloadingPointName
GoodsRecipientName
EWMInboundDelivery
EWMInboundDeliveryItem
_FldLogsInbDelivWhseTsk _FldLogsInbDelivWhseTsk
_OpenPackQty _OpenPackQty
_DeliveryAggrgQty _DeliveryAggrgQty
_OpenBlockedItems _OpenBlockedItems
_ReceivedItems _ReceivedItems
_LogisticsHandlingUnitQuantity _LogisticsHandlingUnitQuantity

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_FldLogsPurchasingItem.
-- 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 I_FldLogsPurchasingItem AS
SELECT
  _PurchasingDocumentItem.PurchasingDocument AS PurchasingDocument,
  _PurchasingDocumentItem.PurchasingDocumentItem AS PurchasingDocumentItem,
  cast( coalesce( _DeliveryItem.DeliveryDocument, ' ') as vbeln_vl) AS DeliveryDocument,
  coalesce( _DeliveryItem.DeliveryDocumentItem, '000000' ) AS DeliveryDocumentItem,
  _PurchasingDocumentItem.PurchaseRequisition AS PurchaseRequisition,
  _PurchasingDocumentItem.PurchaseRequisitionItem AS PurchaseRequisitionItem,
  concat(concat(_PurchasingDocumentItem.PurchasingDocument, '/'), _PurchasingDocumentItem.PurchasingDocumentItem) AS FldLogsPurOrdItem,
  concat(concat(_DeliveryItem.DeliveryDocument, '/'), _DeliveryItem.DeliveryDocumentItem) AS FldLogsDelivDocItem,
  _PurchasingDocumentItem.IsCompletelyDelivered AS IsCompletelyDelivered,
  _PurchasingDocumentItem.Material AS Material,
  _PurchasingDocumentItem.Plant AS Plant,
  _PurchasingDocumentItem.StockType AS TargetStockType,
  coalesce( _DeliveryItem.DeliveryDate,_POOpenQty.DeliveryDate ) AS DeliveryDate,
  cast( coalesce( _DeliveryItem.ActualDeliveryQuantity,0) as lfimg ) AS FldLogsDelivQty,
  _DeliveryItem.DeliveryQuantityUnit AS DeliveryQuantityUnit,
  _POOpenQty.OpenQtyInPurchaseOrderUnit AS OpenQtyInPurchaseOrderUnit,
  _PurchasingDocumentItem.OrderQuantity AS FldLogsPOTotalQty,
  _PurchasingDocumentItem.OrderQuantityUnit AS OrderQuantityUnit,
  case when _PurchasingDocumentItem._PurchasingDocument.PurchasingDocumentSubtype = 'T' then _PurchasingDocumentItem.StorageLocation else coalesce(_DeliveryItem.StorageLocation,_PurchasingDocumentItem.StorageLocation ) end as StorageLocation AS StorageLocationendasStorageLocation,
  coalesce(_DeliveryItem.Batch,_POOpenQty.Batch) AS Batch,
  _PurchasingDocumentItem.DocumentCurrency AS DocumentCurrency,
  _PurchasingDocumentItem.NetPriceAmount AS NetPriceAmount,
  _PurchasingDocumentItem._PurchasingDocument.PurchasingDocumentSubtype AS PurchasingDocumentSubtype,
  _PurchasingDocumentItem._PurchasingDocument.Supplier AS Supplier,
  _PurchasingDocumentItem.MaterialGroup AS MaterialGroup,
  _PurchasingDocumentItem._PurchasingDocument AS _PurchasingDocument,
  _PurchasingDocumentItem._Plant AS _Plant,
  _DeliveryItem.DeliveryDocument AS InboundDelivery,
  _DeliveryItem.GoodsMovementStatus AS GoodsMovementStatus,
  _DeliveryItem.GoodsMovementType AS GoodsMovementType,
  _DeliveryItem.ActualDeliveryQuantity AS ActualDeliveryQuantity,
  coalesce(_DeliveryItem.InventoryValuationType, _PurchasingDocumentItem.ValuationType) AS InventoryValuationType,
  _DeliveryItem.FldLogsStatus AS FldLogsStatus,
  _DeliveryItem.DistrStatusByDecentralizedWrhs AS DistrStatusByDecentralizedWrhs,
  _DeliveryItem.DeliveryDocumentBySupplier AS DeliveryDocumentBySupplier,
  _DeliveryItem.LoadingPoint AS LoadingPoint,
  _DeliveryItem.PickingStatus AS PickingStatus,
  cast('' as boolean) AS IsToBeAcceptedAtOrigin,
  _PurchasingDocumentItem.PurchasingDocumentItemCategory AS PurchasingDocumentItemCategory,
  _PurchasingDocumentItem._PurchasingDocument.IsEndOfPurposeBlocked AS IsEndOfPurposeBlocked,
  _ShipToParty.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
  _SoldToParty.IsBusinessPurposeCompleted AS IsBusPrpsCmpltdCustomer,
  _MaterialDetails.MaterialType AS MaterialType,
  _DeliveryItem._Supplier.IsBusinessPurposeCompleted AS SuplrCoIsBusPrpsCmpltd,
  _PurchasingDocumentItem.RequisitionerName AS RequisitionerName,
  _PurchasingDocumentItem._PurchaseRequisitionItem._PurReqnAcctAssgmt.UnloadingPointName AS UnloadingPointName,
  _PurchasingDocumentItem._PurchaseRequisitionItem._PurReqnAcctAssgmt.GoodsRecipientName AS GoodsRecipientName,
  cast(_DeliveryItem.DeliveryDocument as /scdl/dl_refdocno) AS EWMInboundDelivery,
  cast(lpad(_DeliveryItem.DeliveryDocumentItem, 10, '0') as /scdl/dl_refitemno) AS EWMInboundDeliveryItem
FROM I_PurchasingDocumentItem AS _PurchasingDocumentItem
INNER JOIN I_FieldLogisticsPlantAll AS _FldLogsAllPlants ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_FldLogsPurOrdOpenQty AS _POOpenQty ON PurchasingDocument = _POOpenQty.PurchasingDocument AND PurchasingDocumentItem = _POOpenQty.PurchasingDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_FldLogsValuationType AS _ValuationType ON _PurchasingDocumentItem.Material = _ValuationType.Material AND _PurchasingDocumentItem.Plant = _ValuationType.Plant  -- association [0..*]
LEFT OUTER JOIN I_FldLogsMaterialDetails AS _MaterialDetails ON _PurchasingDocumentItem.Material = _MaterialDetails.Material  -- association [0..1]
LEFT OUTER JOIN I_FldLogsMaterialPlantDetails AS _ProductPlant ON _PurchasingDocumentItem.Material = _ProductPlant.Material AND _PurchasingDocumentItem.Plant = _ProductPlant.Plant  -- association [1..1]
LEFT OUTER JOIN I_FldLogsAggregateBlockedQty AS _OpenBlockedItems ON PurchasingDocument = _OpenBlockedItems.PurchaseOrder AND PurchasingDocumentItem = _OpenBlockedItems.PurchaseOrderItem AND DeliveryDocument = _OpenBlockedItems.DeliveryDocument AND DeliveryDocumentItem = _OpenBlockedItems.DeliveryDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_FldLogsAggregateReceivedQty AS _ReceivedItems ON PurchasingDocument = _ReceivedItems.PurchaseOrder AND PurchasingDocumentItem = _ReceivedItems.PurchaseOrderItem AND DeliveryDocument = _ReceivedItems.DeliveryDocument AND DeliveryDocument = _ReceivedItems.DeliveryDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_FldLogsInbDelivWhseTsk AS _FldLogsInbDelivWhseTsk ON _DeliveryItem.DistrStatusByDecentralizedWrhs is not initial AND EWMInboundDelivery = _FldLogsInbDelivWhseTsk.EWMInboundDelivery AND EWMInboundDeliveryItem = _FldLogsInbDelivWhseTsk.EWMInboundDeliveryItem  -- association [0..1]
LEFT OUTER JOIN I_FldLogsAggregateDelivQty AS _DeliveryAggrgQty ON DeliveryDocument is not initial AND DeliveryDocument = _DeliveryAggrgQty.DeliveryDocument AND DeliveryDocumentItem = _DeliveryAggrgQty.DeliveryDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_FldLogsOpenPackQty AS _OpenPackQty ON DeliveryDocument is not initial AND DeliveryDocument = _OpenPackQty.DeliveryDocument AND DeliveryDocumentItem = _OpenPackQty.DeliveryDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_FldLogsAggrgdPackedQuantity AS _LogisticsHandlingUnitQuantity ON DeliveryDocument is not initial AND DeliveryDocument = _LogisticsHandlingUnitQuantity.OutboundDelivery AND DeliveryDocumentItem = _LogisticsHandlingUnitQuantity.OutboundDeliveryItem  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _SoldToParty ON _DeliveryItem.SoldToParty = _SoldToParty.Customer  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _ShipToParty ON _DeliveryItem.ShipToParty = _ShipToParty.Customer  -- association [0..1]
LEFT OUTER JOIN I_FldLogsNonEvalMatConfig AS _config ON _PurchasingDocumentItem.Plant = _config.Plant AND _PurchasingDocumentItem.MaterialType = _config.MaterialType  -- association [0..1]
;