cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to display custom header labels in OVS

Former Member
0 Kudos

Hi Experts,

I got a requirement that i need to place custom header labels in OVS selection criteria. I will show you the scenario:

let us take a example:

Header Info

vbeln: input-field

erdat: input-field

Item info

posnr:input-field

baseunit: input-fields.

Here my requirement is how to put custom lables that are " Header info or Item info" in OVS selection criteria,

Help me please.

Accepted Solutions (0)

Answers (3)

Answers (3)

arjun_thakur
Active Contributor
0 Kudos

Hi,

Here my requirement is how to put custom lables that are " Header info or Item info" in OVS selection criteria

you can try this: In the ovs_callback_object->set_configuration() method, pass the value which you want to display as header in the Window_Title parameter.

      ovs_callback_object->set_configuration(
                label_texts  = lt_label_texts
                column_texts = lt_column_texts
                WINDOW_TITLE = 'Header Info
                col_count    = 2
                row_count    = 10 ).

Now your 'Header Info' will come as the title of the search window.

Hope it helps

Former Member
0 Kudos

Hi rammy1,

There is already provision to change the label in Phase 0 of OVS generated code , right? We can renam ethe input field or labels accordinbg to our requirement.

For example:

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)

ls_text-name = `ACTNO`. "must match a field name of search

ls_text-value = `Application No.`. "wd_assist->get_text( `001` ).

INSERT ls_text INTO TABLE lt_label_texts.

Regards,

Simi A M

Former Member
0 Kudos

I guess there is an option for changing the title. Check the methods i OVS of IF_WDR_OVS. there is a title or text in one of the methods. I exactly donot remeber the method name. check it once.