P_UnrestrictedStk

DDL: P_UNRESTRICTEDSTK SQL: PUNRESSTK Type: view CONSUMPTION

Unrestricted Stock

P_UnrestrictedStk is a Consumption CDS View that provides data about "Unrestricted Stock" in SAP S/4HANA. It reads from 1 data source (I_MaterialStock) and exposes 4 fields with key fields Material, Plant, MaterialBaseUnit.

Data Sources (1)

SourceAliasJoin Type
I_MaterialStock I_MaterialStock from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PUNRESSTK view
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_ALLOWED view
EndUserText.label Unrestricted Stock 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 (4)

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

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_UnrestrictedStk.
-- 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: PUNRESSTK

CREATE VIEW P_UnrestrictedStk AS
SELECT
  Material,
  Plant,
  MaterialBaseUnit,
  cast (sum(MatlWrhsStkQtyInMatlBaseUnit) as abap.quan(13,3)) AS UnrestrictedStkQty
FROM I_MaterialStock
;