P_InvtryTurnoverSupplierQty

DDL: P_INVTRYTURNOVERSUPPLIERQTY SQL: PINVTRYTODELQTY Type: view CONSUMPTION

Delivered qty per supplr, matl, plant, and period

P_InvtryTurnoverSupplierQty is a Consumption CDS View that provides data about "Delivered qty per supplr, matl, plant, and period" in SAP S/4HANA. It reads from 1 data source (P_InvtryTurnoverStock) and exposes 6 fields with key fields Material, Plant, Supplier, MaterialBaseUnit.

Data Sources (1)

SourceAliasJoin Type
P_InvtryTurnoverStock P_InvtryTurnoverStock from

Parameters (2)

NameTypeDefault
P_DayOffset abap.int4
P_CurrentDate sydate

Annotations (11)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PINVTRYTODELQTY view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Delivered qty per supplr, matl, plant, and period view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY Supplier Supplier Supplier
KEY MaterialBaseUnit MaterialBaseUnit Valuation Unit
MatlWrhsStkQtyInMatlBaseUnit
MatlCnsmpnQtyInMatlBaseUnit

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_InvtryTurnoverSupplierQty.
-- 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: PINVTRYTODELQTY
-- Parameters: P_DayOffset : abap.int4, P_CurrentDate : sydate

CREATE VIEW P_InvtryTurnoverSupplierQty AS
SELECT
  Material,
  Plant,
  Supplier,
  MaterialBaseUnit,
  sum(MatlWrhsStkQtyInMatlBaseUnit) AS MatlWrhsStkQtyInMatlBaseUnit,
  sum(MatlCnsmpnQtyInMatlBaseUnit) AS MatlCnsmpnQtyInMatlBaseUnit
FROM P_InvtryTurnoverStock
;