ABAP Keyword Documentation → ABAP - Quick Reference
PERFORM - Quick reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
PERFORM { { { subr
| {subr|(sname) IN PROGRAM [prog|(pname)] [IF FOUND]}
| {n OF subr1 subr2 ...}
| {subr(prog) [IF FOUND]} }
[TABLES itab1 itab2 ...]
[USING a1 a2 ...]
[CHANGING a1 a2 ...] }
| { ON { {COMMIT [LEVEL idx]}
| ROLLBACK } } }.
Effect
Calls a subroutine.
Additions
Specifies the subroutine
-
subr
- Subroutinesubr
of the same program. -
subr|(sname) IN PROGRAM [prog|(pname)]
- Specifies a subroutine statically or dynamically in any program. -
n OF subr1 subr2 ...
- Subroutinen
from a list of subroutines. -
subr(prog)
- Obsolete: Specifies a subroutine statically in another programprog
. -
IF FOUND
Suppresses an exception if the subroutine is not found.
Specifies the parameters
-
TABLES itab1 itab2 ...
Assigns internal tablesitab1
,itab2
, ...to the table parameters of the same position. -
USING a1 a2 ...
Assigns actual parametersa1
,a2
, ... to the formal parameters of the same position. -
CHANGING a1 a2 ...
Assigns actual parametersa1
,a2
, ... to the formal parameters of the same position.
Specifies the execution
-
ON COMMIT [LEVEL idx]
Registers the subroutine for execution withCOMMIT WORK
, where the execution order can be controlled usingLEVEL
. -
ON ROLLBACK
Registers the subroutine for execution inROLLBACK WORK
.