cancel
Showing results for 
Search instead for 
Did you mean: 

Select Options - OVS - Need to get object referance

ashish_shah
Contributor
0 Kudos

Hi Experts,

I need to get the attribute referance of the select options field which has OVS attached to it.

However when i try the following code , io_value does not get any class referance assigned.


  DATA: lo_element               TYPE REF TO if_wd_context_element,
        io_value                 TYPE REF TO data,
        lv_name                  TYPE string.

      lo_element = ovs_callback_object->context_element.
      io_value = lo_element->get_attribute_ref( name = I_OVS_DATA-M_SELECTION_FIELD_ID ).

I can get the same attribute referance when the OVS is attached to the parameter ( Input field ).

as per the code below.


  DATA: lo_element               TYPE REF TO if_wd_context_element,
        io_value                 TYPE REF TO data,
        lv_name                  TYPE string.

    lv_name = ovs_callback_object->context_attribute.
    lo_element = ovs_callback_object->context_element.
    lo_value = lo_element->get_attribute_ref( name = lv_name ).

Can you guys help to get the same referance working for select options field?

Regards,

Ashish Shah

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Ashish,

" Get the attribute reference of the field

DATA ld_context_attribute TYPE string.

wdevent->get_data( EXPORTING name = 'OVS_CONTEXT_ATTRIBUTE'

IMPORTING value = ld_context_attribute ).

Hope it solve.

Regards

Vasundhara