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

Select fields from 2 tables

former_member588495
Participant
0 Likes
979

Greeting,

I am learning ABAP and trying to select fields from 2 tables(AFKO & RESB), following is my script:

==============================================================

SELECT A-AUFNR B-MATNR B-WERKS B-LGORT B-BDMNG
FROM AFKO AS A
LEFT JOIN RESB AS B ON A-RSNUM = B-RSNUM

==============================================================

However, when I click on 'Check' button, system showed an error message: Field "A-RSNUM" unknown, is there any experts could tell me where I need to modify?

Thanks in advance

Roger

1 ACCEPTED SOLUTION
Read only

FredericGirod
Active Contributor
927
SELECT A~AUFNR B~MATNR B~WERKS B~LGORT B~BDMNGFROM AFKO AS ALEFT JOIN RESB AS B ON A~RSNUM = B~RSNUM

Tilde not minus

2 REPLIES 2
Read only

FredericGirod
Active Contributor
928
SELECT A~AUFNR B~MATNR B~WERKS B~LGORT B~BDMNGFROM AFKO AS ALEFT JOIN RESB AS B ON A~RSNUM = B~RSNUM

Tilde not minus

Read only

0 Likes
927

Dear Frederic,

I got it, thank you.

Best Regards

Roger