In order to retrieve the end users terminal ID and IP address, the function module TERMINAL_ID_GET can be used....
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
This functional module will retrieve both the IP address and the logon ID. REPORT ZSuresh_TEST.
w_terminal like USR41-TERMINAL.
CALL FUNCTION 'TERMINAL_ID_GET'
USERNAME = SY-UNAME
TERMINAL = w_terminal
MULTIPLE_TERMINAL_ID = 1
NO_TERMINAL_FOUND = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.