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: 

Selection screen

Former Member
0 Kudos

Hi,

How can I create a field which displays similar to the

password field with the input hidden.

Regards,

Kishan

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Kishan,

You can do it by setting the invible property.

Try this code:

PARAMETERS pass(12) MODIF ID mod.

AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
      IF screen-group1 = 'MOD'.
        screen-invisible = '1'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.

Regards,

Wenceslaus.

3 REPLIES 3

Former Member
0 Kudos

Hi Kishan,

You can do it by setting the invible property.

Try this code:

PARAMETERS pass(12) MODIF ID mod.

AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
      IF screen-group1 = 'MOD'.
        screen-invisible = '1'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.

Regards,

Wenceslaus.

Former Member
0 Kudos

Hi

Yes you can create a filed like that,but can you give me some brief about your requirement.

I mean in which context you want a such kind of field.I hope i can give me more idea after that.

Thanks

Mrutyunjaya Tripathy

Former Member
0 Kudos

Hi,

Another code:

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.

Regards,

Anjali