Ansicht
Dokumentation

ABENCDS_SESSION_VARIABLE_V2 - CDS SESSION VARIABLE V2

ABENCDS_SESSION_VARIABLE_V2 - CDS SESSION VARIABLE V2

RFUMSV00 - Advance Return for Tax on Sales/Purchases   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

- CDS View Entity, session_variable

... $session.vname ...

Effect

Specifies a session variable vname in an operand position in a SELECT statement of a CDS view entity. The variable must be prefixed by $session.. The prefix and the variable are case-sensitive. $session.vname, $Session.Vname, and $SESSION.VNAME can all be used. No other spellings are allowed.

There are two types of session variables available:

  • Built-in session variables: Built-in session variables are set to their value when a CDS view entity is used in . They cannot be set or changed from ABAP programs. The following built-in session variables are currently available: user, client, system_language, system_date, user_timezone, user_date.
  • Application session variables: Application session variables are required for specific applications and they are set by dedicated system programs. The following application session variables are currently available: bs_instance_id, bs_zone_id.

Note

From a technical perspective, session variables indicate global variables of the current database and can be compared to ABAP system fields. Although application session variables can be changed from ABAP programs, outside of system programs they should only be used for reads.






BAL_S_LOG - Application Log: Log header data   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 2987 Date: 20240420 Time: 165949     sap01-206 ( 40 ms )