Skip to Content
-1

Differentiate between GUI and Portal Logon

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 27 at 03:03 PM

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

    Add comment
    10|10000 characters needed characters exceeded

    • 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.

  • Feb 27 at 04:20 PM

    FM GUI_IS_AVAILABLE?

    Add comment
    10|10000 characters needed characters exceeded

    • 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.