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.
AT SELECTION-SCREEN OUTPUT.
loop at screen.
  check screen-name eq 'P_PASSWORD'.
  move: 1 to screen-invisible.
  modify screen.
endloop.

Related Articles

SAP / ABAP Security - Information on various areas of SAP security
SAP EarlyWatch Alert report - Automatic checks for security notes using RSECNOTE