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
1,258

how can we make * for password field in dialog programming.

6 REPLIES 6
Read only

Former Member
0 Likes
774

HI ,

ITS SIMPLE

U HAVE FOUR POSSIBLE THINGS ON A SCREEN FIELD:-- <b>ACTIVE, INPUT, OUTPUT, and INVISIBLE,</b>

SET THEM AS FOLLOWS

ACTIVE = '1'.

INPUT = '1'.

OUTPUT = '0'.

INVISIBLE = '1'.

SET THESE ATTRIBUTES DYNAMICALLY

CHEERS!

Read only

Former Member
0 Likes
774

Password Field on Selection-screen

The following code sets a PARAMETER to be a password input field, where for security

purposes only *'s are displayed on the screen during input

i.e. Password: *******

Parameters: p_password like sy-uname. 

*******************************************************
*AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN OUTPUT. 
loop at screen. 
  check screen-name eq 'P_PASSWORD'. 
  move: 1 to screen-invisible. 
  modify screen. 
endloop

.

Read only

Former Member
0 Likes
774

Hi,

You need to write this in LOOP AT SCREEN .

In the PBO of that Screen, write the satement LOOP AT SCREEN and ENDLOOP.

loop at screen.

if screen-name = 'text box name'.

screen-invisible = '1'.

modify screen.

endif.

endloop.

Regards

Sudheer

Read only

Former Member
0 Likes
774

Hello,

Trsy this.

parameters: p_pass type indxpwd.

at selection-screen output.

loop at screen.

if screen-name = 'P_PASS'.

<b> screen-invisible = '1'.</b>

modify screen.

endif.

endloop.

start-of-selection.

write:/ p_pass.

Vasanth

Read only

Former Member
0 Likes
774

Hi Chaya,

Use this pop up function POPUP_GET_USER_PASSWORD.

Pretty decent

Regards,

Aditya

Read only

Former Member
0 Likes
774

execute the code .

This is in a report .

parameters : p_name(10)  type c modif id abc.
at selection-screen output.

loop at screen.
if screen-group1 = 'ABC'.
screen-invisible = '1'.
modify screen.
endif.
endloop.

<b>in dialog program assign a screen group for that field in field attributes

there will be four screen groups avaliable for each field .

here assign it as ABC

now in the PBO

write the code as</b>

loop at screen.

if screen-group1 = 'ABC'.

screen-invisible = '1'.

modify screen.

endif.

endloop.

this will do.

regards,

vijay