Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to recognize a telnet session (RF) from a SAPGUI?

0 Kudos

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

1 REPLY 1

0 Kudos

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.