‎2008 Dec 05 5:59 AM
Hello,
When the same is used in the ecc 5.0 it was working good but when this code is executed in ecc 6.0 then it is throwing dump.
This is the code :
EXEC SQL PERFORMING MAIN_ITAB_SUB5_APPEND.
SELECT A.WERKS, A.MATNR, B.MAKTX, SUM(A.LBLAB), C.MEINS
INTO :ZIT_WEBIF_SUB5
FROM MSLB A, MAKT B, MARA C
WHERE A.MANDT = :SY-MANDT
AND A.LIFNR = :P_I_LIFNR
AND A.MANDT = B.MANDT
AND A.MATNR = B.MATNR
AND B.SPRAS = sy-langu
AND A.MANDT = C.MANDT
AND A.MATNR = C.MATNR
GROUP BY A.WERKS, A.MATNR, B.MAKTX, C.MEINS
ENDEXEC.
The same native sql is converted into open SQL and it is working fine. Since there is no inconsistancy in the Database. Also when i remove the joins it is working fine.
Dump error :
One of the columns addressed in a table or view does not exist in the database.
table) exists in the ABAP/4 Dictionary, but not in the database.
The error 904 occurred in the current database connection "DEFAULT".
Any suggestions would be apprecaitaed.
Regards,
Kittu
‎2008 Dec 05 6:05 AM
Hi
Dump error :
One of the columns addressed in a table or view does not exist in the database.
table) exists in the ABAP/4 Dictionary, but not in the database.
I think it is itself saying the answer , u have given some field in native SQL SELECT where that field is not there check ur TABLES in Native SQL for fields details, which fields it contain.
Regards
Sachin
‎2008 Dec 05 6:42 AM
Hello,
Thank you for your quick response!
I had checked it and in debuggiung the open SQL is working fine and there are no inconsistency.
It is working fine in ECC 5.0 and it is working fine with single table. It is throwing dump only when join is used.
If you have any example of native sql with join statement then please provide it.
It would be very helpful...
Thanks & Regards,
Kittu
‎2008 Dec 09 5:14 AM
HI,
Thank you for your quick response and time.
I am closing this thread as there was no response available and
I think insted of Native SQL I need to use only SQL here so that issue will be fixed...
Regards,
Kittu
‎2008 Dec 10 10:49 AM
Hi Kittu,
I think you have taken a right decision to use open sql as it is always better to use.
Thanks.