cancel
Showing results for 
Search instead for 
Did you mean: 

OVS Screen Problem

vinodkumar_thangavel
Participant
0 Kudos

Hi Friends,

I have designed a normal table in WD ABAP and in that for a field i have to set the OVS and i tried the same using component (WDR_OVS) and i have called the same in event handler too but when ever the screen opens it is displaying the search fields along with some standard text as attached in the screen shot.

Kindly help me how to resolve it.

Thanks & Regards,

Vinodkumar.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Refer the following code.

CASE   ovs_callback_object->phase_indicator.

WHEN if_wd_ovs=>co_phase_0.

IF ovs_callback_object->context_attribute = 'MYTEXT'.

        ls_text-name = `MYTEXT`"must match a field name of search
        ls_text-value = '<desired text to show>'`. "
        INSERT ls_text INTO TABLE lt_label_texts.

ENDIF.

ENDCASE.

Thanks

KH

vinodkumar_thangavel
Participant
0 Kudos

Hi Katrice Hawkins,

Thanks for the reply ,

Even i tried with the same but my concern is the screen has the standard text as marked in Red box which should not appear.

CASE ovs_callback_object->phase_indicator.

     WHEN if_wd_ovs=>co_phase_0.

       ls_text-name = `EMP_NAME`.

       ls_text-value = `Employee Name`.

       INSERT ls_text INTO TABLE lt_label_texts.


      ovs_callback_object->set_configuration(

                 label_texts  = lt_label_texts

                 column_texts = lt_column_texts

                 window_title = lv_window_title

                 table_header = lv_table_header ).

WHEN if_wd_ovs=>co_phase_1.

      ovs_callback_object->context_element->get_static_attributes(

           IMPORTING static_attributes = ls_search_input ).

      ls_search_input-emp_name = ''.

       ovs_callback_object->set_input_structure(

           input = ls_search_input ).

Thanks & Regards,

Vinodkumar.

Former Member
0 Kudos

Hi,

Refer this thread Removing search Criteria Text in OVS search help.

Else.

Hide that search criteria text using config mode i.e by appending SAP-CONFIG-MODE=X in your URL.

Hope this helps you.

Thanks

KH              

vinodkumar_thangavel
Participant
0 Kudos

Hi Katrice Hawkins,


Thanks a lot it works .


Regards,

Vinodkumar,


Answers (0)