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 call pop up box in sap initial screen( where we are entering id and password)

ram_sahoo
Participant

Hi Experts,

I have a requirement to call a popup box with one input field in sap initial screen( where we are entering id and password) and this popup should call based on some condition.Anybody can help me to design this.

My thinking i will call a sub screen as popup box with one input field, Is it possible?. I tried but its not working.

Thanks

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

As far as I know, the only standard solution is the user exit SUSR0001 via CMOD (cf note 37724 - Customer exits in SAP logon) = function module EXIT_SAPLSUSF_001 = include ZXUSRU01.

It's called for any user type (dialog, service, etc.) and any connection type (dialog, RFC, etc.)

So, you must test if SAP GUI is connected, for instance by calling any method of CL_GUI_FRONTEND_SERVICES (for instance CHECK_GUI_SUPPORT), which raises an exception NOT_SUPPORTED_BY_GUI if it's not a dialog connection, and something else if it's a dialog connection.

It's recommended to carefully handle all exceptions and do a global try catch to avoid not being able to login anymore. At the beginning execute the code only for your own user (IF SY-UNAME = 'YOU').

5 REPLIES 5

FredericGirod
Active Contributor

I don't know if it will work, but you could set a default starting meu (trans SU01) or a default program (table AGR_DATEU). if it works, you could perform action before calling the standard default menu ...

former_member216702
Active Participant

Hello,

You could loot at the table SSM_CUST.

With SM30, it is possible to customize the screen after logon.

Best regards.

Thierry

Sandra_Rossi
Active Contributor

As far as I know, the only standard solution is the user exit SUSR0001 via CMOD (cf note 37724 - Customer exits in SAP logon) = function module EXIT_SAPLSUSF_001 = include ZXUSRU01.

It's called for any user type (dialog, service, etc.) and any connection type (dialog, RFC, etc.)

So, you must test if SAP GUI is connected, for instance by calling any method of CL_GUI_FRONTEND_SERVICES (for instance CHECK_GUI_SUPPORT), which raises an exception NOT_SUPPORTED_BY_GUI if it's not a dialog connection, and something else if it's a dialog connection.

It's recommended to carefully handle all exceptions and do a global try catch to avoid not being able to login anymore. At the beginning execute the code only for your own user (IF SY-UNAME = 'YOU').

0 Kudos

Hi Sandra,

I am using same exit what you suggested in above comment. I created a modal dialog screen and called inside exit and written logic as per my requirement but i am not understand the use of class -CL_GUI_FRONTEND_SERVICES (for instance CHECK_GUI_SUPPORT). Can you please elaborate it.

Thanks,

0 Kudos

you mean, why it's important to test if the logon is done in dialog or not in dialog? Or you mean you can't make CL_GUI_FRONTEND_SERVICES work to detect if it's a dialog connection or not?