P_MatlStkPerdsInMonth
Periods in months
P_MatlStkPerdsInMonth is a Composite CDS View that provides data about "Periods in months" in SAP S/4HANA. It reads from 2 data sources (I_CalendarDate, I_SAPClient) and exposes 4 fields with key fields CalendarYear, CalendarMonth. Part of development package ODATA_MM_IM_SLONOMOMAT.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CalendarDate | cd | inner |
| I_SAPClient | sc | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CalendarYear | I_CalendarDate | CalendarYear | |
| KEY | CalendarMonth | I_CalendarDate | CalendarMonth | |
| StartDate | ||||
| EndDate |
@AccessControl.authorizationCheck:#NOT_REQUIRED
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass:#TRANSACTIONAL
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view entity P_MatlStkPerdsInMonth
as select from I_SAPClient as sc
inner join I_CalendarDate as cd on sc.LogicalSystem = '' //dummy "on" condition
or sc.LogicalSystem <> ''
{
key cd.CalendarYear,
key cd.CalendarMonth,
min(cd.CalendarDate) as StartDate,
max(cd.CalendarDate) as EndDate
}
group by cd.CalendarYear,
cd.CalendarMonth
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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