P_CompanyCodePeriods
P_CompanyCodePeriods is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (marv) and exposes 7 fields with key field CompanyCode.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| marv | mv | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCCODEPERIODS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | marv | bukrs | |
| CurrentFiscalPeriod | ||||
| CurrentFiscalYear | ||||
| PreviousFiscalPeriod | ||||
| PreviousFiscalPeriodFiscalYear | ||||
| LastYearFiscalPeriod | ||||
| LastFiscalYear |
@AbapCatalog.sqlViewName: 'PCCODEPERIODS'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #BASIC
define view P_CompanyCodePeriods as select from marv as mv
{
key mv.bukrs as CompanyCode,
cast(concat ('0',mv.lfmon) as poper) as CurrentFiscalPeriod,
cast(mv.lfgja as bdatj) as CurrentFiscalYear,
cast(concat ('0',mv.vmmon) as fins_prev_fiscalperiod) as PreviousFiscalPeriod,
cast(mv.vmgja as fins_prev_fiscperiodfiscyear) as PreviousFiscalPeriodFiscalYear,
cast(concat ('0',mv.vjmon) as poper) as LastYearFiscalPeriod,
cast(mv.vjgja as bdatj) as LastFiscalYear
}
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