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

Regarding ALV

sreeramkumar_madisetty
Active Contributor
0 Likes
493

Hi Gurus

I am developing the ALV report as follows:

Confirmed Qty | SalesUnit

10 EA

20 EA

30(TOTAL) EA

10 KG

5 KG

15(TOTAL) KG

Please suggest me the idea.

Regards,

Kumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
463

Hi sree,

coudnt clearly understand wat u are looking for...but if u are looking for subtotals..

the following sample code might help..

data: i_sort type slis_t_sortinfo_alv,

wa_sort type slis_sortinfo_alv.

wa_sort-spos = '1'.

wa_sort-fieldname = 'line'.

wa_sort-up = 'x'.

wa_sort-subtot = 'x'.

append wa_sort to i_sort.

clear wa_sort.

and use the internal table in the respective fm...

hope this helps u a bit,

all the best,

regards,

sampath

  • mark helpful answers

if solved please close multiple threads to make sdn easy and better

Message was edited by:

sampath pilla

Hi Gurus

I am developing the ALV report as follows:

Confirmed Qty | SalesUnit

10 EA

20 EA

30(TOTAL) EA

10 KG

5 KG

15(TOTAL) KG

Please suggest me the idea.

Regards,

Kumar

3 REPLIES 3
Read only

Former Member
0 Likes
464

Hi sree,

coudnt clearly understand wat u are looking for...but if u are looking for subtotals..

the following sample code might help..

data: i_sort type slis_t_sortinfo_alv,

wa_sort type slis_sortinfo_alv.

wa_sort-spos = '1'.

wa_sort-fieldname = 'line'.

wa_sort-up = 'x'.

wa_sort-subtot = 'x'.

append wa_sort to i_sort.

clear wa_sort.

and use the internal table in the respective fm...

hope this helps u a bit,

all the best,

regards,

sampath

  • mark helpful answers

if solved please close multiple threads to make sdn easy and better

Message was edited by:

sampath pilla

Read only

Former Member
0 Likes
463

You have to sorting onUnit of measure and sum on Qty.

Regards,

Sujatha.

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
463

answered