cancel
Showing results for 
Search instead for 
Did you mean: 

OVS in Table ui

Former Member
0 Kudos

Hi Experts,

I working with a table ui and in that three columns are f4 (ovs).When i am selecting f4 help in the table at  first row i am getting the data into the row but if select 2nd row and click on f4 the first row is getting the data and second row is not getting the value.because i am not selecting the leadselect directly clicking on the second row column f4.

Please Provided with required Information

Thanks & Regards

Krishna.

Accepted Solutions (0)

Answers (1)

Answers (1)

amy_king
Active Contributor
0 Kudos

Hi Krishna,

You don't need to do anything special with lead selection to use OVS in a table. In method ON_OVS, parameter OVS_CALLBACK_OBJECT has an attribute CONTEXT_ELEMENT that references the table row which requested the OVS help.

Take a look at the document, . In method ON_OVS in the Phase 3 handling, you can use ovs_callback_object->context_element to set the value the user selected. The referenced context element points to the object that requested OVS help, whether that is a flat field or a field in a table.

case ovs_callback_object->phase_indicator.

    ...

    when if_wd_ovs=>co_phase_3.   " Set user selection in the context

*       Apply result of user selection back to the context
          ovs_callback_object->context_element->set_attribute(
                                name  = 'ATTRIBUTE'
                                value = <ls_selection>-value ).
   endcase.

Cheers,

Amy

Former Member
0 Kudos

Hi Amy,

i need to upload a XLSX (EXCEL) to webdynpro abap table.

please provide me the information.

Thanks & Regards.

Krishna.