P_CalcPeriod
Calculation Period
P_CalcPeriod is a Basic CDS View that provides data about "Calculation Period" in SAP S/4HANA. It reads from 1 data source (dd07t) and exposes 4 fields with key fields Period, Language. It has 1 association to related views. Part of development package EHENV_BO_CDEF_IMPL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| dd07t | dd07t | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Language | _Language | $projection.Language = _Language.Language |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCALCPERIOD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.representativeKey | Period | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Period | |||
| KEY | Language | ddlanguage | ||
| DataPeriodName | ddtext | |||
| _Language | _Language |
@AbapCatalog.sqlViewName: 'PCALCPERIOD'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.dataClass:#CUSTOMIZING
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private:true
@VDM.viewType: #BASIC
@ObjectModel.representativeKey: 'Period'
/*+[hideWarning] { "IDS" : [ "KEY_CHECK" ] }*/
define view P_CalcPeriod
as select from dd07t
association [0..1] to I_Language as _Language on $projection.Language = _Language.Language
{
key cast(domvalue_l as ehfnd_calc_usage_period) as Period, //casting to have the right label for consumers
@Semantics.language: true
key ddlanguage as Language,
@Semantics.text: true
ddtext as DataPeriodName,
_Language
}
where
domname = 'EHFND_CALC_USAGE_PERIOD'
and as4local = 'A'
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