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: 

password in screen

Former Member
0 Kudos

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

Former Member
0 Kudos
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

4 REPLIES 4

Former Member
0 Kudos

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>

Former Member
0 Kudos
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

0 Kudos

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

Former Member
0 Kudos

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