Program To Change Text Into Password

I had a doubt for creating a password.

How can I change text into password(*******) in a text box? 
eg: I will give some password in a text field.   But it must appear in ******* like that..

To set it as password field, add the below code in the PBO of the screen:

loop at screen.
      if screen-name = 'text box name'.
         screen-invisible = '1'.
         modify screen.
      endif.
endloop.

and it must  in selection-screen output.

ABAP Tips by: Stephen

Fast Links:
Encryption or Decryption of any Field
Function Module for Encryption and Decryption

Get help for your ABAP problems
Do you have a ABAP Question?

ABAP Books
ABAP Certification, BAPI, Java, Web Programming, Smart Forms, Sapscripts Reference Books

More ABAP Tips

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.