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

Former Member
0 Likes
3,942

hi,

how to create a password field in a selection screen.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,283

Hi,

Using the code given below, the password will be masked in the selection screen.

parameters: p_user type sy-uname,

p_passwd(10) lower case.

at selection-screen output.

loop at screen.

if screen-name = 'P_PASSWD'.

screen-invisible = 1.

modify screen.

endif.

endloop.

START-OF-SELECTION.

WRITE : / 'Password Entered :' , p_passwd.

Hope this helps.

Hi,

Using the code given below, the password will be masked in the selection screen.

parameters: p_user type sy-uname,

p_passwd(10) lower case.

at selection-screen output.

loop at screen.

if screen-name = 'P_PASSWD'.

screen-invisible = 1.

modify screen.

endif.

endloop.

START-OF-SELECTION.

WRITE : / 'Password Entered :' , p_passwd.

Hope this helps.

11 REPLIES 11
Read only

Former Member
0 Likes
2,283
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.
Read only

Former Member
0 Likes
2,283

Refer the following links:

the important thing to not is that you have to make the field as invisible using dynamic screen modifications:

at selection-screen output.

loop at screen.

if screen-name = 'P_PWD'.

screen-invisible = 1.

modify screen.

ENDIF.

endloop.

Read only

Former Member
0 Likes
2,283

Refer the following links:

the important thing to not is that you have to make the field as invisible using dynamic screen modifications:

at selection-screen output.

loop at screen.

if screen-name = 'P_PWD'.

screen-invisible = 1.

modify screen.

ENDIF.

endloop.

Read only

Former Member
0 Likes
2,283

Hi,

Navigate to SCREEN PAINTER and click on the field PASSWORD --- you`ll get the attributes / properties screen, in the display properties check 'INVISIBLE'. Then whatever you type in the PASSWORD field, it`ll appear as *****.

Try it, once u find success reward me the points.

Regards

Read only

Former Member
0 Likes
2,283

hi Ronnie,

Check out this thread..

REPORT ZSAMP .

Tables: mara.

select-options: s_matnr for mara-matnr.

at selection-screen output.

loop at screen.

if screen-name = 'S_MATNR-LOW'.
screen-invisible = 1.
SCREEN-ACTIVE = 1.
modify screen.

endif.
ENDLOOP.

Regards,

Santosh

Read only

Former Member
0 Likes
2,283

Hello Ronie,

U can do using the following code.

LOOP AT SCREEN.

IF SCREEN-NAME = 'P_PWD'.

SCREEN-INVISIBLE = '1'.

Modify screen.

ENDLOOP.

If helps reward.

Vasanth

Read only

Former Member
0 Likes
2,283

Hi Ronie,

Plz refer these posts, they might proove helful

Regards,

Raj

Read only

Former Member
0 Likes
2,283

Hi,

Check the sample code.

REPORT  ZTEST_LOGIN                             .
 
 
parameters: p_user type sy-uname,
            p_passwd(10).
 
 
    at selection-screen output.
 
    loop at screen.
    if screen-name = 'P_PASSWD'.
    screen-invisible = 1.
    modify screen.
    endif.
    endloop.

Regards

vijay

Read only

hymavathi_oruganti
Active Contributor
0 Likes
2,283

REPORT ZTESTH .

tables: mara.

PARAMETER: a TYPE I.

at selection-screen OUTPUT.

loop at screen.

if screen-name = 'A'.

screen-invisible = 1.

modify screen.

endif.

endloop.

START-OF-SELECTION.

WRITE A.

EXECUTE ABOVE REPORT AND CHECK.

Read only

Former Member
0 Likes
2,284

Hi,

Using the code given below, the password will be masked in the selection screen.

parameters: p_user type sy-uname,

p_passwd(10) lower case.

at selection-screen output.

loop at screen.

if screen-name = 'P_PASSWD'.

screen-invisible = 1.

modify screen.

endif.

endloop.

START-OF-SELECTION.

WRITE : / 'Password Entered :' , p_passwd.

Hope this helps.

Read only

Former Member
0 Likes
2,283

Hi Ronie,

Is there anything wrong with all the other codes

Can you answer my question so that i can correct it next time?????

Message was edited by: Chandrasekhar Jagarlamudi