I_FldLogsPurchasingItem
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 54 fields with key fields PurchasingDocument, PurchasingDocumentItem, DeliveryDocument, DeliveryDocumentItem. It has 13 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_FieldLogisticsPlantAll | _FldLogsAllPlants | inner |
| I_PurchasingDocumentItem | _PurchasingDocumentItem | from |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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 _DeliveryItem.DeliveryDocument = _OpenBlockedItems.DeliveryDocument and _DeliveryItem.DeliveryDocumentItem = _OpenBlockedItems.DeliveryDocumentItem |
| [0..1] | I_FldLogsAggregateReceivedQty | _ReceivedItems | $projection.PurchasingDocument = _ReceivedItems.PurchaseOrder and $projection.PurchasingDocumentItem = _ReceivedItems.PurchaseOrderItem and _DeliveryItem.DeliveryDocument = _ReceivedItems.DeliveryDocument and _DeliveryItem.DeliveryDocumentItem = _ReceivedItems.DeliveryDocumentItem |
| [0..1] | I_FldLogsInbDelivWhseTsk | _FldLogsInbDelivWhseTsk | _DeliveryItem.DistrStatusByDecentralizedWrhs is not initial and $projection.DeliveryDocumentItem = _FldLogsInbDelivWhseTsk.DeliveryDocumentItem and _DeliveryItem.DeliveryDocument = _FldLogsInbDelivWhseTsk.DeliveryDocument |
| [0..1] | I_FldLogsAggregateDelivQty | _DeliveryAggrgQty | _DeliveryItem.DeliveryDocument is not initial and _DeliveryItem.DeliveryDocument = _DeliveryAggrgQty.DeliveryDocument and $projection.DeliveryDocumentItem = _DeliveryAggrgQty.DeliveryDocumentItem |
| [0..1] | I_FldLogsOpenPackQty | _OpenPackQty | _DeliveryItem.DeliveryDocument is not initial and _DeliveryItem.DeliveryDocument = _OpenPackQty.DeliveryDocument and $projection.DeliveryDocumentItem = _OpenPackQty.DeliveryDocumentItem |
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 (54)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | ||
| FldLogsBlockedQty | ||||
| FldLogsTotalReceivedQty | ||||
| 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 | |
| ActualDeliveryQuantity | _DeliveryItem | ActualDeliveryQuantity | Base quantity | |
| InventoryValuationType | ||||
| FldLogsStatus | _DeliveryItem | FldLogsStatus | FL Process Status | |
| DistrStatusByDecentralizedWrhs | _DeliveryItem | DistrStatusByDecentralizedWrhs | ||
| DeliveryDocumentBySupplier | _DeliveryItem | DeliveryDocumentBySupplier | ||
| LoadingPoint | _DeliveryItem | LoadingPoint | Loading Point | |
| UnloadingPointName | _DeliveryItem | UnloadingPointName | Unloading Point Name | |
| PickingStatus | _DeliveryItem | PickingStatus | Status Value | |
| IsToBeAcceptedAtOrigin | ||||
| PurchasingDocumentItemCategory | I_PurchasingDocumentItem | PurchasingDocumentItemCategory | Item Category | |
| IsEndOfPurposeBlocked | ||||
| IsBusinessPurposeCompleted | _ShipToParty | IsBusinessPurposeCompleted | Purpose Completed | |
| IsBusPrpsCmpltdCustomer | _SoldToParty | IsBusinessPurposeCompleted | Purpose Completed | |
| SuplrCoIsBusPrpsCmpltd | ||||
| _FldLogsInbDelivWhseTsk | _FldLogsInbDelivWhseTsk | |||
| MaterialType | _MaterialDetails | MaterialType | Material Type | |
| _OpenPackQty | _OpenPackQty | |||
| _DeliveryAggrgQty | _DeliveryAggrgQty |
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,
coalesce( _DeliveryItem.DeliveryDocument, ' ') 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,
cast( coalesce( _OpenBlockedItems.FldLogsBlockedQty, 0 ) as lfimg ) AS FldLogsBlockedQty,
cast( coalesce( _ReceivedItems.FldLogsTotalReceivedQty, 0 ) as lfimg ) AS FldLogsTotalReceivedQty,
_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.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.UnloadingPointName AS UnloadingPointName,
_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,
_DeliveryItem._Supplier.IsBusinessPurposeCompleted AS SuplrCoIsBusPrpsCmpltd,
_MaterialDetails.MaterialType AS MaterialType
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 _DeliveryItem.DeliveryDocument = _OpenBlockedItems.DeliveryDocument AND _DeliveryItem.DeliveryDocumentItem = _OpenBlockedItems.DeliveryDocumentItem -- association [0..1]
LEFT OUTER JOIN I_FldLogsAggregateReceivedQty AS _ReceivedItems ON PurchasingDocument = _ReceivedItems.PurchaseOrder AND PurchasingDocumentItem = _ReceivedItems.PurchaseOrderItem AND _DeliveryItem.DeliveryDocument = _ReceivedItems.DeliveryDocument AND _DeliveryItem.DeliveryDocumentItem = _ReceivedItems.DeliveryDocumentItem -- association [0..1]
LEFT OUTER JOIN I_FldLogsInbDelivWhseTsk AS _FldLogsInbDelivWhseTsk ON _DeliveryItem.DistrStatusByDecentralizedWrhs is not initial AND DeliveryDocumentItem = _FldLogsInbDelivWhseTsk.DeliveryDocumentItem AND _DeliveryItem.DeliveryDocument = _FldLogsInbDelivWhseTsk.DeliveryDocument -- association [0..1]
LEFT OUTER JOIN I_FldLogsAggregateDelivQty AS _DeliveryAggrgQty ON _DeliveryItem.DeliveryDocument is not initial AND _DeliveryItem.DeliveryDocument = _DeliveryAggrgQty.DeliveryDocument AND DeliveryDocumentItem = _DeliveryAggrgQty.DeliveryDocumentItem -- association [0..1]
LEFT OUTER JOIN I_FldLogsOpenPackQty AS _OpenPackQty ON _DeliveryItem.DeliveryDocument is not initial AND _DeliveryItem.DeliveryDocument = _OpenPackQty.DeliveryDocument AND DeliveryDocumentItem = _OpenPackQty.DeliveryDocumentItem -- 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA