I_FldLogsProdResvnQuantityCalc

DDL: I_FLDLOGSPRODRESVNQUANTITYCALC Type: view_entity COMPOSITE Package: FLOG_RETURN

Product reservation quantity calculation

I_FldLogsProdResvnQuantityCalc is a Composite CDS View that provides data about "Product reservation quantity calculation" in SAP S/4HANA. It reads from 1 data source (I_FldLogsProdReservationDetail) and exposes 10 fields with key fields Material, FldLogsRemotePlant, FldLogsReferenceDocumentNumber, ReferenceDocumentItem, FldLogsMaintenanceOrder. It has 1 association to related views. Part of development package FLOG_RETURN.

Data Sources (1)

SourceAliasJoin Type
I_FldLogsProdReservationDetail I_FldLogsProdReservationDetail from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_UnitOfMeasure _BaseUnitOfMaterial _BaseUnitOfMaterial.UnitOfMeasure = $projection.QuantityUnit

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Product reservation quantity calculation view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view

Fields (10)

KeyFieldSource TableSource FieldDescription
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
QuantityUnit QuantityUnit Unit of measure
ResvnItmTotalRequiredQty
ResvnItmTotalWithdrawnQty
_BaseUnitOfMaterial _BaseUnitOfMaterial

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_FldLogsProdResvnQuantityCalc.
-- 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_FldLogsProdResvnQuantityCalc AS
SELECT
  Material,
  FldLogsRemotePlant,
  FldLogsReferenceDocumentNumber,
  ReferenceDocumentItem,
  FldLogsMaintenanceOrder,
  RemoteStorageLocation,
  QuantityUnit,
  cast( sum(ResvnItmRequiredQtyInBaseUnit) as bdmng ) AS ResvnItmTotalRequiredQty,
  cast( sum(ResvnItmWithdrawnQtyInBaseUnit) as bdmng ) AS ResvnItmTotalWithdrawnQty
FROM I_FldLogsProdReservationDetail
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnitOfMaterial ON _BaseUnitOfMaterial.UnitOfMeasure = QuantityUnit  -- association [0..1]
;