cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot update settings of selection option field

0 Kudos

Hi experts,

I used Method UPD_SELECTION_FIELD to update the Settings of selection field during runtime. the code is like this:

wd_comp_controller->mi_add_sel_handler->upd_selection_field(

EXPORTING

i_id = 'LAND1'

i_read_only = lv_read_only ).

But this didn't work.

Have you met this problem? what can I do to solve this?

Best regards

Julia

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

instead of the upd_selection_field method , use the method add_selection_field .

Initially , for the parameter i_read_only use the attribute created under ATTRIBUTE's tab and set it to abap_false.

In the OnAction of the checkbox, set the variable under the ATTRIBUTE's tab to abap_true.

regards,

Amit

Former Member
0 Kudos

Hi,

Please refer the below threads. The below post says that UPD_SELECTION_FIELD is not working in similar cases.

The below post gives an alternate solution for this. In the last reply, you can find the actual steps.

If you still have difficulty, please post.

Edited by: Mohamed Aslam on Jul 12, 2010 10:59 AM

Edited by: Mohamed Aslam on Jul 12, 2010 11:00 AM

0 Kudos

Hi Mohamed,

Thanks a lot for your help. But it still doesn't work...

Best regards

Julia