cancel
Showing results for 
Search instead for 
Did you mean: 

Reset Values of Select Options

Former Member
0 Kudos

HI,

I have a requirement where i have to reset values of select options.

Scenario is like this:

User enters values in select options and data is displayed.

User go back to main page and navigate back to page having select options, but old values are still there ion select options.

I need to reset those values.

Kindly let me know how to achieve this.

Regards,

Sangvir Singh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi you can reset your all selection fields values by the piece of code written below

Attribute tab : 
WD_THIS	               IF_MAIN_VIEW	    " Self-Reference to Local Controller Interface
M_HANDLER                 IF_WD_SELECT_OPTIONS       " reference to the interface 

in on action reset : 

wd_this->M_HANDLER->reset_all_selection_fields( ).

if you want to reset particular field

wd_this->M_HANDLER->RESET_SELECTION_FIELD(  I_ID   ='ID_MATNR' ).

Regards

chinnaiya P

mvoros
Active Contributor
0 Kudos

Hi,

jsut simply get reference to select options and use method IF_WD_SELECT_OPTIONS~RESET_ALL_SELECTION_FIELDS to reset selection fields.

Cheers