I_MySessionContext

DDL: I_MYSESSIONCONTEXT Type: view_entity BASIC Package: FINS_FIS_FICO

Session Context of the current user

I_MySessionContext is a Basic CDS View that provides data about "Session Context of the current user" in SAP S/4HANA. It reads from 1 data source (I_SAPClient) and exposes 3 fields with key field UserID. Part of development package FINS_FIS_FICO.

Data Sources (1)

SourceAliasJoin Type
I_SAPClient I_SAPClient from

Annotations (9)

NameValueLevelField
AbapCatalog.entityBuffer.definitionAllowed false view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #META view
ObjectModel.usageType.serviceQuality #B view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Session Context of the current user view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY UserID
UserLocalDate
UserLocalTime
 @AbapCatalog.entityBuffer.definitionAllowed: false
 @Metadata.ignorePropagatedAnnotations: true 
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #BASIC
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.dataClass:  #META
@ObjectModel.usageType.serviceQuality: #B
@AccessControl.personalData.blocking:#NOT_REQUIRED
@EndUserText.label: 'Session Context of the current user'
@ObjectModel.supportedCapabilities: [ #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET ]
define view entity I_MySessionContext as select from I_SAPClient {

  key $session.user as UserID,

  tstmp_to_dats(tstmp_current_utctimestamp(), abap_user_timezone($session.user, $session.client, 'NULL'), $session.client, 'NULL') as UserLocalDate,
  tstmp_to_tims(tstmp_current_utctimestamp(), abap_user_timezone($session.user, $session.client, 'NULL'), $session.client, 'NULL') as UserLocalTime    
    
}