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 in screen

Former Member
0 Likes
895

Hi friends,

I make one login screen like user id and password 2 fields are in that.

but in that password field i want to display * so how can i do this?

what can i do in that field in the sceen?

so plz give me reply.

thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
859
parameters: P_pass(10).
at selection-screen output.
loop at screen. 
      if screen-name = 'P_PASS'. 
         screen-invisible = '1'. 
         modify screen. 
      endif. 
endloop.

Refer to these related threads

Message was edited by:

Santosh Kumar Patha

Hi friends,

I make one login screen like user id and password 2 fields are in that.

but in that password field i want to display * so how can i do this?

what can i do in that field in the sceen?

so plz give me reply.

thanks in advance.

4 REPLIES 4
Read only

Former Member
0 Likes
859

HI

<b>IN MODULE POOL</b>

in the PBO use the logic below

loop at screen.

if screen-name = 'PASS_FIELD'. Name of the field given on the screen.

screen-invisible = 'X'.

modify screen.

endif.

endloop.

<b>IN SELECTION SCREEN</b>

REPORT ZTEST_ALV_CHECK MESSAGE-ID ZZ .

PARAMETERS : P_PASS(6).

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'P_PASS'.

SCREEN-INVISIBLE = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

hope it clears ur doubt

regards

ravish

<b>plz dont forget to reward points if useful</b>

Read only

Former Member
0 Likes
860
parameters: P_pass(10).
at selection-screen output.
loop at screen. 
      if screen-name = 'P_PASS'. 
         screen-invisible = '1'. 
         modify screen. 
      endif. 
endloop.

Refer to these related threads

Message was edited by:

Santosh Kumar Patha

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
859

Hi,

If it is a dialog program then goto the screen field's attributes in screen painter SE51 and mark that field as INVISIBLE.

Else write the code in PBO module

module init_screen OUTPUT.

LOOP AT SCREEN.

CHECK SCREEN-NAME = 'FIELD'.

SCREEN-INVISIBLE = 1.

MODIFY SCREEN.

ENDLOOP.

ENDMODULE.

If it is in a report program with selection screen then use this code.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

CHECK SCREEN-NAME = 'FIELD'.

SCREEN-INVISIBLE = 1.

MODIFY SCREEN.

ENDLOOP.

Regards,

Sesh

Read only

Former Member
0 Likes
859

Hi Prashant ,

Go to the properties for the element on the screen for your password field , in the resulting window goto the Program Tab , there you will have a checkbox <b>* entry</b> check that checkbox , this will give you the desired output.

Regards

Arun