2005 Dec 20 6:15 AM
Hi,
How can i disable a parameter in a selection-screen? Thanks.
2005 Dec 20 6:18 AM
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!
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!
2005 Dec 20 6:18 AM
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!
2005 Dec 20 6:21 AM
2005 Dec 20 6:19 AM
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.
2005 Dec 20 6:20 AM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |