07-03-2007 9:45 AM
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
07-03-2007 9:48 AM
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
07-03-2007 9:47 AM
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.
07-03-2007 9:47 AM
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
07-03-2007 9:48 AM
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
07-03-2007 9:50 AM
thanks
both comments help.
i use move-corresponding from ctab to ktab.
and delete duplicates.
points rewarded...
raj