Hi experts,
I am facing some issues with abap syntax and I need your clarifications. Let’s say I declared an internal table (mytable) in my program with 2 columns (Column1 and Column2)
I want to fill those fields from different tables (Table 1 and Table 2), to simplify my example:
Table 1
Field1 | Field2 | Field3 |
1 |
|
|
2 |
|
|
Table 2
Field1 | Field2 | Field3 |
| 1 |
|
| 2 |
|
| 3 |
|
I want the content of Field1 – Table 1 in Column1 and the content of Field2 – Table2 in Column2.
So normally the logic would be:
Select Field 1 from Table 1 into mytable–Column1.
Select Field2 from Table2 into mytable–Column2.
I’ve tried some combinations but it fails certainly because of my declarations. What I expect in mytable is the following:
Column1 | Column2 |
1 | 1 |
2 | 2 |
| 3 |
Thanks for your explanations.
Amine