ABAP-Specific Session Variables in SAP HANA Session variables are global variables in the SAP HANA database. They can be read there with the built-in function SESSION_CONTEXT>> and given a value using the statement SET> 'VAR' = :value;> (SAP HANA Platform SPS12 and higher). Session variables contain global information about the current context and are hence similar to ABAP system fields >. In particular, their value should only be changed in exceptional application logic cases, for example, in SQLScript>. When a SAP HANA database is used as the standard AS ABAP database>, the following session variables are filled with ABAP-specific values in ABAP reads:
CLIENT> contains the current client> in accordance with the nominal value of the ABAP system field sy-mandt>>.
CDS_CLIENT> like CLIENT> but with the following differences:
CDS_CLIENT> is set to the specified value when the database is accessed with an AB-SQL statement with the addition USING CLIENT>>.