ABAP Keyword Documentation → ABAP - Short Reference
CALL FUNCTION - Short Reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
CALL FUNCTION func [ {IN UPDATE TASK}
| { [ {STARTING NEW TASK task}
| {IN BACKGROUND TASK [AS SEPARATE UNIT]} ]
[DESTINATION dest] }
| {IN BACKGROUND UNIT} ]
[{CALLING meth}|{PERFORMING subr} ON END OF TASK]
{[EXPORTING p1 = a1 p2 = a2 ...]
[IMPORTING p1 = a1 p2 = a2 ...]
[TABLES t1 = itab1 t2 = itab2 ...]
[CHANGING p1 = a1 p2 = a2 ...]
[EXCEPTIONS [exc1 = n1 exc2 = n2 ...]
[error_message = n_error]
[system_failure = ns
[MESSAGE smess]]
[communication_failure = nc
[MESSAGE cmess]]
[resource_failure = nc]
[OTHERS = n_others]]}
| {[PARAMETER-TABLE ptab]
[EXCEPTION-TABLE etab] }.
Effect
Calls the function module specified in func
.
Additions
-
IN UPDATE TASK
Registers an update function module. -
DESTINATION
, STARTING NEW TASK,IN BACKGROUND TASK|UNIT
Synchronous, asynchronous, background, or transactional RFC. -
{CALLING meth}|{PERFORMING subr} ON END OF TASK
At the end of an asynchronous RFC, calls methodmeth
or subroutinesubr
. -
EXPORTING p1 = a1 p2 = a2 ...
Passes actual parametersa1
,a2
, ... to input parametersp1
,p2
, ... -
IMPORTING p1 = a1 p2 = a2 ...
Inherits output parametersp1
,p2
, ... in actual parametersa1
,a2
, ... -
TABLES t1 = itab1 t2 = itab2 ...
Assigns internal tablesitab1
,itab2
, ... to table parameterst1
,t2
, ... -
CHANGING p1 = a1 p2 = a2 ...
Assigns actual parametersa1
,a2
, ... to input/output parametersp1
,p2
, ... -
EXCEPTIONS
Enables the handling of non-class-based exceptions:
exc1 = n1 exc2 = n2 ...
- Assigns numbersn1
,n2
, ... to the classic exceptionsexc1
,exc2
, ... for the return codesy-subrc
.
error_message = n_error
- Handles messages using the special exceptionerror_message
.
system_failure
,communication_failure
, resource_failure - Handle special classical exceptions by passing the first line of the short dump tosmess
orcmess
.
OTHERS = n_others
- Assigns a numbern_others
for the return codesy-subrc
to all exceptions not named explicitly. -
PARAMETER-TABLE ptab
Assigns dynamic actual parameters to formal parameters using an internal tableptab
of the type ABAP_FUNC_PARMBIND_TAB. -
EXCEPTION-TABLE etab
Assigns dynamic return values to non-class-based exceptions using an internal tableetab
of the type ABAP_FUNC_EXCPBIND_TAB.