Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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?
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.
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.
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' ;