cancel
Showing results for 
Search instead for 
Did you mean: 

Differentiate between GUI and Portal Logon

0 Kudos

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!!!

Accepted Solutions (0)

Answers (2)

Answers (2)

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

FM GUI_IS_AVAILABLE?

0 Kudos

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.

raymond_giuseppi
Active Contributor
0 Kudos

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

0 Kudos

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.

raymond_giuseppi
Active Contributor
0 Kudos

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

0 Kudos

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.