cancel
Showing results for 
Search instead for 
Did you mean: 

problem with OVS search result table..pls hlp

Former Member
0 Kudos

Hi friends,

I have crated an OVS search help. .and its working fine when i hit F4.

but when i hit search button.. the result table is showing more number of rows(blank), though the result has just 2 records returned.

there are many no of blank rows. i wnat to get rid of this.

i also tried to give the default no of rows in my componet (OVS), layout table.

but still its not decreasing.

can someone help me howto solve this.

Niraja

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Niraja,

For ur case , you just need to make a small change in the code you have written.

In the Phase 0 (i.e co_phase_0.) when you are setting the configuration please change the RowCount to -1.

WHEN if_wd_ovs=>co_phase_0.

ovs_callback_object->set_configuration(

row_count = -1 ).

In Case you have not implemented this phase do implement the above code in the event handler.

I hope this way your problem will be solved.

Thanx.

Answers (3)

Answers (3)

Former Member
0 Kudos

hi u can refer to below link

https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/ovs%252bsearch%252bhelp

hope it may help u

regards reeha

Former Member
0 Kudos

its almost teh same example im getting everywhere.. but it doenst say how to delte the unused rows, though ther are non editable.. i dont want the extra rows..in the resulta table..

Niraja

uday_gubbala2
Active Contributor
0 Kudos

Hi Niraja,

The OVS would display many number of blank rows but only the ones containing data would be looking like editable (they aren't editable though...) with a bright white background. The rest of the rows would appear in greyed out manner. Isn't it how it appears for you?

Regards,

Uday

Former Member
0 Kudos

wow... Uday i think ur master in WDA.

you are correct. but because of that even if search result returened just 2 rows.. User has to go scroll down and hit copy button, which is they are not acceptiong.. can we make it non display or remove the other rows.. ?

Niraja

Former Member
0 Kudos

Hi,

In the event handler of OVS, in configuration phase i.e. if_wd_ovs=>co_phase_0

set_configuration function is there, in this one export parameter row_count is there.

In this u can set the no of rows which u want in the output. if u does not want the blank rows then make this parameter as '-1'.

Like in the below coding ,

ovs_callback_object->set_configuration(

label_texts = lt_label_texts

column_texts = lt_column_texts

group_header = lv_group_header

window_title = lv_window_title

table_header = lv_table_header

col_count = 2

row_count = -1 ).

Thanks,

Pankaj Aggarwal

Edited by: Pankaj Aggarwal on Dec 11, 2008 6:57 AM

Former Member
0 Kudos

Hi Niraja,

When you implement event handler for OVS search, you must have seen the code that gets automatically generated when you assign OVS event to that event handler. i.e.

case ovs_callback_object->phase_indicator.

  • THE FIRST PHASE WHICH SET CONFIG PARAMETERS

  • --------------------------------------------

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).....

and so on.......

so here inside co_phase_0 you can set the requried data by calling this method:

ovs_callback_object->set_configuration(

label_texts = lt_label_texts

column_texts = lt_column_texts

group_header = lv_group_header

window_title = lv_window_title

table_header = lv_table_header

col_count = 2

row_count = 20 ).

Here I have hard coded no. of rows to 20 you can just set it to variable which may be holding your rowcount.

I hope this will help you.

Regards,

Neha Modi

uday_gubbala2
Active Contributor
0 Kudos

Hi Niraja,

Guess not as great a master as you are though. I dont get as to why the user would have any problem to select a row. The button is displayed at the bottom end of the OVS help window below the waveline so I dont understand as to why you say that the user has to scroll to find that bottom while that button is always visible. One more thing is that the user needn't do a lead selection & click the copy button as he can directly click on the row to copy a row. Am sorry if you have implemented any other special functionality & am going wrong.

Regards,

Uday

Former Member
0 Kudos

Hi Niraja,

You can refer the below blog.

[https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9502] [original link is broken] [original link is broken] [original link is broken];

Hope this will help.

Thanks

Shruti