P_BG_SAFTMatlStockQuantity

DDL: P_BG_SAFTMATLSTOCKQUANTITY Type: view_entity COMPOSITE

P_BG_SAFTMatlStockQuantity is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_MaterialDocumentRecord) and exposes 5 fields with key fields CompanyCode, Material, Plant, MaterialBaseUnit.

Data Sources (1)

SourceAliasJoin Type
I_MaterialDocumentRecord I_MaterialDocumentRecord from

Parameters (2)

NameTypeDefault
P_FromPostingDate figen_rep_date_from
P_ToPostingDate figen_rep_date_to

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY MaterialBaseUnit MaterialBaseUnit Valuation Unit
MatlStkChangeQtyInBaseUnit

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 P_BG_SAFTMatlStockQuantity.
-- 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_FromPostingDate : figen_rep_date_from, P_ToPostingDate : figen_rep_date_to

CREATE VIEW P_BG_SAFTMatlStockQuantity AS
SELECT
  CompanyCode,
  Material,
  Plant,
  MaterialBaseUnit,
  sum( MatlStkChangeQtyInBaseUnit ) AS MatlStkChangeQtyInBaseUnit
FROM I_MaterialDocumentRecord
;