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: 

DELETED rows from internal table

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

i believe NO.

regards

srikanth

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi ,

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.