P_SVTTrackingPeriods
P_SVTTrackingPeriods is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_SVTAggregationHeader) and exposes 1 field with key field SVTAggregationHeaderUUID.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SVTAggregationHeader | I_SVTAggregationHeader | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSVTTRPER | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (1)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SVTAggregationHeaderUUID | SVTAggregationHeaderUUID |
@AbapCatalog.sqlViewName: 'PSVTTRPER'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
--Client Handling of the view
@ClientHandling.algorithm: #SESSION_VARIABLE
--VDM view type
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view P_SVTTrackingPeriods
as select from I_SVTAggregationHeader
{
key SVTAggregationHeaderUUID,
case
when TrackingPeriodStartDate <= $session.system_date and TrackingPeriodEndDate >= $session.system_date
then 'CURR_PER'
else 'PREV_PER'
end as TrackingPeriodType
}
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