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

DELETE rows internal table from interal table

mark_fryu
Participant
1,006

is there any way to delete all rows of an internal table from an internal table?

for example :

DELETE <table1> from <table2> where <table1-field> eq <table2-field>

even without where is fine, I need everything in table2 to delete everything in table1

3 REPLIES 3
Read only

abo
Active Contributor
857

Something like this?

Read only

mark_fryu
Participant
0 Likes
857

from the link I did not understand how to do it, can you give me a practical example? thank you

Read only

Abinathsiva
Active Contributor
857

Hi,

one way is looping table2 and delete table1 by comparing table2-field (will affect the performance based on table size.

load table2-field to single selection or equalant one and use

DELETE table1 where field in s_field.