I_FldLogsRcvdHndlgUntIssOrdDet

DDL: I_FLDLOGSRCVDHNDLGUNTISSORDDET Type: view_entity COMPOSITE Package: FLOG_RETURN_PROCG_BASE

FL Issue to Order Doc for Rcvd HndlgUnit Item

I_FldLogsRcvdHndlgUntIssOrdDet is a Composite CDS View that provides data about "FL Issue to Order Doc for Rcvd HndlgUnit Item" in SAP S/4HANA. It reads from 2 data sources (I_FldLogsRcvdHndlgUntItmEnhcd, I_FldLogsRcvdHndlgUntItmEnhcd) and exposes 28 fields with key fields FldLogsReferenceDocumentNumber, FldLogsShptItmHndlgUnitID, MaintenanceOrder, DeliveryDocumentendasReturnsDelivery, FldLogsShptItmHndlgUnitID. It has 2 associations to related views. Part of development package FLOG_RETURN_PROCG_BASE.

Data Sources (2)

SourceAliasJoin Type
I_FldLogsRcvdHndlgUntItmEnhcd I_FldLogsRcvdHndlgUntItmEnhcd from
I_FldLogsRcvdHndlgUntItmEnhcd I_FldLogsRcvdHndlgUntItmEnhcd union_all

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_MaterialDocumentRecord _GoodsIssue _GoodsIssue.OrderID = $projection.MaintenanceOrder and _GoodsIssue.Reservation = $projection.Reservation and _GoodsIssue.ReservationItem = $projection.ReservationItem and _GoodsIssue.Plant = $projection.FieldLogisticsReceivingPlant and _GoodsIssue.StorageLocation = $projection.FldLogsDestStorLocID
[0..1] I_FldLogsRcvdOutboundDelivery _OutboundDeliveryOrder _OutboundDeliveryOrder.OrderID = $projection.MaintenanceOrder and _OutboundDeliveryOrder.Reservation = $projection.Reservation and _OutboundDeliveryOrder.ReservationItem = $projection.ReservationItem and _OutboundDeliveryOrder.Plant = $projection.FieldLogisticsReceivingPlant and _OutboundDeliveryOrder.StorageLocation = $projection.FldLogsDestStorLocID

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label FL Issue to Order Doc for Rcvd HndlgUnit 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 (28)

KeyFieldSource TableSource FieldDescription
KEY FldLogsReferenceDocumentNumber FldLogsReferenceDocumentNumber Reference Doc Number
KEY FldLogsShptItmHndlgUnitID FldLogsShptItmHndlgUnitID Handling Unit ID
KEY MaintenanceOrder MaintenanceOrder Order
KEY DeliveryDocumentendasReturnsDelivery
WarehouseTask WarehouseTask Warehouse Task
Reservation Reservation Reservation
ReservationItem ReservationItem Reservation Item
FieldLogisticsReceivingPlant FieldLogisticsReceivingPlant
FldLogsDestStorLocID FldLogsDestStorLocID Location
EWMDelivery
EWMDeliveryItem
GoodsMovementStatus _OutboundDeliveryOrder GoodsMovementStatus Gds Movemt Status
DeliveryDocument DeliveryDocument Outbound Delivery
DeliveryDocumentItem DeliveryDocumentItem Outb. Delivery Item
KEY FldLogsShptItmHndlgUnitID FldLogsShptItmHndlgUnitID Handling Unit ID
KEY MaintenanceOrder FldLogsRefurbishmentOrder Order
KEY DeliveryDocumentendasReturnsDelivery
WarehouseTask WarehouseTask Warehouse Task
Reservation Reservation Reservation
ReservationItem ReservationItem Reservation Item
FieldLogisticsReceivingPlant FieldLogisticsReceivingPlant
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_FldLogsRcvdHndlgUntIssOrdDet.
-- 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_FldLogsRcvdHndlgUntIssOrdDet AS
SELECT
  FldLogsReferenceDocumentNumber,
  FldLogsShptItmHndlgUnitID,
  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,
  FieldLogisticsReceivingPlant,
  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_FldLogsRcvdHndlgUntItmEnhcd
LEFT OUTER JOIN I_MaterialDocumentRecord AS _GoodsIssue ON _GoodsIssue.OrderID = MaintenanceOrder AND _GoodsIssue.Reservation = Reservation AND _GoodsIssue.ReservationItem = ReservationItem AND _GoodsIssue.Plant = FieldLogisticsReceivingPlant AND _GoodsIssue.StorageLocation = FldLogsDestStorLocID  -- association [0..1]
LEFT OUTER JOIN I_FldLogsRcvdOutboundDelivery AS _OutboundDeliveryOrder ON _OutboundDeliveryOrder.OrderID = MaintenanceOrder AND _OutboundDeliveryOrder.Reservation = Reservation AND _OutboundDeliveryOrder.ReservationItem = ReservationItem AND _OutboundDeliveryOrder.Plant = FieldLogisticsReceivingPlant AND _OutboundDeliveryOrder.StorageLocation = FldLogsDestStorLocID  -- association [0..1]
-- UNION ALL with additional select branch(es): I_FldLogsRcvdHndlgUntItmEnhcd
;