cancel
Showing results for 
Search instead for 
Did you mean: 

F4 help with OVS - Sort in OVS

Former Member
0 Kudos

Hi,

Is it possible, that a user can sort the values in the table, which is shown by the OVS-Help?

Best regards,

Marcus

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Yes, you need to write code for populating the F4 help values shown by the OVS. So you can definitely sort the table before showing it.

Regards

Wenonah

Former Member
0 Kudos

Yes, I sort the table before, but some users want an other sorting.

Former Member
0 Kudos

Hi,

Could you elaborate on your scenario? I am not able to understand your scenario, and what it is exactly that you want to achieve here..

REgards

Wenonah

Former Member
0 Kudos

Ok I will try it.

I have a programmed a value help which displays the follwing structure:

    BEGIN OF lty_stru_list,
*   add fields for the selection list here
    partner TYPE bu_partner,
    name_last TYPE bu_namep_l,
    name_first TYPE bu_namep_f,
    END OF lty_stru_list.

I sort the output list in WHEN if_wd_ovs=>co_phase_2 by name_last.

The result in the OVS will be shown sorted by name_last, but some users want the list sorted by partner.

And the question is, is it possible to sort the output in the OVS output table dynamically.

Former Member
0 Kudos

Hi,

Once the table contents are displayed as F4 help, you cannot sort them again.

But if you know the conditions based on which you need to sort on a particular field before the OVS gets displayed, you can use an 'if' condition to sort on whichever field you need to, in the WHEN if_wd_ovs=>co_phase_2.

I'm not sure if this answer's your question. Hope it helps.

Regards

Wenonah

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Instead of using OVS, create a freely programmed value help. You can then display the results in an ALV Component and people can sort all they want. Neither the DDic value help or the OVS allow sorting of the tableView.

Answers (0)