I_FldLogsStockTransportOrder

DDL: I_FLDLOGSSTOCKTRANSPORTORDER Type: view_entity COMPOSITE Package: ODATA_FLOG_PROCESS_RECEIPTS

Field Logistics Stock Transport Orders

I_FldLogsStockTransportOrder is a Composite CDS View that provides data about "Field Logistics Stock Transport Orders" in SAP S/4HANA. It reads from 2 data sources (I_MaterialDocumentItem, I_FldLogsPurchasingDocItem) and exposes 14 fields with key fields PurchasingDocument, PurchasingDocumentItem, MaterialDocument, MaterialDocumentItem, MaterialDocumentYear. It has 1 association to related views. Part of development package ODATA_FLOG_PROCESS_RECEIPTS.

Data Sources (2)

SourceAliasJoin Type
I_MaterialDocumentItem _MaterialDocumentRecord inner
I_FldLogsPurchasingDocItem _PO from

Associations (1)

CardinalityTargetAliasCondition
[1] I_Plant _SupplyingPlantName _SupplyingPlantName.Plant = _PO.Plant and _SupplyingPlantName.Language = $session.system_language

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #COMPOSITE view
EndUserText.label Field Logistics Stock Transport Orders view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument I_FldLogsPurchasingDocItem PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem I_FldLogsPurchasingDocItem PurchasingDocumentItem Purchasing Doc. Item
KEY MaterialDocument I_MaterialDocumentItem MaterialDocument Material Doc.
KEY MaterialDocumentItem I_MaterialDocumentItem MaterialDocumentItem Material Document Item
KEY MaterialDocumentYear I_MaterialDocumentItem MaterialDocumentYear Material Document Year
KEY StockTransportOrder
KEY StockTransportOrderItem
OrderQuantity
OrderQuantityUnit
ReceivingPlant
ReceivingPlantName
SupplyingPlant I_FldLogsPurchasingDocItem Plant Valuation Area
SupplyingPlantName _SupplyingPlantName PlantName Plant Name
IsEndOfPurposeBlocked I_FldLogsPurchasingDocItem IsEndOfPurposeBlocked Busin. Purp. Cmpltd.

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_FldLogsStockTransportOrder.
-- 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_FldLogsStockTransportOrder AS
SELECT
  _PO.PurchasingDocument AS PurchasingDocument,
  _PO.PurchasingDocumentItem AS PurchasingDocumentItem,
  _MaterialDocumentRecord.MaterialDocument AS MaterialDocument,
  _MaterialDocumentRecord.MaterialDocumentItem AS MaterialDocumentItem,
  _MaterialDocumentRecord.MaterialDocumentYear AS MaterialDocumentYear,
  coalesce(_Doclinks.StockTransportOrder,_StockAtRemote.StockTransportOrder) AS StockTransportOrder,
  coalesce(_Doclinks.StockTransportOrderItem,_StockAtRemote.StockTransportOrderItem) AS StockTransportOrderItem,
  coalesce(_Doclinks.OrderQuantity,_StockAtRemote.OrderQuantity) AS OrderQuantity,
  coalesce(_Doclinks.OrderQuantityUnit,_StockAtRemote.OrderQuantityUnit) AS OrderQuantityUnit,
  coalesce(_Doclinks.Plant,_StockAtRemote.Plant) AS ReceivingPlant,
  coalesce(_Doclinks.PlantName,_StockAtRemote.PlantName) AS ReceivingPlantName,
  _PO.Plant AS SupplyingPlant,
  _SupplyingPlantName.PlantName AS SupplyingPlantName,
  _PO.IsEndOfPurposeBlocked AS IsEndOfPurposeBlocked
FROM I_FldLogsPurchasingDocItem AS _PO
INNER JOIN I_MaterialDocumentItem AS _MaterialDocumentRecord ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Plant AS _SupplyingPlantName ON _SupplyingPlantName.Plant = _PO.Plant AND _SupplyingPlantName.Language = $session.system_language  -- association [1]
;