P_StkBalRqmts

DDL: P_STKBALRQMTS SQL: PSTKBALRQMTS Type: view CONSUMPTION Package: ODATA_MM_PUR_SUBCONTRG_COCKPIT

Stock Balance Requirements

P_StkBalRqmts is a Consumption CDS View that provides data about "Stock Balance Requirements" in SAP S/4HANA. It has 1 association to related views. Part of development package ODATA_MM_PUR_SUBCONTRG_COCKPIT.

Associations (1)

CardinalityTargetAliasCondition
[0..1] ftg_enabled _FeatureToggle _FeatureToggle.ftg_id = 'MM_PUR_PROJECT_BASED_SUBCONTRG'

Annotations (11)

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

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY Supplier Supplier Supplier
BaseUnit BaseUnit Unit of Measure
TotalSubcontrgRequirement
TotalSubcontrgWithdrawn

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_StkBalRqmts.
-- 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: PSTKBALRQMTS

CREATE VIEW P_StkBalRqmts AS
SELECT
  Material,
  Plant,
  Supplier,
  BaseUnit,
  sum(RequiredQuantity) AS TotalSubcontrgRequirement,
  sum(WithdrawnQuantity) AS TotalSubcontrgWithdrawn
LEFT OUTER JOIN ftg_enabled AS _FeatureToggle ON _FeatureToggle.ftg_id = 'MM_PUR_PROJECT_BASED_SUBCONTRG'  -- association [0..1]
;