Skip to Content
-1

Differentiate between GUI and Portal Logon

Feb 26 at 12:41 PM

100

avatar image
Former Member

Hi Experts,

We want to force users to log in to SAP through the portal instead of SAP GUI. If someone is trying to log in through GUI, we need to throw an error message and stop the user. But unable to differentiate the portal and GUI login. Tried in the user exit SUSR0001, transaction code SM04, SUIM, SM50 but couldn't able to figure out the difference. Can anyone help me on this issue? Thanks!!!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Raymond Giuseppi
Feb 27 at 03:03 PM
0

Which FM or class did you already try: TH_USER_INFO (terminal), WEBGUI_CHECK, etc.

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Raymond,

Thanks for your suggestion. I have already tried TH_USER_INFO and all the return values are same during both the login.I am passing client, username and CHECK_GUI value as 1 and 0. Even WEBGUI_CHECK also providing the same value during portal and Gui login.

0

Does Analysis of the Abap stack (SYSTEM_CALLSTACK) reveal some difference?

0
Former Member

I have tried the function module SYSTEM_CALLSTACK but it provided only the program name and event details & didn't find any difference.

Our basis team suggested adding a security profile to stop the GUI login, but after added, it is showing the error "This system does not let you log on using a password" as it is giving wrong information, is this possible to change the error message? The user exit SUSR0001 is not triggering during the message display.

0
Horst Keller
Feb 27 at 04:20 PM
0

FM GUI_IS_AVAILABLE?

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Horst Keller,

Thanks for your suggestion. Yes FM GUI_IS_AVAILABLE, but it returning the value as 'X' for both GUI and portal login attempts.

0