R_ProjectedStock

DDL: R_PROJECTEDSTOCK Type: view_entity BASIC

Projected Stock Chart

R_ProjectedStock is a Basic CDS View that provides data about "Projected Stock Chart" in SAP S/4HANA. It reads from 1 data source (/sapapo/prjstk_h) and exposes 24 fields with key field ProjectedStockUUID.

Data Sources (1)

SourceAliasJoin Type
/sapapo/prjstk_h /sapapo/prjstk_h from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Projected Stock Chart view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY ProjectedStockUUID projected_stock_uuid UUID
SimulationSessionUUID simsession_uuid Sim. Session
StartValueQuantity start_value_qty Rec./Reqmts Qty
UnitOfMeasure unit_of_measure Unit of Measure
Product product Product Sold
ProductDescription product_desc Product Description
Location location Text
PlanningSegment planning_segment Acct.Assgt Obj.
PlanningVersionExternal planning_vers_ext Plng Version
AdvncdPlngSftyStkMeth safety_stock_method Safety Stock Method
AdvncdPlngTgtStkLvlMeth target_stock_method Targ.Stk Lvl Md
TargetDaysSupply1Quantity target_days_supply_qty1 Days' Supply
TargetDaysSupply2Quantity target_days_supply_qty2 Days' Supply
TargetDaysSupply3Quantity target_days_supply_qty3 Days' Supply
TargetDaysSupply1Description target_days_supply_desc1 Days' type des
TargetDaysSupply2Description target_days_supply_desc2 Days' type des
TargetDaysSupply3Description target_days_supply_desc3 Days' type des
TargetDaysSupply1Unit target_days_supply_unit1 Days'SupplyUnit
TargetDaysSupply2Unit target_days_supply_unit2 Days'SupplyUnit
TargetDaysSupply3Unit target_days_supply_unit3 Days'SupplyUnit
TargetDaysSupply1AlertLevel target_days_supply_alert_lvl1 Alert DSupply 1
TargetDaysSupply2AlertLevel target_days_supply_alert_lvl2 Alert DSupply 2
TargetDaysSupply3AlertLevel target_days_supply_alert_lvl3 Alert DSupply3
LastChangeDateTime last_change_date_time Time Stamp

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 R_ProjectedStock.
-- 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 R_ProjectedStock AS
SELECT
  projected_stock_uuid AS ProjectedStockUUID,
  simsession_uuid AS SimulationSessionUUID,
  start_value_qty AS StartValueQuantity,
  unit_of_measure AS UnitOfMeasure,
  Product,
  product_desc AS ProductDescription,
  Location,
  planning_segment AS PlanningSegment,
  planning_vers_ext AS PlanningVersionExternal,
  safety_stock_method AS AdvncdPlngSftyStkMeth,
  target_stock_method AS AdvncdPlngTgtStkLvlMeth,
  target_days_supply_qty1 AS TargetDaysSupply1Quantity,
  target_days_supply_qty2 AS TargetDaysSupply2Quantity,
  target_days_supply_qty3 AS TargetDaysSupply3Quantity,
  target_days_supply_desc1 AS TargetDaysSupply1Description,
  target_days_supply_desc2 AS TargetDaysSupply2Description,
  target_days_supply_desc3 AS TargetDaysSupply3Description,
  target_days_supply_unit1 AS TargetDaysSupply1Unit,
  target_days_supply_unit2 AS TargetDaysSupply2Unit,
  target_days_supply_unit3 AS TargetDaysSupply3Unit,
  target_days_supply_alert_lvl1 AS TargetDaysSupply1AlertLevel,
  target_days_supply_alert_lvl2 AS TargetDaysSupply2AlertLevel,
  target_days_supply_alert_lvl3 AS TargetDaysSupply3AlertLevel,
  last_change_date_time AS LastChangeDateTime
FROM /sapapo/prjstk_h
;