A_MatlStkByKeyDteInAcctMod

DDL: A_MATLSTKBYKEYDTEINACCTMOD Type: view COMPOSITE

API view by directly consuming I_MaterialStock

A_MatlStkByKeyDteInAcctMod is a Composite CDS View that provides data about "API view by directly consuming I_MaterialStock" in SAP S/4HANA. It reads from 1 data source (I_MaterialStock_2) and exposes 13 fields with key fields Material, Plant, StorageLocation, Batch, Supplier.

Data Sources (1)

SourceAliasJoin Type
I_MaterialStock_2 I_MaterialStock_2 from

Parameters (1)

NameTypeDefault
P_KeyDate sydate

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName AMATSTKBKDTINACT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label API view by directly consuming I_MaterialStock view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY StorageLocation StorageLocation StorageLocation
KEY Batch Batch Lot No.
KEY Supplier Supplier Supplier
KEY Customer Customer Sold-to Party
KEY WBSElementInternalID WBS Internal ID
KEY SDDocumentItem SDDocumentItem
KEY InventorySpecialStockType InventorySpecialStockType Special Stock Type
KEY InventoryStockType InventoryStockType Stock Type
MaterialBaseUnit MaterialBaseUnit Valuation Unit
MatlWrhsStkQtyInMatlBaseUnit
_MaterialStock _MaterialStock

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 A_MatlStkByKeyDteInAcctMod.
-- 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.
-- Parameters: P_KeyDate : sydate

CREATE VIEW A_MatlStkByKeyDteInAcctMod AS
SELECT
  Material,
  Plant,
  StorageLocation,
  Batch,
  Supplier,
  Customer,
  cast( WBSElementInternalID as mat_pspnr preserving type ) AS WBSElementInternalID,
  SDDocumentItem,
  InventorySpecialStockType,
  InventoryStockType,
  MaterialBaseUnit,
  sum(MatlWrhsStkQtyInMatlBaseUnit) AS MatlWrhsStkQtyInMatlBaseUnit
FROM I_MaterialStock_2
;