I_FldLogsBookStockCol

DDL: I_FLDLOGSBOOKSTOCKCOL SQL: IFLBOOKSTOCKCOL Type: view COMPOSITE Package: FLOG_RETURN

FL Init Returns Stock With Added Cols

I_FldLogsBookStockCol is a Composite CDS View that provides data about "FL Init Returns Stock With Added Cols" in SAP S/4HANA. It reads from 1 data source (I_FldLogsBookStock) and exposes 38 fields with key fields Material, FldLogsRemotePlant, RemoteStorageLocation. It has 3 associations to related views. Part of development package FLOG_RETURN.

Data Sources (1)

SourceAliasJoin Type
I_FldLogsBookStock I_FldLogsBookStock from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_FldLogsSupplyProcess _SupplyProcess $projection.Material = _SupplyProcess.Material and $projection.FldLogsRemotePlant = _SupplyProcess.Plant
[0..1] I_FldLogsDefaultQuickAction _DefaultQuickAction $projection.FldLogsSupplyProcess = _DefaultQuickAction.FldLogsSupplyProcess and _DefaultQuickAction.FieldLogisticsProcessType = '20'
[0..1] I_FldLogsUserPlant _SupplyingPlant $projection.FldLogsRemotePlant = _SupplyingPlant.FldLogsRemotePlant

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName IFLBOOKSTOCKCOL view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label FL Init Returns Stock With Added Cols view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY FldLogsRemotePlant FldLogsRemotePlant Plant
KEY RemoteStorageLocation RemoteStorageLocation Stor. Location SID
MatlWrhsStkQtyOnPlantLvl MatlWrhsStkQtyOnPlantLvl
StockUnit StockUnit Valuation Unit
RetblQtyInOrderUnit
RetblQtyOrderUnit
LoadingQtyInOrderUnit
FldLogsReferenceDocumentNumber
ReferenceDocumentItem
FldLogsReferenceDocCategory
FldLogsReturnStatus
FldLogsMaintenanceOrder
DispatchedStartDate
SupplyingStorageLocation
RequestedShippingDate
RequestedShippingTime
FldLogsRecommendedAction
FldLogsSupplyProcess _SupplyProcess FldLogsSupplyProcess Supply Process
ReturnRecordCreationDateTime
ReturnRecordChangeDateTime
ReferenceOrder
ReferencePurchasingDocument
FldLogsContainerID
InventoryUsabilityCode
FldLogsItemType
Batch
ValuationType
SerialNumber
FldLogsSuplrItemUUID
FldLogsContainerUUID
FldLogsContainerUnitUUID
FldLogsShptItemUUID
FldLogsRetOutbDelivIsCreated
FldLogsRefurbishmentOrder
PurchaseOrderItem
FieldLogisticsTransferPlant _SupplyingPlant SupplierPlant Plant
_DefaultQuickAction _DefaultQuickAction

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_FldLogsBookStockCol.
-- 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: IFLBOOKSTOCKCOL

CREATE VIEW I_FldLogsBookStockCol AS
SELECT
  Material,
  FldLogsRemotePlant,
  RemoteStorageLocation,
  MatlWrhsStkQtyOnPlantLvl,
  StockUnit,
  cast(0 as flog_retoqty) AS RetblQtyInOrderUnit,
  cast('' as flog_ounit) AS RetblQtyOrderUnit,
  cast(0 as flog_loadqty) AS LoadingQtyInOrderUnit,
  cast(' ' as flog_doc) AS FldLogsReferenceDocumentNumber,
  cast('000000' as flog_docitem) AS ReferenceDocumentItem,
  cast('' as flog_doctyp) AS FldLogsReferenceDocCategory,
  cast('10' as flog_return_status) AS FldLogsReturnStatus,
  cast(' ' as aufnr) AS FldLogsMaintenanceOrder,
  cast('00000000' as flog_dispdat) AS DispatchedStartDate,
  cast('' as flog_supply_lgort) AS SupplyingStorageLocation,
  cast('00000000' as flog_shipdat) AS RequestedShippingDate,
  cast('000000' as flog_shiptims) AS RequestedShippingTime,
  cast('' as flog_rt_action) AS FldLogsRecommendedAction,
  _SupplyProcess.FldLogsSupplyProcess AS FldLogsSupplyProcess,
  cast(0 as flog_createdat) AS ReturnRecordCreationDateTime,
  cast(0 as flog_changedat) AS ReturnRecordChangeDateTime,
  cast(' ' as aufnr) AS ReferenceOrder,
  cast(' ' as ebeln) AS ReferencePurchasingDocument,
  cast('' as flog_contid) AS FldLogsContainerID,
  cast ('' as flog_insmk) AS InventoryUsabilityCode,
  cast('SK' as flog_item_type ) AS FldLogsItemType,
  cast('' as charg_d) AS Batch,
  cast('' as bwtar_d) AS ValuationType,
  cast('' as gernr) AS SerialNumber,
  hextobin( '00000000000000000000000000000000' ) AS FldLogsSuplrItemUUID,
  hextobin( '00000000000000000000000000000000' ) AS FldLogsContainerUUID,
  hextobin( '00000000000000000000000000000000' ) AS FldLogsContainerUnitUUID,
  hextobin( '00000000000000000000000000000000' ) AS FldLogsShptItemUUID,
  cast('' as xfeld) AS FldLogsRetOutbDelivIsCreated,
  cast(' ' as aufnr) AS FldLogsRefurbishmentOrder,
  cast(' ' as ebelp) AS PurchaseOrderItem,
  _SupplyingPlant.SupplierPlant AS FieldLogisticsTransferPlant
FROM I_FldLogsBookStock
LEFT OUTER JOIN I_FldLogsSupplyProcess AS _SupplyProcess ON Material = _SupplyProcess.Material AND FldLogsRemotePlant = _SupplyProcess.Plant  -- association [1..1]
LEFT OUTER JOIN I_FldLogsDefaultQuickAction AS _DefaultQuickAction ON FldLogsSupplyProcess = _DefaultQuickAction.FldLogsSupplyProcess AND _DefaultQuickAction.FieldLogisticsProcessType = '20'  -- association [0..1]
LEFT OUTER JOIN I_FldLogsUserPlant AS _SupplyingPlant ON FldLogsRemotePlant = _SupplyingPlant.FldLogsRemotePlant  -- association [0..1]
;