cancel
Showing results for 
Search instead for 
Did you mean: 

Merging two tables into one table in RFC Fuction module

0 Kudos

Hello Everyone,

I need to know that is it possible to merge two tables with the two parameters into 1 single table.

If it is possible can someone explain it with an example code.

Thank you.

Sandra_Rossi
Active Contributor
0 Kudos

Isn't it a very basic algorithm? What did you try?

0 Kudos

I am confused with that. Can you please explain me how it could be done with a example code?

Sandra_Rossi
Active Contributor
0 Kudos

I guess you'll better succeed by using basic code, the simplest is to use the ABAP statements SORT, LOOP AT, READ TABLE and APPEND. Pseudo code to merge ITAB1 and ITAB2 into ITAB3 :

SORT itab1 ...
SORT itab2 ... CLEAR itab3. LOOP AT itab1 INTO wa1. READ TABLE itab2 WITH KEY ... INTO wa2. wa3 = ... " values from wa1 & wa2 APPEND wa3 TO itab3. ENDLOOP.

Accepted Solutions (0)

Answers (0)