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: 

How to print * in Password Field

Former Member
0 Kudos

Dear ALL,

Can anybody tell me to how to print * For Password field.What is that type?

Regards,

Mayank

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Mayank,

If you are using selection screen.

Write Under Event

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-name = 'P_PASS'.

screen-input = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

If it is Modulepool programming.

Under Event

PBO

MOdule screen_pass OUTPUT.

doublie click on your module. write below code.

LOOP AT SCREEN.

IF screen-name = 'P_PASS'.

screen-input = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Here 'P_PASS' is your parameter field name.

Don't forget to reward if useful....

10 REPLIES 10

Former Member
0 Kudos

Hi Mayank,

Refer the code below. This code is checking the Password against a custome database table.

Hope this helps you.

REPORT YLAX_TEST7 .

tables :ZS_ETTIFN_REP.

data : i_ettifn like zs_ettifn occurs 0 with header line,

ws_lines(10) type n.

PARAMETERS: p_pass TYPE xuncode.

*----


*

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-name = 'P_PASS'.

screen-invisible = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

----


START-OF-SELECTION.

select * from ZS_ETTIFN_REP into table i_ettifn .

describe table i_ettifn lines ws_lines.

WRITE: / p_pass,ws_lines.

<b>Reward points if this helps.

Manish</b>

Edited by: Manish Kumar on Feb 11, 2008 12:15 AM

0 Kudos

Hi,

In password field when user enters his password that should be visible as *.give me soln.

Regards,

Mayank

0 Kudos

Hi,

Where do you need the field to be displayed as *?

For report program, check below example:


parameters: p_pass type char10.

at selection-screen output.

   loop at screen.
      if screen-name = 'P_PASS'.
         screen-invisible = 1.
         modify screen.
      endif.

Try executing the same to see the result.

For Module pool program, Check the Invisible parameter in the attributes section of the field.

Regards

Eswar

0 Kudos

hi

parameters : p_pass(8) type INDXPWD.

Regards

Nagesh.Paruchuri

Former Member
0 Kudos

Mayank,

If you are using selection screen.

Write Under Event

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-name = 'P_PASS'.

screen-input = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

If it is Modulepool programming.

Under Event

PBO

MOdule screen_pass OUTPUT.

doublie click on your module. write below code.

LOOP AT SCREEN.

IF screen-name = 'P_PASS'.

screen-input = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Here 'P_PASS' is your parameter field name.

Don't forget to reward if useful....

Former Member
0 Kudos

Hi

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-group1 = 'GRC'.

screen-invisible = '1'.

ENDIF.

Former Member
0 Kudos

Hi,

In PBO event

loop at screen.

if screen-name cp 'ur field name'.

screen-invisible = 1.

modify screen.

endif.

endloop.

Plzz reward points if it helps.

Former Member
0 Kudos

Hi

just double click on the field which u want to be used as password and set parameter as invisible.this is done in screen painter.

Former Member
0 Kudos

hi,

To set it as password field, add the below code in the PBO of the screen:

loop at screen.

if screen-name = 'text box name'.

screen-invisible = '1'.

modify screen.

endif.

endloop.

and it must in selection-screen output.

reward points if helpful..

Former Member
0 Kudos

We should give the name to that text fields(ex: PFLS).

Parameters : fd1(10) modif id PFLS.

at selection-screen output.

loop at screen.

if screen-group1 = 'PFLS'.

screen-invisible = '1'.

endif.

endloop.