Skip to Content
0
Former Member
Nov 09, 2007 at 09:19 AM

How to take a count...

31 Views

Hi ,

I want to take a count of number of vertn(contracts) for each kunnr(customer)...And after that the individual records for each (vertn)contract.

I have the internal table populated in this way after sorting.

Kunnr Vertn amount.

1000 17 300

1000 17 590

1000 18 540

1000 18 670

1000 18 850.

2000 15 543

2000 15 600.

2000 15 600

2000 16 340

2000 16 260.

Now I have 2 customers 1000 and 2000.

1000 has contracts 17 18,

2000 has contracts 15 16.

I need the details of number of vertn for each customer

and the number of records for each vertn.

kunnr = 1000

vertn = 17 18 no of contarcts is 2.

17 = no of records is 2.

18 = no of records is 3.

Its very urgent plz help.

Thanks