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

Urgent....

samiullah_qureshi
Active Contributor
0 Likes
502

Hi All,

My requiremet is to display a ALV in which 3 fields are summed up before the ALV is displayed.Upto this point it is working fine.

S no C Code Vendor Document no Amount

1 in10 10000 8460006345 100000

2 in10 10000 8460006345 50000

8 in10 10000 8460006345 50000

3 in10 10001 8460006346 50000

250000

The next requirement is when the user selects a column and do subtotal then the corresponding columns values should be sorted out.If suppose i do the subtotal on vendor field then following output comes

S no C Code Vendor Document no Amount

1 in10 10000 8460006345 100000

2 in10 8460006345 50000

3 in10 10001 8460006346 50000

200000

8 in10 10000 8460006346 50000

50000

250000

But it should come like this

S no C Code Vendor Document no Amount

1 in10 10000 8460006345 100000

2 in10 8460006345 50000

8 in10 8460006345 50000

10000 200000

3 in10 10001 8460006346 50000

10001 50000

250000

Can anyone help out with this ??

1 ACCEPTED SOLUTION
Read only

samiullah_qureshi
Active Contributor
0 Likes
478

Thanks.

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
478

hI sami qureshi ,

Its default functionality of ALV. First click on one column,sort it and click on subtotal button. Sigma will be there. It should come.

Otherwise look at the sort catalogue if some thing wrong there.

Also put fieldcatalogue-subtot = 'X' against the fields u want subtotals.

Venkat

Read only

samiullah_qureshi
Active Contributor
0 Likes
479

Thanks.

Read only

0 Likes
478

Samiullah Qureshi, I have three remarks.

First, "urg." title is forbidden by forum rules, so read the rules before posting again (maybe you did it since 2008).

Second, if you want to get some help quickly, give also a feedback quickly (I won't answer your questions, you're now on my black list), here your answer is about one year and a half too late.

Third, do not post a useless comment when you close such a thread as this is not required and it brings nothing else than bothering people