SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → Obsolete Language Elements → Obsolete Calls →CALL FUNCTION EXCEPTIONS - Short Form
Obsolete Syntax
CALL FUNCTION func ...
EXCEPTIONS exc1 exc2 ...
Effect
This short form for specifying non-class-based exceptions in the parameter list of the statement CALL FUNCTION is obsolete. It has the same effect as the following:
Each exception listed after EXCEPTIONS that is not assigned to an explicit return code using = is given the value 1 implicitly.
Notes
Example
The syntax of the following function module call is correct, but can have unpredictable results.
The developer probably expected the following:
The complete form of the statement is as follows, however:
Since exceptions called "=" are not possible, and exceptions called "4" are unlikely, then this call will almost certainly not catch any exceptions, even though it is intended to catch every exception.