Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Sap Join in Qlikview

Hello ,

I am trying to do a join on a sap query. It looks like this:

SQL Select EKPO.UMREZ EKPO.STATUS EKPO.MATNR EKPO.AEDAT EKPO.KUNNR EKPO.BUKRS EKPO.WERKS EKPO.ADRNR EKPO.MATKL EKPO.EBELN EKPO.EBELP from EKPO JOIN EKKO ON EKPO.EBELN = EKKO.EBELN WHERE EKKO.AEDAT = '20090717';

But the result is a SQL_ERROR

What am i doing wrong?

1 Solution

Accepted Solutions
disqr_rm
Partner - Specialist III
Partner - Specialist III

You have 2 options:

1. Create a "Z" view in SAP joining these 2 tables and pulling data from that view, or

2. Pull EKKO and EKPO separately and join them in QV.

You will not be able to pull from SAP using join query.

View solution in original post

2 Replies
disqr_rm
Partner - Specialist III
Partner - Specialist III

You have 2 options:

1. Create a "Z" view in SAP joining these 2 tables and pulling data from that view, or

2. Pull EKKO and EKPO separately and join them in QV.

You will not be able to pull from SAP using join query.

Anonymous
Not applicable
Author

Thanks for your reply,

I am going for option 2

Query 1:

load

..

..;

SQL Select UMREZ STATUS MATNR KUNNR BUKRS WERKS ADRNR MATKL EBELN EBELP from EKPO WHERE EBELN IN ( SELECT EBELN FROM EKKO where AEDAT => '20090701' and AEDAT <= '20090799' )

inner

load

..

..;

SQL Select AEDAT EBELN from EKKO where AEDAT => '20090701' and AEDAT <= '20090799' ;