I_FldLogsRcvdItmIssToOrdDetail
FL Issue to Order Doc for Rcvd Item
I_FldLogsRcvdItmIssToOrdDetail is a Composite CDS View that provides data about "FL Issue to Order Doc for Rcvd Item" in SAP S/4HANA. It reads from 2 data sources (I_FldLogsRetCtnItemEnhanced, I_FldLogsRetCtnItemEnhanced) and exposes 26 fields with key fields FldLogsReferenceDocumentNumber, MaintenanceOrder, DeliveryDocumentendasReturnsDelivery, MaintenanceOrder, DeliveryDocumentendasReturnsDelivery. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_FldLogsRetCtnItemEnhanced | I_FldLogsRetCtnItemEnhanced | from |
| I_FldLogsRetCtnItemEnhanced | I_FldLogsRetCtnItemEnhanced | union_all |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_FldLogsMatlDocumentByOrder | _GoodsIssue | _GoodsIssue.OrderID = $projection.MaintenanceOrder and _GoodsIssue.Reservation = $projection.Reservation and _GoodsIssue.ReservationItem = $projection.ReservationItem and _GoodsIssue.Plant = $projection.FldLogsItmActualReceivingPlant |
| [0..1] | I_FldLogsRcvdOutboundDelivery | _OutboundDeliveryOrder | _OutboundDeliveryOrder.Reservation = $projection.Reservation and _OutboundDeliveryOrder.ReservationItem = $projection.ReservationItem and _OutboundDeliveryOrder.Plant = $projection.FldLogsItmActualReceivingPlant and _OutboundDeliveryOrder.StorageLocation = $projection.FldLogsDestStorLocID and $projection.Reservation is not initial |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | FL Issue to Order Doc for Rcvd Item | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | FldLogsReferenceDocumentNumber | FldLogsReferenceDocumentNumber | Reference Doc Number | |
| KEY | MaintenanceOrder | MaintenanceOrder | Order | |
| KEY | DeliveryDocumentendasReturnsDelivery | |||
| WarehouseTask | WarehouseTask | Warehouse Task | ||
| Reservation | Reservation | Reservation | ||
| ReservationItem | ReservationItem | Reservation Item | ||
| FldLogsItmActualReceivingPlant | FldLogsItmActualReceivingPlant | Plant | ||
| FldLogsDestStorLocID | FldLogsDestStorLocID | Location | ||
| EWMDelivery | ||||
| EWMDeliveryItem | ||||
| GoodsMovementStatus | _OutboundDeliveryOrder | GoodsMovementStatus | Gds Movemt Status | |
| DeliveryDocument | DeliveryDocument | Outbound Delivery | ||
| DeliveryDocumentItem | DeliveryDocumentItem | Outb. Delivery Item | ||
| KEY | MaintenanceOrder | FldLogsRefurbishmentOrder | Order | |
| KEY | DeliveryDocumentendasReturnsDelivery | |||
| WarehouseTask | WarehouseTask | Warehouse Task | ||
| Reservation | Reservation | Reservation | ||
| ReservationItem | ReservationItem | Reservation Item | ||
| FldLogsItmActualReceivingPlant | FldLogsItmActualReceivingPlant | Plant | ||
| FldLogsDestStorLocID | FldLogsDestStorLocID | Location | ||
| EWMDelivery | ||||
| EWMDeliveryItem | ||||
| GoodsMovementStatus | _OutboundDeliveryOrder | GoodsMovementStatus | Gds Movemt Status | |
| DeliveryDocument | DeliveryDocument | Outbound Delivery | ||
| DeliveryDocumentItem | DeliveryDocumentItem | Outb. Delivery Item | ||
| EWMWarehouse | _WarehouseNumber | EWMWarehouse | Warehouse No. |
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_FldLogsRcvdItmIssToOrdDetail.
-- 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_FldLogsRcvdItmIssToOrdDetail AS
SELECT
FldLogsReferenceDocumentNumber,
MaintenanceOrder,
case when _OutboundDeliveryOrder.DeliveryDocument is null and _GoodsIssue.MaterialDocument is not null then _GoodsIssue.MaterialDocument when _OutboundDeliveryOrder.DeliveryDocument is not null then _OutboundDeliveryOrder.DeliveryDocument end as ReturnsDelivery AS DeliveryDocumentendasReturnsDelivery,
WarehouseTask,
Reservation,
ReservationItem,
FldLogsItmActualReceivingPlant,
FldLogsDestStorLocID,
cast( _OutboundDeliveryOrder.DeliveryDocument as /scdl/dl_docno_int ) AS EWMDelivery,
cast( lpad( _OutboundDeliveryOrder.DeliveryDocumentItem,10,'0') as /scdl/dl_itemno) AS EWMDeliveryItem,
_OutboundDeliveryOrder.GoodsMovementStatus AS GoodsMovementStatus,
DeliveryDocument,
DeliveryDocumentItem,
_WarehouseNumber.EWMWarehouse AS EWMWarehouse
FROM I_FldLogsRetCtnItemEnhanced
LEFT OUTER JOIN I_FldLogsMatlDocumentByOrder AS _GoodsIssue ON _GoodsIssue.OrderID = MaintenanceOrder AND _GoodsIssue.Reservation = Reservation AND _GoodsIssue.ReservationItem = ReservationItem AND _GoodsIssue.Plant = FldLogsItmActualReceivingPlant -- association [0..1]
LEFT OUTER JOIN I_FldLogsRcvdOutboundDelivery AS _OutboundDeliveryOrder ON _OutboundDeliveryOrder.Reservation = Reservation AND _OutboundDeliveryOrder.ReservationItem = ReservationItem AND _OutboundDeliveryOrder.Plant = FldLogsItmActualReceivingPlant AND _OutboundDeliveryOrder.StorageLocation = FldLogsDestStorLocID AND Reservation is not initial -- association [0..1]
-- UNION ALL with additional select branch(es): I_FldLogsRetCtnItemEnhanced
;
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