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: 

creating password fields which shows ****

Former Member
0 Kudos
2,272

Hi,

can anyone help me with creating a password field in which the entry looks like *******

thanks

5 REPLIES 5

Former Member
0 Kudos
282

hi,

While creating a text field in screen painter, in the properties where you specify field name, type etc there is a checkbox named as Invisible tick on that and the field will display only astricks.

Former Member
0 Kudos
282

If you want that to happen on the selection-screen then just follow this:

In the screen internal table, follow the combination of 'ACTIVE', 'INPUT', 'OUTPUT' and 'INVISIBLE' as '1101' or '1111'.

You should be able to get asteriks using above combinations.

Be careful in programming them. i.e, assign them values in the 'AT SELECTION-SCREEN OUTPUT' event.

Reward points if helpful

Regards

Former Member
0 Kudos
282

HI,

In SE51 while u r creatin input/ouput box in the screen,on pessing f2 on the element, in attribures tab, u have a option called display, in that mark the checkbox for Invisible.

Now, watever u type in this field, it will appear as ****

Former Member
0 Kudos
282

Hi Manish,

You can refer these links...

Hope this helps...

Regards,

SP.

Former Member
0 Kudos
282

Hi Manish.....

Try the following code.....

it helps you a lot.......

PARAMETERS :

USERNAME(10) TYPE C,

PASSWORD(10) TYPE C.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'PASSWORD'.

SCREEN-INVISIBLE = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

START-OF-SELECTION.

WRITE: 'User name is : ' , USERNAME,

/'Password is : ', PASSWORD.

if u want any explanation see :

http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/dbab6235c111d1829f0000e829fbfe/frameset.htm

Reward points if useful.......

Suresh......