Adding a Password Field onto a 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_passw like sy-uname.

*******************************************************
*AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN OUTPUT.
loop at screen.
  check screen-name eq 'P_PASSW'.
  move: 1 to screen-invisible.
  modify screen.
endloop.