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

internal table

Former Member
0 Likes
467

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
Read only

Former Member
0 Likes
445

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
Read only

Former Member
0 Likes
445

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.

Read only

Former Member
0 Likes
445

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

Read only

Former Member
0 Likes
446

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

Read only

Former Member
0 Likes
445

thanks

both comments help.

i use move-corresponding from ctab to ktab.

and delete duplicates.

points rewarded...

raj