cancel
Showing results for 
Search instead for 
Did you mean: 

OVS in table

Former Member
0 Kudos

I am using OVS to populate a value in a table column. However, I can't see any way of determining, within OVS phase 4, which table row to update with the help result. Any help would be greatly appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Yashpal
Active Contributor
0 Kudos

Hi ,

In the Phase 3 only where u get the selected row from the ovs assigning to the field is done ... to get on which table row the event is made means the OVS is called can be known through the WDEVENT object ... see the below example ...

FIELD-SYMBOLS: <selection> TYPE TY_VALUE_TAB ( type of the structure of the OVS table .

IF ovs_callback_object->selection IS BOUND.

ASSIGN ovs_callback_object->selection->* TO <selection>.

data : lr_elem type ref to if_wd_context_element .

" use the wdevent object to get the details on which row the OVS is called .

lr_elem = wdevent->get_context_element( name = 'OVS_CONTEXT_ELEMENT' ).

  • set single attribute

lr_Elem->set_Attribute(

Name = 'CNTNO' " attribute name

Value = <selection>-CNTNO ).

Hope this will solve ur problem.

Regards

Yash

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks. That solved it.