Application Development and Automation 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: 
Read only

password

Former Member
0 Likes
937

How field properties are set with * for password in sap

7 REPLIES 7
Read only

Former Member
0 Likes
908

Hi,

parameters:pwd(10).

at selection-screen output.

LOOP AT screen.

IF screen-name = 'PWD'.

screen-invisible = 1.

modify screen.

ENDIF.

ENDLOOP.

rgds,

bharat.

Read only

Former Member
0 Likes
908

The above mentioned way is correct.

Another way is to use the FM HTTP_SCRAMBLE.

l_key type i value 26101957, "fixed value

l_slen type i, "length of the password

l_pwd type c length 50 value 'bhanu'.

Use it like this as shown

CALL FUNCTION 'HTTP_SCRAMBLE'

EXPORTING

SOURCE = l_pwd

sourcelen = l_slen "length of the password

key = l_key "fixed value

IMPORTING

DESTINATION = l_pwd .

hope it helps

Read only

Former Member
0 Likes
908

Hi,

To make a password field, you must set its screen attribute INVISIBLE = 1.

LOOP AT SCREEN.

if screen-name = 'p_pwd'.

screen-invisible = 1.

modify screen.

endif.

ENDLOOP.

Read only

Former Member
0 Likes
908

Hi,

Try this code

Parameters: p_name like sy-uname,

p_pas like sy-uname lower case.

AT SELECTION-SCREEN OUTPUT.

loop at screen.

check screen-name eq 'P_PAS'.

move: 1 to screen-invisible.

modify screen.

endloop.

start-of-selection.

if p_pas = 'password'.

write:/ 'this is working'.

endif.

Regards,

Shalini

Read only

Former Member
0 Likes
908

Hi,

PARAMETERS:
 p_name(15) type c,
 P_NO   LIKE SY-INDEX.


AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name = 'P_NAME'.
      screen-invisible = '1'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

regards,

Rajitha.

Read only

Former Member
0 Likes
908

Hiii!

Try out this code


PARAMETERS:
  p_psd(10) TYPE c .

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name = 'P_PSD'.
      screen-invisible = 1.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

Regards

Abhijeet Kulshreshtha

Read only

RaymondGiuseppi
Active Contributor
0 Likes
908

Look at Basically it's a field input-able and invisible.

Regards