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

DELETED rows from internal table

Former Member
0 Likes
912

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

Former Member
0 Likes
862

i believe NO.

regards

srikanth

Read only

Former Member
0 Likes
862

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.

Read only

Former Member
0 Likes
862

Hi ,

Read only

Former Member
0 Likes
862

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.

Read only

Former Member
0 Likes
862

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.

Read only

Former Member
0 Likes
862

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

Read only

Former Member
0 Likes
862

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.