07-20-2020 12:28 PM
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
07-20-2020 2:28 PM
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').
07-20-2020 12:38 PM
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 ...
07-20-2020 1:56 PM
Hello,
You could loot at the table SSM_CUST.
With SM30, it is possible to customize the screen after logon.
Best regards.
Thierry
07-20-2020 2:28 PM
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').
07-21-2020 12:11 PM
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,
07-21-2020 12:21 PM
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?