2018 Nov 16 4:27 PM
Hello All,
This is my select statement, I tried to join mkpf with bkpf using awkey(10) but no data retrieved.
Any one can help me without using xblnr because no values in it.
SELECT BSIS~BELNR BSIS~WERKS BSIS~PRCTR BSIS~BLDAT BSIS~GJAHR BKPF~AWKEY "MKPF~MBLNR into (wa-belnr,wa-plant,wa-prctr,wa-bldat,wa-ygjahr,wa-oAWKEY",wa-mblnr ) FROM BSIS inner JOIN BKPF ON BKPF~BELNR = BSIS~belnr AND BKPF~gjahr = BSIS~gjahr inner JOIN MKPF ON mkpf~mblnr = wa-oawkey(10) and MKPF~mjahr = BSIS~gjahr WHERE "BSIS~BLDAT >= pbldat-low AND BSIS~BLDAT <= pbldat-high BSIS~WERKS in pWERKS AND BSIS~HKONT = '0021260107' AND BSIS~BLART = 'WA'. ENDSELECT.
Hello All,
This is my select statement, I tried to join mkpf with bkpf using awkey(10) but no data retrieved.
Any one can help me without using xblnr because no values in it.
SELECT BSIS~BELNR BSIS~WERKS BSIS~PRCTR BSIS~BLDAT BSIS~GJAHR BKPF~AWKEY "MKPF~MBLNR into (wa-belnr,wa-plant,wa-prctr,wa-bldat,wa-ygjahr,wa-oAWKEY",wa-mblnr ) FROM BSIS inner JOIN BKPF ON BKPF~BELNR = BSIS~belnr AND BKPF~gjahr = BSIS~gjahr inner JOIN MKPF ON mkpf~mblnr = wa-oawkey(10) and MKPF~mjahr = BSIS~gjahr WHERE "BSIS~BLDAT >= pbldat-low AND BSIS~BLDAT <= pbldat-high BSIS~WERKS in pWERKS AND BSIS~HKONT = '0021260107' AND BSIS~BLART = 'WA'. ENDSELECT.
2018 Nov 16 5:16 PM
BSIS is an index; please review the code here in the replies and start with MKPF as BSIS will have way more entries than MKPF:
2018 Nov 19 8:17 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |