04-28-2009 1:30 PM
hi guys,
i must check and block a transaction, developed for a RF terminal, if it is executed by SAPgui...
how to, in abap, recognize a telnet session (RF) from a SAPGUI ?
I have tried FM "SAPGUI_OBJECT_ID" hoping in a sy-subrc ne 0 with telnet but it's not right.
Edited by: Cacco Andrea on Apr 28, 2009 2:43 PM
07-09-2009 3:20 PM
i resolved like this:
cl_gui_frontend_services=>get_computer_name(
changing
computer_name = zterm
exceptions
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
others = 4
).
if sy-subrc = 0. "SAPGUI
...
else. "telnet
...
endif.