Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

alv reports

Former Member
0 Likes
342

how can we write one field inassending order and another is in dessending order in alv reports?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
325

hi,

u can set one field in ascending order and other in descending order. U need to set that option field catalog.

up : 'X' = sort in ascending order

u2022 down : 'X' = sort in descending order

useful reward points

2 REPLIES 2
Read only

Former Member
0 Likes
326

hi,

u can set one field in ascending order and other in descending order. U need to set that option field catalog.

up : 'X' = sort in ascending order

u2022 down : 'X' = sort in descending order

useful reward points

Read only

Former Member
0 Likes
325

Hi,

You can yse accending and descending like wise mentioned below. after that define this sort table in REUSE_ALV_GRID/LIST_DISPLAY -


IT_SORT.

t_sort_h-fieldname = 'NETWR'.

t_sort_h-tabname = 'T_vbak'.

t_sort_h-up = 'X'.

t_sort_h-subtot = 'X'.

append t_sort_h.

clear t_sort_h.

t_sort_h-fieldname = 'vat'.

t_sort_h-tabname = 'T_VBAK'.

t_sort_h-DOWN = 'X'.

t_sort_h-subtot = 'X'.

append t_sort_h.

clear t_sort_h.

reward if helpful.

Thanks