I_FldLogsBatchStockQty

DDL: I_FLDLOGSBATCHSTOCKQTY SQL: IFLBATCHSTK Type: view BASIC

Stock qty for batch active material

I_FldLogsBatchStockQty is a Basic CDS View that provides data about "Stock qty for batch active material" in SAP S/4HANA. It reads from 1 data source (matdoc_extract) and exposes 12 fields with key fields MaterialDocumentKey1, MaterialDocumentKey2, MaterialDocumentKey3, MaterialDocumentKey4, MaterialDocumentKey5.

Data Sources (1)

SourceAliasJoin Type
matdoc_extract matdoc_extract from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName IFLBATCHSTK view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Stock qty for batch active material view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view
VDM.viewType #BASIC view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY MaterialDocumentKey1 key1 INT4
KEY MaterialDocumentKey2 key2 Character Field of Length 12
KEY MaterialDocumentKey3 key3 INT2
KEY MaterialDocumentKey4 key4 BO Key Part (4)
KEY MaterialDocumentKey5 key5 BO Key Part (5)
KEY MaterialDocumentKey6 key6 BO Key Part (6)
Material matbf Stock Mat.
FldLogsRemotePlant werks Receiving Plant
RemoteStorageLocation lgort_sid Stor. Location SID
Batch charg_sid Batch SID
WBSElementInternalID WBSElem of Inv.
FldLogsRemoteQuantity stock_qty_l1 Stock Qty CDS on BL

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_FldLogsBatchStockQty.
-- 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: IFLBATCHSTK

CREATE VIEW I_FldLogsBatchStockQty AS
SELECT
  key1 AS MaterialDocumentKey1,
  key2 AS MaterialDocumentKey2,
  key3 AS MaterialDocumentKey3,
  key4 AS MaterialDocumentKey4,
  key5 AS MaterialDocumentKey5,
  key6 AS MaterialDocumentKey6,
  matbf AS Material,
  werks AS FldLogsRemotePlant,
  lgort_sid AS RemoteStorageLocation,
  charg_sid AS Batch,
  cast(mat_pspnr as ps_s4_pspnr) AS WBSElementInternalID,
  stock_qty_l1 AS FldLogsRemoteQuantity
FROM matdoc_extract
;