Skip to Content
author's profile photo Former Member
Former Member

OVS in table

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jan 30, 2008 at 05:27 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 05:36 PM

    Thanks. That solved it.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.