SAP RFC LOGON DATA ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_RFC - Implicit Logon Data
This example demonstrates how the logon data of an RFC session is set implicitly.

ABAP_SOURCE_CODE
DEMO CL_DEMO_RFC_IMPLCT_LOGON_DATA

ABAP_DESCRIPTION
A remote-enabled function module DEMO_RFM_LOGON_DATA is called with the destination NONE using the RFC interface. The logon data user name, client, and logon language of the corresponding RFC session are provided implicitly. To demonstrate that the logon language of the RFC session is set by the language of the text environment of the caller, it is set to a language other than the logon language of the caller before the call with the statement SET LOCALE LANGUAGE. In the called RFM the language of the text environment of the RFC session is also changed and is then also different to the logon language.
If the function module DEMO_RFM_LOGON_DATA is called remotely again, the RFC session is reused with the existing logon data. Changing the language of the text environment again in the caller would no longer have any effect.