I_MySessionContext
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)
| Source | Alias | Join Type |
|---|---|---|
| I_SAPClient | I_SAPClient | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
}
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