Application Development 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: 

internal table

Former Member
0 Kudos

Hi all,

I have internal table with customer line item ctab.

from ctab i want distinct customer in another internal table.

what should i write ?

thanks

raj

1 ACCEPTED SOLUTION

Former Member
0 Kudos

data : vtab like ctab occurs 0 with header line.

vtab[] = ctab[].

sort vtab by kunnr.

delete adjacent duplicates from vtab comparing kunnr.

regards

shiba dutta

4 REPLIES 4

Former Member
0 Kudos

hi,

to delete the duplicates u can write

Delete Adjacent duplicates from Itab.

In the place of itab u need to give ur internal table name.

Former Member
0 Kudos

Hi,

You can make another internal table and use move-corresponding or you can also use delete adjacent duplicate internal table comapring the field names.

reward points if useful

regards,

raksha

Former Member
0 Kudos

data : vtab like ctab occurs 0 with header line.

vtab[] = ctab[].

sort vtab by kunnr.

delete adjacent duplicates from vtab comparing kunnr.

regards

shiba dutta

Former Member
0 Kudos

thanks

both comments help.

i use move-corresponding from ctab to ktab.

and delete duplicates.

points rewarded...

raj