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

Former Member
0 Likes
814

Hi SAP guru's,

I am displaying a customer report using alv_list..I am disaplying various list on the same page. When I use Do sum in field catalog, the total is displayed at the end of the last list. I want to display the total after every list..How do i do this?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
795

Use sorting option available on List display func. module.

So create sorting table and pass to the func. module.

Regards,

Amey

6 REPLIES 6
Read only

Former Member
0 Likes
796

Use sorting option available on List display func. module.

So create sorting table and pass to the func. module.

Regards,

Amey

Read only

Former Member
0 Likes
795

DATA it_sort TYPE slis_t_sortinfo_alv WITH HEADER LINE.

  • INTERNAL TABLE SORT LOGIC

it_sort-spos = l_pos.

it_sort-fieldname = 'POSID'.

it_sort-tabname = 'IT_FINAL'.

it_sort-up = 'X'.

APPEND it_sort.

l_pos = '2'.

it_sort-spos = l_pos.

it_sort-fieldname = 'POST1'.

it_sort-tabname = 'IT_FINAL'.

it_sort-up = 'X'.

APPEND it_sort.

and pass it_sort to std. func. module you are using.

specify your fieldname, i have given just a example.

Regards,

Amey

Message was edited by:

Amey Potale

Read only

Former Member
0 Likes
795

Can you plz give the code?

Read only

Former Member
0 Likes
795

Again, the total is displayed at the end of the last list....I want the total to be displayed for every list...Plz clarify..

Read only

0 Likes
795

If you are displaying multiple lists, woudln't the field catalog be different for each of them? at least I would think so, if you are you using REUSE_ALV_BLOCK_LIST_APPEND. Don't know if it is OO ALV..

~Suresh

Read only

Former Member
0 Likes
795

The field catalog is the same for all the litss..actually the customer number and name would be displayed first and then the line items would be displayed in the alv list..So for every customer I need the total for the line items..