cancel
Showing results for 
Search instead for 
Did you mean: 

Hide Columns of OVS F4 Help

Former Member
0 Kudos

Hello all,

I have an OVS selection list with seven fields and I need all of those fields from the user selection from OVS . However, only five of those seven columns must be visible in the selection list.

cann any one show me how to solve this?



Thank you very much

Accepted Solutions (0)

Answers (2)

Answers (2)

ramakrishnappa
Active Contributor
0 Kudos

Hi Ofla,

The parameters COL_COUNT & ROW_COUNT are made as obsolete, no longer evaluated in set_configuration( ) method

You need to define custom structure for OUTPUT , as below

TYPES:

    BEGIN OF lty_stru_output,

      carrid TYPE scarr-carrid,

      carrname   TYPE scarr-carrname,

    END OF lty_stru_output.


data: lt_output type table of ty_stru_output.



Here, you include the columns which are required to be displayed.



Regards,

Rama

Former Member
0 Kudos

Did you implement the OVS for this component? If yes, you can Change the structure for the Output list

Former Member
0 Kudos

yes I did, BUT I need all columns and only five columns schould be visible.

Former Member
0 Kudos

The Component which is calling the OVS has all columns, you can "send" only your five columns to OVS (if_wd_ovs=>co_phase_3).

When getting result (co_phase_4) you can Loop at selection and read all columns from Phase_3.

Just put the result of Phase_3 into an view attribute

Former Member
0 Kudos

i think you ment  if_wd_ovs=>co_phase_1 and if_wd_ovs=>co_phase_2

or if_wd_ovs=>co_phase_2 and if_wd_ovs=>co_phase_3.

I just tryed it... its not working

Former Member
0 Kudos

Of course it works, I think your coding does not work

Former Member
0 Kudos

there is no if_wd_ovs=>co_phase_4 and when i Hide some columns, i dont get back them when clicking on OK button of OVS

Former Member
0 Kudos

Yes, you will not get them back, but you have the table with all results in your view-attribute. So, you can just Loop to the selected values and read the table with all columns! Then you have all columns!

Former Member
0 Kudos

yes but this way i have to make some coding and comparing all columns, to get back hided columns.

i thounth its possible by using simple coding or just giving columns nummber as below.

ovs_callback_object->set_configuration(               

window_title = 'title'               

table_header = 'title'               

col_count    = 2               

row_count    = 10 ).