P_StkBalAvail

DDL: P_STKBALAVAIL SQL: PSTKBALAVAIL Type: view CONSUMPTION Package: ODATA_MM_PUR_SUBCONTRG_COCKPIT

Stock Balance Availability

P_StkBalAvail is a Consumption CDS View that provides data about "Stock Balance Availability" 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] P_StkBalInitAndDelivs _StkBalInitAndDelivs $projection.Material = _StkBalInitAndDelivs.Material and $projection.Plant = _StkBalInitAndDelivs.Plant and $projection.Supplier = _StkBalInitAndDelivs.Supplier

Annotations (11)

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

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY Supplier Supplier Supplier
InitAvailQtySubcontrg _StkBalInitAndDelivs InitAvailQtySubcontrg
DirectDeliveries _ThirdPartyAvaily DirectDeliveries
StockTransferQty _StkTransfResvn StockTransferQty
ActualDeliveryQuantity _StkBalInitAndDelivs ActualDeliveryQuantity Base quantity
InitialAndDelivsQuantity _StkBalInitAndDelivs InitialAndDelivsQuantity
TodaysDate

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_StkBalAvail.
-- 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: PSTKBALAVAIL

CREATE VIEW P_StkBalAvail AS
SELECT
  Material,
  Plant,
  Supplier,
  _StkBalInitAndDelivs.InitAvailQtySubcontrg AS InitAvailQtySubcontrg,
  _ThirdPartyAvaily.DirectDeliveries AS DirectDeliveries,
  _StkTransfResvn.StockTransferQty AS StockTransferQty,
  _StkBalInitAndDelivs.ActualDeliveryQuantity AS ActualDeliveryQuantity,
  _StkBalInitAndDelivs.InitialAndDelivsQuantity AS InitialAndDelivsQuantity,
  $session.system_date AS TodaysDate
LEFT OUTER JOIN P_StkBalInitAndDelivs AS _StkBalInitAndDelivs ON Material = _StkBalInitAndDelivs.Material AND Plant = _StkBalInitAndDelivs.Plant AND Supplier = _StkBalInitAndDelivs.Supplier  -- association [0..1]
;