Tuesday, July 31, 2007

Password Field on Selection-screen

The following code sets a PARAMETER to be a password input field, where for security purposes only *'s are displayed on the screen during input i.e. Password: *******
Parameters: p_password like sy-uname.
AT SELECTION-SCREEN OUTPUT.

loop at screen.
check screen-name eq 'P_PASSWORD'.
move: 1 to screen-invisible.
modify screen.
endloop.

No comments: