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

Create a parameter to enter a password

Former Member
0 Likes
3,685

Hello,

I would like to create a parameter in a selection screen to enter a password. How can i made this parameter invisible in order to, do not show the password that is entered?

Thanks in advance

Regards

Rui

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
2,187

report zrich_0001.

parameters: p_pass(20) type c.

at selection-screen output.

loop at screen.

if screen-name = 'P_PASS'.

screen-invisible = '1'.

modify screen.

endif.

endloop.

rgds

anver

Hello,

I would like to create a parameter in a selection screen to enter a password. How can i made this parameter invisible in order to, do not show the password that is entered?

Thanks in advance

Regards

Rui

8 REPLIES 8
Read only

anversha_s
Active Contributor
0 Likes
2,188

report zrich_0001.

parameters: p_pass(20) type c.

at selection-screen output.

loop at screen.

if screen-name = 'P_PASS'.

screen-invisible = '1'.

modify screen.

endif.

endloop.

rgds

anver

Read only

0 Likes
2,187
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,187

password field in selection-screen

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.

start-of-selection.

write 😕 p_user,p_passwd.

check this link also,

Regards

srikanth

Read only

Former Member
0 Likes
2,187

hi

good

WRITE YOUR STATEMENT LIKE THIS

PARAMETERS: p_rfc TYPE c NO-DISPLAY.

THANKS

MRUTYUN^

Read only

Former Member
0 Likes
2,187

Hi

One way to suit your requirement can be done by

calling FM: SSFH_PASSWORD_PROMPT.

Kind Regards

Eswar

Read only

Former Member
0 Likes
2,187

Hi Rui,

try this:

parameters: bcode like RSYST-bcode MODIF ID INV.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-GROUP1 EQ 'INV'.

SCREEN-INVISIBLE = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Regards, Dieter

Read only

Former Member
0 Likes
2,187

Hie Rui ,

The simplest method of having a password field for parameters is :-

1> Go to Tcode- se51.

2> Give your report name and screen name 1000 and select 'Layout Editor'

3> Choose the parameter and go to it's Edit Mode

4> Double click on the parameter name .

5> In the Attributes section .

i> Under programs check mark the *Entry and

ii> Under Display , check mark the Invisible

6> Now save and activate the screen .

7> Now execute your report , you will have password field in your parameters.

Thanks

Lokesh

Read only

Former Member
0 Likes
2,187

PARAMETERS p_pass(20) TYPE c LOWER CASE.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-name = 'P_PASS'.

screen-invisible = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

START-OF-SELECTION.

WRITE p_pass.