I_TimeDependentStockLevel

DDL: I_TIMEDEPENDENTSTOCKLEVEL Type: view_entity BASIC Package: PPH_PROD_TIMDEPDNT_STKLVL_RAP

Time Dependent Stock Level

I_TimeDependentStockLevel (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Manufacturing

I_TimeDependentStockLevel is a Basic CDS View that provides data about "Time Dependent Stock Level" in SAP S/4HANA. It reads from 1 data source (pph_dd_stk) and exposes 22 fields with key fields Product, Plant, MRPArea, StockLevelValidityStartDate. It has 1 association to related views. Part of development package PPH_PROD_TIMDEPDNT_STKLVL_RAP.

SAP Help Documentation

CategoryCDS Views for Material Requirements Planning
Purpose
This CDS view helps to retrieve the time dependent stock details within a specified time interval on the basis of Material, Plant, and MRP Area. This CDS view provides the data to answer the following business questions: What are the required stock levels? What was the stock level in a specified time interval? What is the stock situation across plants? This CDS view supports the following types of support capabilities: SQL_DATA_SOURCE CDS_MODELING_DATA_SOURCE CDS_MODELING_ASSOCIATION_TARGET To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: BEGRU_MAT BEGRU_MATKL BEGRU_MTART

Structure
Important Fields Important fields in this view include the following: Field Name Description Matnr Material Werks Plant Berid MRP Area DateFrom Valid From Date DateTo Valid To Date SafetyStock Safety Stock ReorderPoint Reorder Point TargetStock Target Stock Level MaxStock Maximum Stock Level StockUnit Base Unit of Measure SafetyDos Safety Days of Supply in Workdays TargetDos Target Days of Supply in Workdays MaxDos Maximum Days of Supply in Workdays

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessManufacturing
Application ComponentPP-DD-BLM-BAS-2CL
CapabilitiesData Source in SQL Select,Association Target for Defining CDS Entities,Data Source for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Not Released
PackageManufacturing for SAP S/4HANA Cloud Public Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
pph_dd_stk pph_dd_stk from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_Product _Product _Product.Product = $projection.Product

Annotations (9)

NameValueLevelField
EndUserText.label Time Dependent Stock Level view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY Product matnr Material Number
KEY Plant werks Receiving Plant
KEY MRPArea berid Single-Character Flag
KEY StockLevelValidityStartDate date_from Validity Start Date
StockLevelValidityEndDate date_to Validity End Date
ProductSafetyStockLvlQuantity safety_stock Safety Stock
ReorderThresholdQuantity reorder_point Reorder Point
ProductMaxStockLevelQuantity max_stock Maximum Stock Level
ProductTargetStockLvlQuantity target_stock Target Stock Level
BaseUnit stock_unit Base Unit of Measure
TargetSupplyDurationInDays target_dos Target Days of Supply in Workdays
MaxSupplyDurationInDays max_dos Maximum Days of Supply in Workdays
SafetySupplyDurationInDays safety_dos Safety Days of Supply in Workdays
ChangeMode change_mode Mode of Change
StockLevelProposalID proposal_id Proposal ID
ProposalVersion prop_ver Proposal Version
ProposalStartDate prop_date_from Proposal Validity From Date
CreatedByUser created_by Name of Person Responsible for Creating the Object
LastChangedByUser changed_by Name of Person Who Changed Object
CreationDateTime created_time UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
LastChangeDateTime changed_time UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
_Product _Product

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 I_TimeDependentStockLevel.
-- 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 I_TimeDependentStockLevel AS
SELECT
  matnr AS Product,
  werks AS Plant,
  berid AS MRPArea,
  date_from AS StockLevelValidityStartDate,
  date_to AS StockLevelValidityEndDate,
  safety_stock AS ProductSafetyStockLvlQuantity,
  reorder_point AS ReorderThresholdQuantity,
  max_stock AS ProductMaxStockLevelQuantity,
  target_stock AS ProductTargetStockLvlQuantity,
  stock_unit AS BaseUnit,
  target_dos AS TargetSupplyDurationInDays,
  max_dos AS MaxSupplyDurationInDays,
  safety_dos AS SafetySupplyDurationInDays,
  change_mode AS ChangeMode,
  proposal_id AS StockLevelProposalID,
  prop_ver AS ProposalVersion,
  prop_date_from AS ProposalStartDate,
  created_by AS CreatedByUser,
  changed_by AS LastChangedByUser,
  created_time AS CreationDateTime,
  changed_time AS LastChangeDateTime
FROM pph_dd_stk
LEFT OUTER JOIN I_Product AS _Product ON _Product.Product = Product  -- association [1..1]
;