we found a false positive within our code base for this check.
I suppose it is only targeted at RFC calls as the EXCEPTION token only exists there.
Based on the ABAP Docu ( Link ) there exist two obsolete statements that also have this token "DESTINATION". The check currently checks explicitely the fourth token where it must be when writing RFC function calls. But the obsolete statements NEW-PAGE and SUBMIT can have the token "DESTINATION" also at fourth place.
My recommendation would be to check explicitely for "CALL FUNCTION" in token 1 and 2.
Dear Community,
we found a false positive within our code base for this check.
I suppose it is only targeted at RFC calls as the EXCEPTION token only exists there.
Based on the ABAP Docu ( Link ) there exist two obsolete statements that also have this token "DESTINATION". The check currently checks explicitely the fourth token where it must be when writing RFC function calls. But the obsolete statements NEW-PAGE and SUBMIT can have the token "DESTINATION" also at fourth place.
My recommendation would be to check explicitely for "CALL FUNCTION" in token 1 and 2.