P_AvailSubcontrgStock

DDL: P_AVAILSUBCONTRGSTOCK SQL: PAVAILSTK Type: view CONSUMPTION

Available Stock at Subcontractor

P_AvailSubcontrgStock is a Consumption CDS View that provides data about "Available Stock at Subcontractor" in SAP S/4HANA. It reads from 1 data source (I_MaterialStock) and exposes 5 fields with key fields Material, Supplier, Plant.

Data Sources (1)

SourceAliasJoin Type
I_MaterialStock I_MaterialStock from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PAVAILSTK view
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Available Stock at Subcontractor view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view

Fields (5)

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

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_AvailSubcontrgStock.
-- 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: PAVAILSTK

CREATE VIEW P_AvailSubcontrgStock AS
SELECT
  Material,
  Supplier,
  Plant,
  MaterialBaseUnit,
  cast(sum(MatlWrhsStkQtyInMatlBaseUnit) as bdmng) AS InitAvailQtySubcontrg
FROM I_MaterialStock
;