Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to put asterisk password

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member

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.

5 REPLIES 5

Former Member
0 Kudos

Hi

use screen-INVISIBLE = 1.

IF EQU_TYPE_IE01 EQ 'Y'.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'GRP'.

SCREEN-INVISIBLE = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

reward points to all helpful answers

kiran.M

Former Member
0 Kudos

Hi,

E.g: Consider parameter as P_INPUT

You need to write code in AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

CHECK SCREEN-NAME = 'P_INPUT'.

SCREEN-INVISIBLE = 1.

MODIFY SCREEN.

ENDLOOP.

Thanks,

Reward If Helpful.

varma_narayana
Active Contributor
0 Kudos

Hi..

PARAMETERS : P_NAME(10).

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN .

IF SCREEN-NAME = 'P_NAME'.

SCREEN-INVISIBLE = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

<b>Reward if Helpful</b>

Former Member
0 Kudos

Hi try this

it would work fine

Parameters: p_passw like sy-uname.

AT SELECTION-SCREEN OUTPUT.

loop at screen.

check screen-name eq 'P_PASSW'.

move: 1 to screen-invisible.

modify screen.

endloop.

Former Member

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.