I_AllReturnStock
FL - BookStock and ReturnStock
I_AllReturnStock is a Composite CDS View that provides data about "FL - BookStock and ReturnStock" in SAP S/4HANA. It reads from 3 data sources (I_FldLogsBookStockCol, I_FldLogsReturnItem, I_FldLogsSuplrReturnItemEnhcd) and exposes 152 fields with key fields Material, FldLogsRemotePlant, FldLogsReferenceDocumentNumber, ReferenceDocumentItem, FldLogsMaintenanceOrder. Part of development package FLOG_RETURN.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_FldLogsBookStockCol | I_FldLogsBookStockCol | from |
| I_FldLogsReturnItem | I_FldLogsReturnItem | union_all |
| I_FldLogsSuplrReturnItemEnhcd | I_FldLogsSuplrReturnItemEnhcd | union_all |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IALLRETSTOCK | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | FL - BookStock and ReturnStock | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
Fields (152)
| 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 | Order | |
| KEY | RemoteStorageLocation | RemoteStorageLocation | ||
| FldLogsReferenceDocCategory | FldLogsReferenceDocCategory | Ref. Document Type | ||
| FldLogsReturnStatus | FldLogsReturnStatus | |||
| RetblQtyInBaseUnit | MatlWrhsStkQtyOnPlantLvl | |||
| RetblQtyBaseUnit | StockUnit | |||
| RetblQtyInOrderUnit | RetblQtyInOrderUnit | |||
| RetblQtyOrderUnit | RetblQtyOrderUnit | |||
| LoadingQtyInOrderUnit | LoadingQtyInOrderUnit | |||
| DispatchedStartDate | DispatchedStartDate | Dispatch Date | ||
| SupplyingStorageLocation | SupplyingStorageLocation | Location | ||
| RequestedShippingDate | RequestedShippingDate | |||
| RequestedShippingTime | RequestedShippingTime | |||
| FldLogsRecommendedAction | _DefaultQuickAction | FldLogsRecommendedAction | Recommended Action | |
| FldLogsSupplyProcess | FldLogsSupplyProcess | Supply Process | ||
| ReferenceOrder | ReferenceOrder | Reference Order | ||
| ReferencePurchasingDocument | ReferencePurchasingDocument | Purchasing Doc. | ||
| FldLogsContainerID | FldLogsContainerID | Container ID | ||
| InventoryUsabilityCode | InventoryUsabilityCode | Stock Type | ||
| FldLogsItemType | FldLogsItemType | |||
| Batch | Batch | Lot No. | ||
| ValuationType | ValuationType | Valuation Type | ||
| SerialNumber | SerialNumber | Serial Number | ||
| ReturnRecordCreationDateTime | ReturnRecordCreationDateTime | |||
| ReturnRecordChangeDateTime | ReturnRecordChangeDateTime | |||
| FieldLogisticsTransferPlant | FieldLogisticsTransferPlant | Plant | ||
| FldLogsSuplrItemUUID | FldLogsSuplrItemUUID | Suplr Item UUID | ||
| FldLogsContainerUUID | FldLogsContainerUUID | Container UUID | ||
| FldLogsContainerUnitUUID | FldLogsContainerUnitUUID | Container Unit ID | ||
| FldLogsShptItemUUID | FldLogsShptItemUUID | Shipment Item ID | ||
| FldLogsRetOutbDelivIsCreated | FldLogsRetOutbDelivIsCreated | Checkbox | ||
| FieldLogisticsStorageBin | Storage Bin | |||
| FldLogsTransferType | Transfer Type | |||
| OutboundDelivery | Reference Doc Number | |||
| OutboundDeliveryItem | Reference item | |||
| FldLogsRefurbishmentOrder | FldLogsRefurbishmentOrder | Order | ||
| PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | ||
| EWMWarehouse | Warehouse No. | |||
| InboundDelivery | LE Delivery | |||
| InboundDeliveryItem | Item | |||
| MaterialDocument | Material Doc. | |||
| MaterialDocumentItem | Material Document Item | |||
| Reservation | Reservation | |||
| ReservationItem | Reservation Item | |||
| IsMarkedForDeletion | Purch.org. data | |||
| FldLogsVoyageDestStage | Destination Stage | |||
| OrderOperation | Operation or Phase | |||
| KEY | FldLogsRemotePlant | FldLogsRemotePlant | Plant | |
| KEY | FldLogsReferenceDocumentNumber | FldLogsReferenceDocumentNumber | Reference Doc Number | |
| KEY | ReferenceDocumentItem | ReferenceDocumentItem | Reference item | |
| KEY | FldLogsMaintenanceOrder | FldLogsMaintenanceOrder | Order | |
| 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 | |||
| FldLogsRecommendedAction | FldLogsRecommendedAction | Recommended Action | ||
| FldLogsSupplyProcess | FldLogsSupplyProcess | Supply Process | ||
| ReferenceOrder | ReferenceOrder | Reference Order | ||
| ReferencePurchasingDocument | ReferencePurchasingDocument | Purchasing Doc. | ||
| FldLogsContainerID | FldLogsContainerID | Container ID | ||
| InventoryUsabilityCode | InventoryUsabilityCode | Stock Type | ||
| FldLogsItemType | FldLogsItemType | |||
| Batch | Batch | Lot No. | ||
| ValuationType | ValuationType | Valuation Type | ||
| SerialNumber | SerialNumber | Serial Number | ||
| ReturnRecordCreationDateTime | ReturnRecordCreationDateTime | |||
| ReturnRecordChangeDateTime | ReturnRecordChangeDateTime | |||
| FieldLogisticsTransferPlant | FieldLogisticsTransferPlant | Plant | ||
| FldLogsSuplrItemUUID | FldLogsSuplrItemUUID | Suplr Item UUID | ||
| FldLogsContainerUUID | FldLogsContainerUUID | Container UUID | ||
| FldLogsContainerUnitUUID | FldLogsContainerUnitUUID | Container Unit ID | ||
| FldLogsShptItemUUID | FldLogsShptItemUUID | Shipment Item ID | ||
| FldLogsRetOutbDelivIsCreated | FldLogsRetOutbDelivIsCreated | Checkbox | ||
| FieldLogisticsStorageBin | FieldLogisticsStorageBin | Storage Bin | ||
| FldLogsTransferType | Transfer Type | |||
| OutboundDelivery | OutboundDelivery | Reference Doc Number | ||
| OutboundDeliveryItem | OutboundDeliveryItem | Reference item | ||
| FldLogsRefurbishmentOrder | FldLogsRefurbishmentOrder | Order | ||
| PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | ||
| EWMWarehouse | EWMWarehouse | Warehouse No. | ||
| InboundDelivery | InboundDelivery | LE Delivery | ||
| InboundDeliveryItem | InboundDeliveryItem | Item | ||
| MaterialDocument | MaterialDocument | Material Doc. | ||
| MaterialDocumentItem | MaterialDocumentItem | Material Document Item | ||
| Reservation | Reservation | Reservation | ||
| ReservationItem | ReservationItem | Reservation Item | ||
| IsMarkedForDeletion | IsMarkedForDeletion | Purch.org. data | ||
| FldLogsVoyageDestStage | FldLogsVoyageDestStage | Destination Stage | ||
| OrderOperation | OrderOperation | Operation or Phase | ||
| KEY | FldLogsRemotePlant | FldLogsRemotePlant | Plant | |
| KEY | FldLogsReferenceDocumentNumber | FldLogsReferenceDocumentNumber | Reference Doc Number | |
| KEY | ReferenceDocumentItem | ReferenceDocumentItem | Reference item | |
| KEY | FldLogsMaintenanceOrder | FldLogsMaintenanceOrder | Order | |
| 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 | |||
| FldLogsRecommendedAction | FldLogsRecommendedAction | Recommended Action | ||
| FldLogsSupplyProcess | FldLogsSupplyProcess | Supply Process | ||
| ReferenceOrder | ReferenceOrder | Reference Order | ||
| ReferencePurchasingDocument | ReferencePurchasingDocument | Purchasing Doc. | ||
| FldLogsContainerID | FldLogsContainerID | Container ID | ||
| InventoryUsabilityCode | InventoryUsabilityCode | Stock Type | ||
| FldLogsItemType | FldLogsItemType | |||
| Batch | Batch | Lot No. | ||
| ValuationType | ValuationType | Valuation Type | ||
| SerialNumber | SerialNumber | Serial Number | ||
| ReturnRecordCreationDateTime | ReturnRecordCreationDateTime | |||
| ReturnRecordChangeDateTime | ReturnRecordChangeDateTime | |||
| FieldLogisticsTransferPlant | FieldLogisticsTransferPlant | Plant | ||
| FldLogsSuplrItemUUID | FldLogsSuplrItemUUID | Suplr Item UUID | ||
| FldLogsContainerUUID | Container UUID | |||
| FldLogsContainerUnitUUID | Container Unit ID | |||
| FldLogsShptItemUUID | Shipment Item ID | |||
| FldLogsRetOutbDelivIsCreated | Checkbox | |||
| FieldLogisticsStorageBin | Storage Bin | |||
| FldLogsTransferType | FldLogsTransferType | Transfer Type | ||
| OutboundDelivery | Reference Doc Number | |||
| OutboundDeliveryItem | ReferenceDocumentItem | Reference item | ||
| FldLogsRefurbishmentOrder | FldLogsRefurbishmentOrder | Order | ||
| PurchaseOrderItem | Purchasing Document Item | |||
| EWMWarehouse | Warehouse No. | |||
| InboundDelivery | LE Delivery | |||
| InboundDeliveryItem | Item | |||
| MaterialDocument | Material Doc. | |||
| MaterialDocumentItem | Material Document Item | |||
| Reservation | Reservation | |||
| ReservationItem | Reservation Item | |||
| IsMarkedForDeletion | Purch.org. data | |||
| FldLogsVoyageDestStage | Destination Stage | |||
| OrderOperation | Operation or Phase | |||
| BillOfMaterialItemNumber |
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_AllReturnStock.
-- 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: IALLRETSTOCK
CREATE VIEW I_AllReturnStock AS
SELECT
Material,
FldLogsRemotePlant,
FldLogsReferenceDocumentNumber,
ReferenceDocumentItem,
FldLogsMaintenanceOrder,
RemoteStorageLocation,
FldLogsReferenceDocCategory,
FldLogsReturnStatus,
MatlWrhsStkQtyOnPlantLvl AS RetblQtyInBaseUnit,
StockUnit AS RetblQtyBaseUnit,
RetblQtyInOrderUnit,
RetblQtyOrderUnit,
LoadingQtyInOrderUnit,
DispatchedStartDate,
SupplyingStorageLocation,
RequestedShippingDate,
RequestedShippingTime,
_DefaultQuickAction.FldLogsRecommendedAction AS FldLogsRecommendedAction,
FldLogsSupplyProcess,
ReferenceOrder,
ReferencePurchasingDocument,
FldLogsContainerID,
InventoryUsabilityCode,
FldLogsItemType,
Batch,
ValuationType,
SerialNumber,
ReturnRecordCreationDateTime,
ReturnRecordChangeDateTime,
FieldLogisticsTransferPlant,
FldLogsSuplrItemUUID,
FldLogsContainerUUID,
FldLogsContainerUnitUUID,
FldLogsShptItemUUID,
FldLogsRetOutbDelivIsCreated,
' ' AS FieldLogisticsStorageBin,
' ' AS FldLogsTransferType,
cast( '' as vbeln_vl ) AS OutboundDelivery,
'000000' AS OutboundDeliveryItem,
FldLogsRefurbishmentOrder,
PurchaseOrderItem,
' ' AS EWMWarehouse,
' ' AS InboundDelivery,
'000000' AS InboundDeliveryItem,
' ' AS MaterialDocument,
'0000' AS MaterialDocumentItem,
'0000000000' AS Reservation,
'0000' AS ReservationItem,
' ' AS IsMarkedForDeletion,
cast(' ' as flog_deststage) AS FldLogsVoyageDestStage,
cast('' as vdm_vornr ) AS OrderOperation,
cast('' as vdm_sposn) AS BillOfMaterialItemNumber
FROM I_FldLogsBookStockCol
-- UNION ALL with additional select branch(es): I_FldLogsReturnItem, I_FldLogsSuplrReturnItemEnhcd
;
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