P_SVTTrackingPeriods

DDL: P_SVTTRACKINGPERIODS SQL: PSVTTRPER Type: view COMPOSITE

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)

SourceAliasJoin Type
I_SVTAggregationHeader I_SVTAggregationHeader from

Annotations (7)

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

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