We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
... subr
$| ${subr$|(sname) IN PROGRAM $[prog$|(pname)$] $[IF FOUND$]$}
$| ${n OF subr1 subr2 ...$} ...
1. ... subr ...
2. ... subr$|(sname) IN PROGRAM $[prog$|(pname)$] $[IF FOUND$] ...
3. ... n OF subr1 subr2 ...
These names are used in the statement PERFORM to specify the called program and the ABAP program in which it is defined.
In addition to the alternatives shown here, there is another obsolete form of the external subroutine call.
... subr ...
When specified directly, subr calls any subroutine of the current program using its name declared
in the statement FORM. The subroutine must exist.
Call of a directly specified subroutine without parameters.
... subr$|(sname) IN PROGRAM $[prog$|(pname)$]$[IF FOUND$] ...
The specification is used to call any subroutine of the current program or of another program. The subroutine and the program can be specified as follows:
Valid programs for external subroutine calls are executable programs, module pools, function pools, and subroutine pools. If an external subroutine is specified statically, the syntax check does not check whether the specified program and subroutine exist, and nor does it check the type of the program. If the addition IF FOUND is not specified, the extended program check reports any invalid or nonexistent programs or subroutines as errors. This also applies to names specified as constants or literals.
If the statically or dynamically specified subroutine or program does not exist at runtime and the addition IS FOUND is not specified, a catchable exception of the class CX_SY_DYN_CALL_ILLEGAL_FORM or CX_SY_PROGRAM_NOT_FOUND is raised.
If the specified program exists, it is loaded, if required, into the internal session, raising the event LOAD-OF-PROGRAM, and is searched for the specified subroutine.
... IF FOUND
If the addition IF FOUND is specified and the statically or dynamically specified subroutine or program does not exist at runtime, the catchable exception is prevented and the execution proceeds behind the statement PERFORM. Furthermore, the extended program check does not perform a check for the PERFORM statement.
If not already loaded, an existing program is loaded into the internal session independently from the addition IF FOUND.
With the addition IF FOUND, the statement PERFORM can trigger the execution of the event block LOAD-OF-PROGRAM even if no subroutine is performed.
Dynamic call of a subroutine of the same program without parameters.
... n OF subr1 subr2 ...
If specified, this selects a subroutine subr of the current program from a list. The list subr1 subr2 ... can contain up to 256 directly specified subroutines. n expects a numeric data object containing a number between 1 and the specified number of subroutines when the statement is executed. The subroutine subr is called, whose list position is in n. In this variant, it is not possible to specify parameter_list and only subroutines without a parameter interface can be called.
This example calls n internal subroutines subr_1 through subr_n successively from a list.
Leave us your contact details and we will call you back. Fields marked with * are mandatory.
We offer holistic SAP solutions from a single source to shape digital change and develop new business areas.
Switzerland
Schaffhausen
Germany
Mannheim, Düsseldorf, Munich
USA
Haverhill
Greece
Thessaloniki