Entering content frameExternal Procedure Calls Locate the document in its SAP Library structure

In an external procedure call, the called unit is not part of the calling program. This means that, at runtime, an extra program has to be loaded into the internal session of the calling program. You can use external calls for procedures and subscreens.

The additional loaded program is an instance with its own global data area. When you call an external subroutine, the calling program and the loaded program form a single program group, unless the loaded program is a function group. Function groups always form their own program group. Furthermore, when you call methods externally, they and their class form their own program group. Within a program group, interface work areas and the screens of the calling program are shared. Classes cannot contain interface work areas.

This graphic is explained in the accompanying text

Procedures

All procedures, that is, subroutines, function modules, and methods, can be called externally from any ABAP program.

Subscreens

You can call a subscreen screen externally by specifying an ABAP program other than the current program in the CALL SUBSCREEN statement. This program is treated in the same way as in an external subroutine call. In other words, it is loaded into the program group of the calling program, or, if it is a function group, as its own program group in the same internal session as the calling ABAP program.

For this reason, you should not use external subscreens that do not belong to a function group, since the same problems can occur with interface work areas and screen calls as can occur with external subroutines.

 

 

 

 

Leaving content frame