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: 

USER-EXIT or BADI at First User Entrance to the sap ?

Former Member
0 Kudos

Hello,

I need an user exit or Badi while user open a session (while entering the sap , after the user writes the user name and password and press enter)

11 REPLIES 11

Former Member
0 Kudos

NO CLARITY IN QUESTION PLZ.

former_member191735
Active Contributor
0 Kudos

Thats good question. SAP did not supply any User exit/BADI between these two screens.

Try other things like GUIXT or something like that

Clemenss
Active Contributor
0 Kudos

Hi Münir,

please use transaction SMOD to check SAP extension SUSR0001. Here you have Exit function EXIT_SAPLSUSF_001. It is processed with every user Logon.

Did I understand your question right?

Regards,

Clemens

naimesh_patel
Active Contributor
0 Kudos

Check User Exit: SUSR0001

Regards,

Naimesh Patel

former_member191735
Active Contributor
0 Kudos

Well, that user exit does not trigger between log on screen and sap main menu

0 Kudos

Hi abap technical,

and when does it?

Regards,

Clemens

0 Kudos

The exit mentioned by Clemens does work, but only for SAPGUI type "DIAG" logons. Other logon protocolls used are not interupted by ABAP exits in the SAPGUI logon program.

See for some details and explanations (read it to the end...).

For other logon authentication types, you will need to use coding in your RFC, or webservice, or what ever it is that you want to expose as an entry point to the system. Of course, the user should not be able to bypass the entry point... or if they do then nothing should happen (for example, an additional check which fails should prevent them from doing that which your coding requirement is for).

If you could explain what you want to achieve in this coding then it will be clearer to comment appropriately (and possibly also move the thread to the Security Forum, where other gurus will be able to comment?)

In my opinion, using GUIXT is not a good idea, as the user can control it anyway and you will need to administrate it / distribute it.

Let me know if you would like to have the thread moved to the correct forum.

Cheers,

Julius

Former Member
0 Kudos

Go to the Debugging-Mode.

Enter User + Password.

Check the Routines executed, which would be the most suitable- I would guess that it will be one of the first routines called during PAI.

Use the enhancement point at the end of this routine.

Greatings

Manuel

0 Kudos

>

> Go to the Debugging-Mode.

>

> Enter User + Password.

>

> Check the Routines executed, which would be the most suitable- I would guess that it will be one of the first routines called during PAI.

> ...

>

Have you ever tried this? Or is "guess" the operative word?

The debugger checks authority for debugging in various ways. If you are not logged on yet, you don't have any authority...

You cannot debug the logon program in the way you have described.

Cheers,

Julius

WolfgangJanzen
Product and Topic Expert
Product and Topic Expert
0 Kudos

As stated already by others: there's only one USER-EXIT which is executed after successful SAPGUI logon (SUSR0001), see [SAP note 37724|https://service.sap.com/sap/support/notes/37724].

Former Member
0 Kudos

We can use SUSR0001 user exit for sap gui logon.

Implementation of SAP logon user exit SUSR0001 - SAP ABAP,SAPUI5,SAP HANA,SAP Fiori,OData,Netweaver ...

But Which exit or badi runs when user logs via web view?