code pal for ABAP > Documentation > External Call in Unit Tests Check
This check searches test classes for statements that change the current main program or cause parallel sessions to spawn. Test code should not change the control flow to other main programs or directly call GUI elements.
The check searches for SUBMIT
statements, remote function calls of any kind (CALL FUNCTION ... DESTINATION
) and calls to CL_GUI_*
classes.
Remove these external calls and/or mock them with a proper dependency isolation technique.
In exceptional cases, you can suppress this finding by using the pseudo comment “#EC EXT_CALL_UT
which should be placed right after the statement itself:
SUBMIT program. “#EC EXT_CALL_UT