cancel
Showing results for 
Search instead for 
Did you mean: 

Refresh select-options

Former Member
0 Kudos

Hi all,

I have select options and one refresh button.

In output screen i will enter values in select-options (selection-screen) and i want delete all those entered data by clicking on refresh button, so that i can enter new values..

can anyone suggest this?

Thanks all

Accepted Solutions (0)

Answers (2)

Answers (2)

saravanan_narayanan
Active Contributor
0 Kudos

Hello Vani,

call the RESET_ALL_SELECTION_FIELDS method of the IF_WD_SELECT_OPITIONS. this will reset all the selection fields.


data lo_interfacecontroller type ref to iwci_wdr_select_options .
data lo_handler type ref to if_wd_select_options.

lo_interfacecontroller =   wd_this->wd_cpifc_select_options( ).
lo_handler = lo_interfacecontroller->init_selection_screen( ).
lo_handler->RESET_ALL_SELECTION_FIELDS( ).

alernative:

you can enable the Reset the button of the WDR_SELECT_OPTION


data lo_interfacecontroller type ref to iwci_wdr_select_options .
data lo_handler type ref to if_wd_select_options.

lo_interfacecontroller =   wd_this->wd_cpifc_select_options( ).
lo_handler = lo_interfacecontroller->init_selection_screen( ).
lo_handler->set_global_options(
      i_display_btn_cancel  = abap_false
      i_display_btn_check   = abap_false
      i_display_btn_reset   = abap_true
      i_display_btn_execute = abap_false ).

BR, Saravanan

Edited by: Saraa_n on Aug 3, 2011 7:13 AM

Former Member
0 Kudos

Thank u

Former Member
0 Kudos

Just write some code to clear the contents of the context your select-options are bound to; call this code from the action triggered when clicking the button...