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

Disable a parameter in a selection-screen

Former Member
0 Likes
723

Hi,

How can i disable a parameter in a selection-screen? Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
687

Hello Winnie,

Yes you can. Try this one:

<><><><><><><><><><><><><><><><><><><><><><><><><><><>

Parameters: aram1 like mara-matnr.

AT SELECTION-SCREEN OUTPUT.

loop at screen.

if screen-name eq 'PARAM1'.

screen-input = 0.

modify screen.

endif.

endloop.

<><><><><><><><><><><><><><><><><><><><><><><><><><><>

Happy coding!

Hi,

How can i disable a parameter in a selection-screen? Thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
688

Hello Winnie,

Yes you can. Try this one:

<><><><><><><><><><><><><><><><><><><><><><><><><><><>

Parameters: aram1 like mara-matnr.

AT SELECTION-SCREEN OUTPUT.

loop at screen.

if screen-name eq 'PARAM1'.

screen-input = 0.

modify screen.

endif.

endloop.

<><><><><><><><><><><><><><><><><><><><><><><><><><><>

Happy coding!

Read only

0 Likes
687

Thanks! Points awarded accordingly.

Read only

Former Member
0 Likes
687

Use

LOOP at SCREEN.

if screen-name = 'PARAMETER NAME'.

screen-invisible = 1. if you want to hide it

screen-output = 1. if you want to disable it,

screen-input = 0. if you want to disable it,

endif.

endloop.

If you are working with HR try the HR Report category in the attributes of the program.

Please Reward points if this helps.

Read only

Former Member
0 Likes
687
parameter: r radiobutton group g1 user-command 'ABC',
           r1  radiobutton group g1.
parameters: p_matnr like mara-matnr,
            p_vbeln like vbak-vbeln.
at selection-screen output.

if r = 'X'.
loop at screen.
if screen-name = 'P_MATNR'.
screen-input = '0'.
clear p_matnr.
modify screen.
endif.
endloop.

endif.

if r1 = 'X'.
loop at screen.
if screen-name = 'P_VBELN'.
screen-input = '0'.
clear p_VBELN.
modify screen.
endif.
endloop.
endif.