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

Full outer join in ABAP?

Former Member
0 Likes
4,953

My understanding is that in ABAP you only have INNER JOIN and LEFT OUTER JOINs available. If this is correct, what would be an efficient way to "emulate" a FULL OUTER JOIN (as defined here: http://en.wikipedia.org/wiki/Outer_join#full_outer_join )?

I would like to avoid looping through tables row by row for performance reasons. That said, my tables will hold less than 100,000 records each which is probably not too bad (worst case I would end up with 200,000 records).

Thanks,

Dennis

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,342

I would use FOR ALL ENTRIES (bearing in mind that it does eliminate duplicates).

Rob

3 REPLIES 3
Read only

Former Member
0 Likes
2,343

I would use FOR ALL ENTRIES (bearing in mind that it does eliminate duplicates).

Rob

Read only

0 Likes
2,342

Rob, thanks for your immediate reply.

I should have mentioned that I am an ABAP newbie. Can you elaborate a little bit more how this works? How would duplicate records be determined (by the table's key, I assume)? Can you give a quick code example?

Dennis

Read only

0 Likes
2,342

Read:

<a href="/people/rob.burbank/blog/2007/03/19/joins-vs-for-all-entries--which-performs-better">JOINS vs. FOR ALL ENTRIES - Which Performs Better?</a>

I give some example of each there.

Rob