I_FldLogsStockTP
FL - Return Items
I_FldLogsStockTP is a Transactional CDS View that provides data about "FL - Return Items" in SAP S/4HANA. It reads from 1 data source (I_NetReturnStock) and exposes 79 fields with key fields Material, FldLogsRemotePlant, FldLogsReferenceDocumentNumber, ReferenceDocumentItem, FldLogsMaintenanceOrder. It has 17 associations to related views. Part of development package FLOG_RETURN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_NetReturnStock | _NetStock | from |
Associations (17)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_FldLogsSupplyProcessText | _SprocText | $projection.FldLogsSupplyProcess = _SprocText.FldLogsSupplyProcess |
| [0..1] | I_FldLogsMaterialText | _MatText | $projection.Material = _MatText.Material and $projection.FldLogsSuplrItemUUID = _MatText.FldLogsSuplrItemUUID |
| [0..*] | I_FldLogsReturnStatusT | _RetStatText | $projection.FldLogsReturnStatus = _RetStatText.FldLogsReturnStatus |
| [0..*] | I_RecommendedActionText | _ActionText | $projection.FldLogsRecommendedAction = _ActionText.FldLogsRecommendedAction |
| [0..1] | I_FldLogsReturnComment | _RetComments | $projection.Material = _RetComments.Material and $projection.FldLogsRemotePlant = _RetComments.FldLogsRemotePlant and $projection.FldLogsReferenceDocumentNumber = _RetComments.FldLogsReferenceDocumentNumber and $projection.ReferenceDocumentItem = _RetComments.ReferenceDocumentItem and $projection.FldLogsMaintenanceOrder = _RetComments.FldLogsMaintenanceOrder and $projection.RemoteStorageLocation = _RetComments.RemoteStorageLocation |
| [0..1] | I_FldLogsRefDocTypeT | _RefDocTypeText | $projection.FldLogsReferenceDocCategory = _RefDocTypeText.FldLogsReferenceDocCategory |
| [0..1] | I_FldLogsProdResvnQuantityCalc | _ReservationQty | $projection.Material = _ReservationQty.Material and $projection.FldLogsRemotePlant = _ReservationQty.FldLogsRemotePlant and $projection.FldLogsReferenceDocumentNumber = _ReservationQty.FldLogsReferenceDocumentNumber and $projection.RemoteStorageLocation = _ReservationQty.RemoteStorageLocation and $projection.FldLogsMaintenanceOrder = _ReservationQty.FldLogsMaintenanceOrder and $projection.ReferenceDocumentItem = _ReservationQty.ReferenceDocumentItem |
| [0..*] | I_FldLogsSuplrItmPackggTypeT | _SuplrItmPackggTypeT | $projection.FldLogsSuplrItmPackggTypeCode = _SuplrItmPackggTypeT.FldLogsSuplrItmPackggTypeCode |
| [0..1] | I_Plant | _PlantText | $projection.FldLogsRemotePlant = _PlantText.Plant |
| [0..1] | I_StorageLocation | _RemoteStorageLocationText | $projection.RemoteStorageLocation = _RemoteStorageLocationText.StorageLocation and $projection.FldLogsRemotePlant = _RemoteStorageLocationText.Plant |
| [0..1] | I_StorageLocation | _SupplyingStorageLocationText | $projection.SupplyingStorageLocation = _SupplyingStorageLocationText.StorageLocation and $projection.SupplyingPlant = _SupplyingStorageLocationText.Plant |
| [0..1] | I_FldLogsSupplierItem | _SupplierItem | $projection.FldLogsSuplrItemUUID = _SupplierItem.FldLogsSuplrItemUUID |
| [1..1] | E_FieldLogisticsReturns | _ReturnsExtension | $projection.Material = _ReturnsExtension.Material and $projection.FldLogsRemotePlant = _ReturnsExtension.FldLogsRemotePlant and $projection.FldLogsReferenceDocumentNumber = _ReturnsExtension.FldLogsReferenceDocumentNumber and $projection.ReferenceDocumentItem = _ReturnsExtension.ReferenceDocumentItem and $projection.FldLogsMaintenanceOrder = _ReturnsExtension.FldLogsMaintenanceOrder and $projection.RemoteStorageLocation = _ReturnsExtension.RemoteStorageLocation |
| [0..*] | I_FldLogsRetStockTypeText | _StockTypeText | $projection.InventoryUsabilityCode = _StockTypeText.InventoryUsabilityCode |
| [1..1] | I_FieldLogisticsStorageBin | _StorageBin | $projection.Material = _StorageBin.Material and $projection.FldLogsRemotePlant = _StorageBin.Plant and $projection.RemoteStorageLocation = _StorageBin.StorageLocation |
| [1..*] | R_FldLogsSerialItemsTP | _SerialNo | |
| [1..*] | R_FldLogsReturnsHandlingUnitTP | _HandlingUnit | |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | FL - Return Items | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.sapObjectNodeType.name | FieldLogisticsReturns | view | |
| AbapCatalog.extensibility.extensible | true | view | |
| AbapCatalog.extensibility.allowNewCompositions | true | view | |
| AbapCatalog.extensibility.allowNewDatasources | false | view | |
| AbapCatalog.extensibility.quota.maximumFields | 816 | view | |
| AbapCatalog.extensibility.quota.maximumBytes | 8160 | view | |
| AbapCatalog.extensibility.elementSuffix | IRP | view |
Fields (79)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | Material | Vehicle Model | |
| KEY | FldLogsRemotePlant | FldLogsRemotePlant | Plant | |
| KEY | FldLogsReferenceDocumentNumber | FldLogsReferenceDocumentNumber | Reference Doc Number | |
| KEY | ReferenceDocumentItem | ReferenceDocumentItem | Reference item | |
| KEY | FldLogsMaintenanceOrder | FldLogsMaintenanceOrder | ||
| KEY | RemoteStorageLocation | RemoteStorageLocation | ||
| FldLogsReferenceDocCategory | FldLogsReferenceDocCategory | Ref. Document Type | ||
| FldLogsReturnStatus | FldLogsReturnStatus | |||
| RetblQtyInBaseUnit | RetblQtyInBaseUnit | |||
| RetblQtyBaseUnit | RetblQtyBaseUnit | |||
| RetblQtyInOrderUnit | RetblQtyInOrderUnit | |||
| RetblQtyOrderUnit | RetblQtyOrderUnit | |||
| LoadingQtyInOrderUnit | LoadingQtyInOrderUnit | |||
| DispatchedStartDate | DispatchedStartDate | Dispatch Date | ||
| SupplyingStorageLocation | SupplyingStorageLocation | Location | ||
| RequestedShippingDate | RequestedShippingDate | |||
| RequestedShippingTime | RequestedShippingTime | |||
| ReturnRecordCreationDateTime | ReturnRecordCreationDateTime | |||
| ReturnRecordChangeDateTime | ReturnRecordChangeDateTime | |||
| FieldLogisticsTransferPlant | I_NetReturnStock | FieldLogisticsTransferPlant | Plant | |
| FldLogsSupplyProcess | FldLogsSupplyProcess | Supply Process | ||
| ReferenceOrder | ReferenceOrder | Reference Order | ||
| ReferencePurchasingDocument | ReferencePurchasingDocument | Purchasing Doc. | ||
| FldLogsContainerID | FldLogsContainerID | Container ID | ||
| FldLogsTranspContainerID | FldLogsContainerID | Container ID | ||
| InventoryUsabilityCode | InventoryUsabilityCode | Stock Type | ||
| FldLogsItemType | FldLogsItemType | |||
| FldLogsSuplrItmPackggTypeCode | _SupplierItem | FldLogsSuplrItmPackggTypeCode | Packaging Type | |
| Batch | Batch | Lot No. | ||
| ValuationType | ValuationType | Valuation Type | ||
| SerialNumber | SerialNumber | Serial Number | ||
| MaterialMinSftyStockQuantity | MaterialMinSftyStockQuantity | Min. Saf. Stock | ||
| FldLogsRecommendedAction | FldLogsRecommendedAction | Recommended Action | ||
| OutboundDelivery | LE Delivery | |||
| OutboundDeliveryItem | OutboundDeliveryItem | Logistics Execution Delivery Item | ||
| EWMMovingHandlingUnitNumber | ||||
| IsInternalBatchManaged | IsInternalBatchManaged | Batches | ||
| FldLogsSuplrItemUUID | FldLogsSuplrItemUUID | Suplr Item UUID | ||
| FldLogsContainerUUID | FldLogsContainerUUID | Container UUID | ||
| FldLogsShptItemUUID | FldLogsShptItemUUID | Shipment Item ID | ||
| FldLogsContainerUnitUUID | FldLogsContainerUnitUUID | Container Unit ID | ||
| FieldLogisticsStorageBin | FieldLogisticsStorageBin | Storage Bin | ||
| FldLogsTransferType | FldLogsTransferType | Transfer Type | ||
| FldLogsReturnComment | _RetComments | FldLogsReturnComment | ||
| QuantityUnit | _ReservationQty | QuantityUnit | Unit of measure | |
| ResvnItmTotalRequiredQty | ||||
| ResvnItmTotalWithdrawnQty | _ReservationQty | ResvnItmTotalWithdrawnQty | ||
| SupplyingPlant | _SupplyingPlant | SupplierPlant | Plant | |
| IsMarkedForDeletion | IsMarkedForDeletion | Purch.org. data | ||
| FldLogsRefurbishmentOrder | FldLogsRefurbishmentOrder | Order | ||
| PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | ||
| ReferenceDocumentLongNumber | ||||
| EWMWarehouse | EWMWarehouse | Warehouse No. | ||
| InboundDelivery | InboundDelivery | LE Delivery | ||
| InboundDeliveryItem | InboundDeliveryItem | Item | ||
| MaterialDocument | MaterialDocument | Material Doc. | ||
| MaterialDocumentItem | MaterialDocumentItem | Material Document Item | ||
| HandlingUnitExternalID | ||||
| WBSElementExternalID | ||||
| Reservation | Reservation | Reservation | ||
| ReservationItem | ReservationItem | Reservation Item | ||
| WarehouseStorageBin | _StorageBin | WarehouseStorageBin | Storage Bin | |
| FldLogsVoyageDestStage | FldLogsVoyageDestStage | Destination Stage | ||
| OrderOperation | OrderOperation | Operation or Phase | ||
| BillOfMaterialItemNumber | BillOfMaterialItemNumber | Item | ||
| _MatText | _MatText | |||
| _RetStatText | _RetStatText | |||
| _ActionText | _ActionText | |||
| _SprocText | _SprocText | |||
| _SuplrItmPackggTypeT | _SuplrItmPackggTypeT | |||
| _SerialNo | _SerialNo | |||
| _HandlingUnit | _HandlingUnit | |||
| _PlantText | _PlantText | |||
| _RemoteStorageLocationText | _RemoteStorageLocationText | |||
| _SupplyingStorageLocationText | _SupplyingStorageLocationText | |||
| _RefDocTypeText | _RefDocTypeText | |||
| _BaseUnitOfMaterial | _ReservationQty | _BaseUnitOfMaterial | ||
| _SupplierItem | _SupplierItem | |||
| _StockTypeText | _StockTypeText |
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_FldLogsStockTP.
-- 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_FldLogsStockTP AS
SELECT
Material,
FldLogsRemotePlant,
FldLogsReferenceDocumentNumber,
ReferenceDocumentItem,
FldLogsMaintenanceOrder,
RemoteStorageLocation,
FldLogsReferenceDocCategory,
FldLogsReturnStatus,
RetblQtyInBaseUnit,
RetblQtyBaseUnit,
RetblQtyInOrderUnit,
RetblQtyOrderUnit,
LoadingQtyInOrderUnit,
DispatchedStartDate,
SupplyingStorageLocation,
RequestedShippingDate,
RequestedShippingTime,
ReturnRecordCreationDateTime,
ReturnRecordChangeDateTime,
_NetStock.FieldLogisticsTransferPlant AS FieldLogisticsTransferPlant,
FldLogsSupplyProcess,
ReferenceOrder,
ReferencePurchasingDocument,
FldLogsContainerID,
FldLogsContainerID AS FldLogsTranspContainerID,
InventoryUsabilityCode,
FldLogsItemType,
_SupplierItem.FldLogsSuplrItmPackggTypeCode AS FldLogsSuplrItmPackggTypeCode,
Batch,
ValuationType,
SerialNumber,
MaterialMinSftyStockQuantity,
FldLogsRecommendedAction,
cast( OutboundDelivery as outbound_delivery) AS OutboundDelivery,
OutboundDeliveryItem,
cast('' as exidv ) AS EWMMovingHandlingUnitNumber,
IsInternalBatchManaged,
FldLogsSuplrItemUUID,
FldLogsContainerUUID,
FldLogsShptItemUUID,
FldLogsContainerUnitUUID,
FieldLogisticsStorageBin,
FldLogsTransferType,
_RetComments.FldLogsReturnComment AS FldLogsReturnComment,
_ReservationQty.QuantityUnit AS QuantityUnit,
( _ReservationQty.ResvnItmTotalRequiredQty - _ReservationQty.ResvnItmTotalWithdrawnQty ) AS ResvnItmTotalRequiredQty,
_ReservationQty.ResvnItmTotalWithdrawnQty AS ResvnItmTotalWithdrawnQty,
_SupplyingPlant.SupplierPlant AS SupplyingPlant,
IsMarkedForDeletion,
FldLogsRefurbishmentOrder,
PurchaseOrderItem,
cast(lpad(FldLogsReferenceDocumentNumber,20,'0') as char20) AS ReferenceDocumentLongNumber,
EWMWarehouse,
InboundDelivery,
InboundDeliveryItem,
MaterialDocument,
MaterialDocumentItem,
cast('' as exidv ) AS HandlingUnitExternalID,
cast('' as ps_s4_posid) AS WBSElementExternalID,
Reservation,
ReservationItem,
_StorageBin.WarehouseStorageBin AS WarehouseStorageBin,
FldLogsVoyageDestStage,
OrderOperation,
BillOfMaterialItemNumber,
_ReservationQty._BaseUnitOfMaterial AS _BaseUnitOfMaterial
FROM I_NetReturnStock AS _NetStock
LEFT OUTER JOIN I_FldLogsSupplyProcessText AS _SprocText ON FldLogsSupplyProcess = _SprocText.FldLogsSupplyProcess -- association [0..*]
LEFT OUTER JOIN I_FldLogsMaterialText AS _MatText ON Material = _MatText.Material AND FldLogsSuplrItemUUID = _MatText.FldLogsSuplrItemUUID -- association [0..1]
LEFT OUTER JOIN I_FldLogsReturnStatusT AS _RetStatText ON FldLogsReturnStatus = _RetStatText.FldLogsReturnStatus -- association [0..*]
LEFT OUTER JOIN I_RecommendedActionText AS _ActionText ON FldLogsRecommendedAction = _ActionText.FldLogsRecommendedAction -- association [0..*]
LEFT OUTER JOIN I_FldLogsReturnComment AS _RetComments ON Material = _RetComments.Material AND FldLogsRemotePlant = _RetComments.FldLogsRemotePlant AND FldLogsReferenceDocumentNumber = _RetComments.FldLogsReferenceDocumentNumber AND ReferenceDocumentItem = _RetComments.ReferenceDocumentItem AND FldLogsMaintenanceOrder = _RetComments.FldLogsMaintenanceOrder AND RemoteStorageLocation = _RetComments.RemoteStorageLocation -- association [0..1]
LEFT OUTER JOIN I_FldLogsRefDocTypeT AS _RefDocTypeText ON FldLogsReferenceDocCategory = _RefDocTypeText.FldLogsReferenceDocCategory -- association [0..1]
LEFT OUTER JOIN I_FldLogsProdResvnQuantityCalc AS _ReservationQty ON Material = _ReservationQty.Material AND FldLogsRemotePlant = _ReservationQty.FldLogsRemotePlant AND FldLogsReferenceDocumentNumber = _ReservationQty.FldLogsReferenceDocumentNumber AND RemoteStorageLocation = _ReservationQty.RemoteStorageLocation AND FldLogsMaintenanceOrder = _ReservationQty.FldLogsMaintenanceOrder AND ReferenceDocumentItem = _ReservationQty.ReferenceDocumentItem -- association [0..1]
LEFT OUTER JOIN I_FldLogsSuplrItmPackggTypeT AS _SuplrItmPackggTypeT ON FldLogsSuplrItmPackggTypeCode = _SuplrItmPackggTypeT.FldLogsSuplrItmPackggTypeCode -- association [0..*]
LEFT OUTER JOIN I_Plant AS _PlantText ON FldLogsRemotePlant = _PlantText.Plant -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _RemoteStorageLocationText ON RemoteStorageLocation = _RemoteStorageLocationText.StorageLocation AND FldLogsRemotePlant = _RemoteStorageLocationText.Plant -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _SupplyingStorageLocationText ON SupplyingStorageLocation = _SupplyingStorageLocationText.StorageLocation AND SupplyingPlant = _SupplyingStorageLocationText.Plant -- association [0..1]
LEFT OUTER JOIN I_FldLogsSupplierItem AS _SupplierItem ON FldLogsSuplrItemUUID = _SupplierItem.FldLogsSuplrItemUUID -- association [0..1]
LEFT OUTER JOIN E_FieldLogisticsReturns AS _ReturnsExtension ON Material = _ReturnsExtension.Material AND FldLogsRemotePlant = _ReturnsExtension.FldLogsRemotePlant AND FldLogsReferenceDocumentNumber = _ReturnsExtension.FldLogsReferenceDocumentNumber AND ReferenceDocumentItem = _ReturnsExtension.ReferenceDocumentItem AND FldLogsMaintenanceOrder = _ReturnsExtension.FldLogsMaintenanceOrder AND RemoteStorageLocation = _ReturnsExtension.RemoteStorageLocation -- association [1..1]
LEFT OUTER JOIN I_FldLogsRetStockTypeText AS _StockTypeText ON InventoryUsabilityCode = _StockTypeText.InventoryUsabilityCode -- association [0..*]
LEFT OUTER JOIN I_FieldLogisticsStorageBin AS _StorageBin ON Material = _StorageBin.Material AND FldLogsRemotePlant = _StorageBin.Plant AND RemoteStorageLocation = _StorageBin.StorageLocation -- association [1..1]
LEFT OUTER JOIN R_FldLogsSerialItemsTP AS _SerialNo ON /* condition not available in parsed metadata */ -- association [1..*]
LEFT OUTER JOIN R_FldLogsReturnsHandlingUnitTP AS _HandlingUnit ON /* condition not available in parsed metadata */ -- association [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