2009 Oct 21 5:19 PM
Hello,
I have used function GUI_GET_DESKTOP_INFO to get terminal ID. The program returns correct value if we run it via SAP GUI
but does not return any value when we run via web service.
I have converted program into iternet service & when I run this service, this function does not return anything.
Does anyone know function which returns terminal ID when we run service via web?
Regards,,,
Sunil Joyous
Hi Sunil,
You can find the list of possible values in include TSKHINCL (from line 245 to line 327).
Best regards,
Samuel
2009 Oct 21 5:37 PM
Not sure from webservice - but give a try using CL_GUI_FRONTEND_SERVICES->GET_IP_ADDRESS method.
2009 Oct 21 9:13 PM
Method CL_GUI_FRONTEND_SERVICES->GET_IP_ADDRESS give control error, so not usefull
2009 Oct 21 8:21 PM
Note that an ABAP system located in an appropriate network zone (away direct access from the internet...) would most likely only see a forward proxy's IP or another gateway - and not the real terminal.
Cheers,
Julius
2009 Oct 21 8:46 PM
check the methods of cl_gui_frontend_services
thoe methods will help
2009 Oct 21 10:05 PM
Hi,
a good starting point should be the RFC enabled function module THUSRINFO that returns the list of active users with the terminal is, otherwise you could use this sample report .
REPORT ZSDN_TERMID.
data: opcode_usr_attr(1) type x value 5,
terminal type usr41-terminal.
* determine own Terminal-Id
call 'ThUsrInfo' id 'OPCODE' field opcode_usr_attr
id 'TERMINAL' field terminal.
write:/ 'Terminal:', terminal.
Regards,
Andrea
2009 Oct 21 10:23 PM
Thanks Andrea. This works. But can you tell me what are the possible values of OPCODE?
2009 Oct 22 8:55 AM
Hi Sunil,
You can find the list of possible values in include TSKHINCL (from line 245 to line 327).
Best regards,
Samuel
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |