Skip to Content
avatar image
Former Member

OVS Search help - Change the phase indicator manually

Hello,

I have an input field with OVS search help.

In the OVS event handler, I want to change the phase indicator manually, from 1 to 2.

How can I do it?

Thank you.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 12, 2015 at 08:06 PM

    try this.

    if  ovs_callback_object->phase_indicator GE 1.

    ovs_callback_object->phase_indicator =  ovs_callback_object->phase_indicator + 1.

    endif.

    CASE ovs_callback_object->phase_indicator.

         WHEN if_wd_ovs=>co_phase_0.  "configuration phase, may be omitted

    *   in this phase you have the possibility to define the texts,

    *   if you do not want to use the defaults (DDIC-texts)

         WHEN if_wd_ovs=>co_phase_1.  "set search structure and defaults

    *   In this phase you can set the structure and default values

    *   of the search structure. If this phase is omitted, the search

    *   fields will not be displayed, but the selection table is

    *   displayed directly.

    *   Read values of the original context (not necessary, but you

    *   may set these as the defaults). A reference to the context

    *   element is available in the callback object.

         WHEN if_wd_ovs=>co_phase_2.

    *   If phase 1 is implemented, use the field input for the

    *   selection of the table.

    *   If phase 1 is omitted, use values from your own context.

         WHEN if_wd_ovs=>co_phase_3.

    *   apply result

      

           ENDIF.

       ENDCASE.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      It is give an error:

      Write access to the READ-ONLY attribute "PHASE_INDICATOR" is not allowed outside the class/interface