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

Combines two internal tables.

Former Member
0 Likes
503

I’ve just started ABAP programing and I’m on my assignment now.

What my assignment is I have to combine a few internal tables from RS_GET_ALL_INCLUDES and RS_GET_TABLE_REFERENCES into one Internal table.

I know the process but I have no idea how I can do it.

I am probably not able to use “inner-join”.

Can anyone give me any suggestions for this?

Thank you for your time and concern!

Christopher

I’ve just started ABAP programing and I’m on my assignment now.

What my assignment is I have to combine a few internal tables from RS_GET_ALL_INCLUDES and RS_GET_TABLE_REFERENCES into one Internal table.

I know the process but I have no idea how I can do it.

I am probably not able to use “inner-join”.

Can anyone give me any suggestions for this?

Thank you for your time and concern!

Christopher

2 REPLIES 2
Read only

Former Member
0 Likes
478

You can use the append statement , you can't use any join on internal tables.

Read only

Former Member
0 Likes
478

Hi,

If i'm not mistaken for your req, you want to get data from RS_GET_ALL_INCLUDES table but also in the RS_GET_TABLE_REFERENCES that have the same key... right ??

if like that you can used:

Loop at first itab.

read table second itab with key fielda = first-itab-fielda.

if sy-subrc is initial.

bla bla bla..

endif.

endloop.

or you can used:

Loop at first itab.

loop at seconditab where field a = firstitab-fielda.

endloop.

endloop.

Hope this meet your req.

Cheers.

Victor.