P_MaintJobWrkItmMaterialStock

DDL: P_MAINTJOBWRKITMMATERIALSTOCK Type: view_entity COMPOSITE

P_MaintJobWrkItmMaterialStock is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_MaterialStock_2) and exposes 6 fields with key fields Material, Plant, StorageLocation, Batch, MaterialBaseUnit.

Data Sources (1)

SourceAliasJoin Type
I_MaterialStock_2 I_MaterialStock_2 from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY StorageLocation StorageLocation StorageLocation
KEY Batch Batch Lot No.
KEY MaterialBaseUnit MaterialBaseUnit Valuation Unit
MaximumAvailableQuantity

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_MaintJobWrkItmMaterialStock.
-- 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.

CREATE VIEW P_MaintJobWrkItmMaterialStock AS
SELECT
  Material,
  Plant,
  StorageLocation,
  Batch,
  MaterialBaseUnit,
  sum( MatlWrhsStkQtyInMatlBaseUnit ) AS MaximumAvailableQuantity
FROM I_MaterialStock_2
;