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

Selection screen

Former Member
0 Likes
417

Hi,

How can I create a field which displays similar to the

password field with the input hidden.

Regards,

Kishan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
404

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
Read only

Former Member
0 Likes
405

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.

Read only

Former Member
0 Likes
404

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

Read only

Former Member
0 Likes
404

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