‎2006 Jun 30 10:07 AM
Hi Experts,
If I delete row/s from an internal table
using the command DELETE ADJACENT DUPLICATES,
is there a way to get these deleted rows.
Thanks in advance.
Rose
‎2006 Jun 30 10:08 AM
‎2006 Jun 30 10:09 AM
Hi roselie,
1. ofcourse not.
2.hence, before that,
u can declare another internal table,
similar to original,
and use like this.
3. ITAB1[] = ORIGINALITAB[].
regards,
amit m.
‎2006 Jun 30 10:11 AM
‎2006 Jun 30 10:12 AM
Hi Rose,
I'm afraid not.
Once deleted, the rows are cleared from memory.But you could create a copy of the internal table before deleting it. That way you will have both the details.
‎2006 Jun 30 10:12 AM
Hi Roselie,
When you are doing delete adjacent duplicate it means there are two same rows out of which you are deleting one row.Just retrieve that row by read statement on the internal table if you need that row.
‎2006 Jun 30 10:35 AM
Hi Roselie Webjornsen ,
consider table itab,
sort itab.
loop at itab.
at new key_field.
move itab to itab2.
endat.
endloop.
delete adjacent duplicates...
Regards,
Kiran B
‎2006 Jun 30 10:41 AM
Hi,
The way you can delete from internal table :
DELETE <target> FROM <wa> .
Here wa is work area 1st delete it can append from wa to target table.
ankur.