10-13-2008 12:02 PM
Hello all,
I want to make the high value input field of a select option disabled based upon some condition.
Precisely if the condition is true then the select option high value will be accepted otherwise not.
Please let me know how I will proceed.
Thanks,
Sudipto
10-13-2008 12:05 PM
Hi,
1. In At Selection-Screen event , you have to use :
loop at screen.
if screen-name = 'SELCTOPTIONNAME-HIGH'.
if conditon is true.
screen-input = '1'.
else.
screen-inout = '0'.
endif.
endloop.
Thanks & Regards,
Navneeth K.
10-13-2008 12:05 PM
Hi,
1. In At Selection-Screen event , you have to use :
loop at screen.
if screen-name = 'SELCTOPTIONNAME-HIGH'.
if conditon is true.
screen-input = '1'.
else.
screen-inout = '0'.
endif.
endloop.
Thanks & Regards,
Navneeth K.
10-13-2008 12:09 PM
Hi Navneeth,
I would use the following event:
at selection-screen OUTPUT.
This works better, I think...
Best regards,
Jörg Racz
10-13-2008 12:07 PM
Hi Sudipto,
For this type of requirement you can use the event " AT SELECTION SCREEN OUTPUT".
and inside this event put
Loop at Screen
if Screen-name = 'field name'.
Screen-input = 'X'.
endif.
EndLoop.
Thanks,
Chidanand
10-13-2008 12:07 PM
hi,
try like this.
if ........
loop at screen.
if screen-name = s_matnr-high.
screen-output = 0.
modify screen
endif.
endloop.
endif.
10-13-2008 12:11 PM
Here,
report ztest.
tables vbak.
select-options : p_s1 for vbak-vbeln.
at selection-screen output.
loop at screen.
* Stick the condition here.
if screen-name = 'P_S1-HIGH'.
* screen-active = 0.
screen-input = 0.
modify screen.
endif.
endloop.
You can check for any condition before doing this. You can write the code in the PAI ( at selection-screen on ) of another select-option or parameter also.
regards,
Advait
10-13-2008 1:25 PM
Hi,
Check the following code:
tables: mara.
parameters: p_rd1 radiobutton group grp1 user-command cmd1,
p_rd2 radiobutton group grp1.
select-options: s_matnr for mara-matnr.
at selection-screen output.
if p_rd2 = 'X'.
loop at screen.
if screen-name = 'S_MATNR-HIGH'.
screen-input = 0.
endif.
modify screen.
endloop.
endif.
Regards,
Bhaskar