I_TimeDependentStockLevel
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
| Category | CDS Views for Material Requirements Planning |
|---|
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
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Manufacturing |
| Application Component | PP-DD-BLM-BAS-2CL |
| Capabilities | Data 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 |
| Package | Manufacturing for SAP S/4HANA Cloud Public Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| pph_dd_stk | pph_dd_stk | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Product | _Product | _Product.Product = $projection.Product |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA