Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to put asterisk password

Hi

I am trying to put password field with asterisk and i dont know how to do it

( I mean like the logon to sap )

Thanks

Have a nice day

Tags:
Former Member
Former Member replied

Hello Yossi Balan,

Consider this code. It uses class CL_HTTP_UTILITY.

Just execute this code in SE38.

REPORT zarun_pass .

PARAMETERS : pass(32) TYPE c.

DATA : passwd TYPE string,

encoded TYPE string,

decoded TYPE string.

passwd = pass.

CONDENSE passwd.

CALL METHOD cl_http_utility=>if_http_utility~encode_base64 "Method for Encryption

EXPORTING

unencoded = passwd

RECEIVING

encoded = encoded.

CALL METHOD cl_http_utility=>if_http_utility~decode_base64 "Method for Decryption

EXPORTING

encoded = encoded

RECEIVING

decoded = decoded.

WRITE : / 'Password Entered :' , pass,

/ 'Encrypted Password :' , encoded,

/ 'Decrypted Password :' , decoded.

Reward If Helpful.

Regards

--

Sasidhar Reddy Matli.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question