P_CompanyCodePeriods

DDL: P_COMPANYCODEPERIODS SQL: PCCODEPERIODS Type: view BASIC

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)

SourceAliasJoin Type
marv mv from

Annotations (7)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
}