Application Development 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: 

how can we clear Parameters fields and a Slect-Options fields at runtime?

Former Member
0 Kudos

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?

1 ACCEPTED SOLUTION

former_member784222
Active Participant
0 Kudos

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.

5 REPLIES 5

Former Member
0 Kudos

Hi,

For parameters :

clear <field>.

for select-options :

refresh <field>.clear <field>.

former_member784222
Active Participant
0 Kudos

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.

Former Member
0 Kudos

hi this can be done in the at selecton screen output.

regards,

venkat

Former Member
0 Kudos

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>.

Former Member
0 Kudos

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.