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 problem..urgent?

Former Member
0 Likes
513

Hi experts...

I am using alv function module.. I want to count the number of rows and display..the output is

PLAN BUKRS PERSA PERNR

__________________________________

adnd 1010 US01 100102

bsch 1010 US02 100103

The output I want is

PLAN BUKRS PERSA PERNR

__________________________________

adnd 1010 US01 100102

bsch 1010 US02 100103

total PERNR in US01 1

total PERNR in US02 1

total PERNR in 1010 2

total PERNR in PLAN 2

PLease help...if u can provide with sample code....the code may be also in class method....

points will be awarded....nut its urgent

3 REPLIES 3
Read only

Former Member
0 Likes
492

Hi Abhay,

One thing you can do it is while creating an internal table after each group insert a line of count and then simply display it in ALV.

Like,

loop at itab.

at end of group (US01, US02....)

count lines.

insert lines to itab.

endat.

---

endloop.

Pass this to ALV.

Reward if useful!

Read only

0 Likes
492

HI prasad,

I have done that...but the problem is when sorting..if the user sorts the alv...then the problem is that the counted rows come in start

Read only

Former Member
0 Likes
492

hello plzz answer