Skip to Content
avatar image
Former Member

OVS search help

Hi,

i implement OVS search help for one of the column (col B) in my ALV table. this OVS search help value is dependent on a column value example col A.

if col A = 1, it will display values of 1,

if col A = 2, will display values of 2.

when i.click on colB, how can i check which row in the ALV im clicking OVS search help for, in order for me to get the value of col A of the same row.

thanks,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 06, 2007 at 09:05 AM

    Hi,

    you can use the context element of your callback object,

    just do get_attribute( exporting name = column name

    importing value = value).

    you find the exact name in phase 3 where you paste the selected value into the ovs search help field

    grtz,

    Koen

    sorry too long typing

    Message was edited by:

    Koen Labie

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi!

      You need to use a strucure type for your STRUC_OVS. Try this -

      data STRUC_OVS type wd_this->elements_<i>ctx_node</i>

      where ctx_node is the name of your context node.

      Hope this helps.

      Regards,

      Neha

  • avatar image
    Former Member
    Sep 06, 2007 at 09:04 AM

    You can get the row details as below, where wdevent is the importing parameter in your event handler.

    Data: lr_element type ref to if_wd_context_element.

    lr_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).

    Now do lr_element->get_static_attributes to get the data in the row. Based on the attributes, populate the search table for OVS.

    Regards

    Nithya

    Add comment
    10|10000 characters needed characters exceeded