User-Specific Changes
Use
To change the layout and the logon process according to your special requirements, you can make user-specific changes in addition to the settings that are possible on the configuration screen.
Process
-
Create a new class that is a subclass of CL_ICF_SYSTEM_LOGIN.
-
You change the layout of the logon screen by overwriting the htm_login method in the new class.
-
To modify the screen for the password change, overwrite the htm_change_passwd method.
Constants
Below is a list of all constants used by the system, which are necessary for changes to the process and layout of logging on and changing passwords:
Logon
|
Constant |
Description |
|
CO_SAP_USER |
Name and ID of the input field for the user name |
|
CO_SAP_PASSWORD |
Name and ID of the input field for the password |
|
CO_SAP_CLIENT |
Name and ID of the input field for the client |
|
CO_SAP_LANGUAGE |
Name and ID of the input field for the language |
|
CO_FORM_LOGIN |
Form name |
|
CO_JS_SUBMIT_LOGIN |
Name of the JavaScript function to be called when a pushbutton is pressed on the logon screen |
|
CO_EVENT_LOGIN |
Event raised when the logon pushbutton is pressed |
|
CO_EVENT_CHANGE_PASSWORD |
Event raised when the Change Password pushbutton is pressed |
|
CO_EVENT_BASIC_AUTHENTICATION |
Event to raised when the Basic Authentication pushbutton is pressed |
|
M_SAP_APPLICATION |
Value of the form attribute action |
Password change
|
Constant |
Description |
|
CO_PASSWORD |
Name and ID of the input field for the current password |
|
CO_PASSWORD_NEW |
Name and ID of the input field for the new password |
|
CO_PASSWORD_REPEAT |
Name and ID of the input field for repeating the new password |
|
CO_FORM_CHANGE_PASSWORD |
Form name |
|
CO_JS_SUBMIT_CHANGE_PASSWORD |
Name of the JavaScript function to be called when a pushbutton is pressed on the change password screen |
|
CO_EVENT_DO_CHANGE_PASSWORD |
Event raised when the Change pushbutton is pressed |
|
CO_EVENT_CANCEL_PASSWORD |
Event raised when the Cancel pushbutton is pressed |
|
CO_EVENT_CONTINUE_PASSWORD |
Event raised when the Continue pushbutton is pressed after successfully changing the password |
|
M_SAP_APPLICATION |
Value of the form attribute action |
You can use the following classes as a reference to implementation additional functions:
-
CL_ICF_BASIC_LOGIN
-
CL_ICF_IDES_LOGIN
-
CL_ICF_NW04_LOGIN
Example
You can find a sample implementation in the system in the class CL_ICF_EXAMPLE01_LOGIN and in the following simple example.