04-29-2008 9:14 AM
how can we clear Parameters fields and a Select-Options fields at runtime?
i have a parameter field for displaying plant and one select-option for displaying corresponding Materials.
if the user change the Plant, i want to clear the Select-options field.
how it is possible?
04-29-2008 9:18 AM
Hi,
Clear and refresh statements would do for parameters and select-options respectively. But if you want these to get impacted in the screen then you need clear and refresh in
AT SELECTION-SCREEN OUTPUT event.
Thanks and regards,
S. Chandra Mouli.
04-29-2008 9:16 AM
Hi,
For parameters :
clear <field>.
for select-options :
refresh <field>.clear <field>.
04-29-2008 9:18 AM
Hi,
Clear and refresh statements would do for parameters and select-options respectively. But if you want these to get impacted in the screen then you need clear and refresh in
AT SELECTION-SCREEN OUTPUT event.
Thanks and regards,
S. Chandra Mouli.
04-29-2008 9:21 AM
hi this can be done in the at selecton screen output.
regards,
venkat
04-29-2008 9:28 AM
HI,
Try follwing code.But there is one condition that user should press ENTER key after entered plant.
AT SELECTION-SCREEN OUTPUT .
refresh <sel_field>.
04-29-2008 10:01 AM
Hi,
Check the below code.
parameters: p_num type i.
select-options: s_num for p_num.
at selection-screen.
refresh s_num.
if not p_num is initial.
do p_num times.
s_num-low = sy-index.
append s_num.
enddo.
endif.
start-of-selection.
write:/ 'Hi'.
loop at s_num.
write:/ s_num-low.
endloop.