Skip to Content
0
Former Member
Apr 07, 2011 at 09:41 PM

Count unique data records from internal table

672 Views

Hi ,

I want to select unique enteries from an internal table and count that numebr in another row

For example my internal table

ITAB

EBELN

0026000060

0026000060

0026000060

0026000060

0026000061

0026000061

0026000061

0026000062

0026000062

0026000063

I need to show in ITAB_FINAL

 EBELN                                              COUNT OF UNIQUE RECORDS
0026000060                                                    4
0026000060                                                    4
0026000060                                                    4
0026000060                                                    4
0026000061                                                     3
0026000061                                                     3
0026000061                                                      3
0026000062                                                        2
0026000062                                                           2
0026000063                                                           1

Please help me how to achive this.

Thanks

Kiran