I_FldLogsMaintOrdMaterialStock

DDL: I_FLDLOGSMAINTORDMATERIALSTOCK Type: view_entity COMPOSITE Package: FLOG_RETURN_WOV

Material stock for Maintenance Order

I_FldLogsMaintOrdMaterialStock is a Composite CDS View that provides data about "Material stock for Maintenance Order" in SAP S/4HANA. It reads from 2 data sources (I_FldLogsPlantBasic, I_FldLogsMatlDocumentRecord) and exposes 4 fields with key fields Material, FldLogsRemotePlant. Part of development package FLOG_RETURN_WOV.

Data Sources (2)

SourceAliasJoin Type
I_FldLogsPlantBasic _FldLogsPlant inner
I_FldLogsMatlDocumentRecord _MaterialStock from

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Material stock for Maintenance Order view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY Material I_FldLogsMatlDocumentRecord StockIdentifyingMaterial Stock Mat.
KEY FldLogsRemotePlant I_FldLogsMatlDocumentRecord Plant Valuation Area
MatlWrhsStkQtyInMatlBaseUnit
StockUnit I_FldLogsMatlDocumentRecord MaterialBaseUnit Valuation Unit

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_FldLogsMaintOrdMaterialStock.
-- 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_FldLogsMaintOrdMaterialStock AS
SELECT
  _MaterialStock.StockIdentifyingMaterial AS Material,
  _MaterialStock.Plant AS FldLogsRemotePlant,
  sum(_MaterialStock.MatlStkChangeQtyInBaseUnit) AS MatlWrhsStkQtyInMatlBaseUnit,
  _MaterialStock.MaterialBaseUnit AS StockUnit
FROM I_FldLogsMatlDocumentRecord AS _MaterialStock
INNER JOIN I_FldLogsPlantBasic AS _FldLogsPlant ON /* join condition not captured in parsed metadata */
;