Hi
you have changed the firs selection, haven't you?
If it's so you have to consider the option INTO CORRESPONDING FIELDS OF TABLE ....: in this case the SELECT doesn't need to close by ENDSE;ECT
So this selection:
SELECT
DB~F1
DB~F2
DB~F3
FROM DB1 JOIN DB2 ON .....
INTO CORRESPONDING FIELDS OF TABLE ITAB
WHERE (SELECT_CONDITIONS) .
should be re-written:
SELECT
DB~F1
DB~F2
DB~F3
FROM DB1 JOIN DB2 ON .....
INTO (ITAB-F1. ITAB-F2, ITAB-F3)
WHERE (SELECT_CONDITIONS)
APPEND ITAB. <------------------------------------
ENDSELECT.. <-----------------------------------