SAP ABAP PROGRAM CALL

Get Example source ABAP code based on a different SAP table
  


ARTICLE

Calling ABAP Programs
If permitted by the package concept, each processing block of ABAP program enables you to call
Executable programs
and transactions, that is, programs associated with a transaction code.
. When a program is called, the calling program can be exited either temporarily or completely.

IMAGE /SAP/PUBLIC/BC/ABAP/ABDOC_Call_Prog.gif 623 623

For a temporary exit from the calling program, the called program is started in a new internal session. The internal session of the calling program is retained. The calling program and the called program represent a call sequence. Within a call sequence, the programs have shared access to the ABAP Memory (statements IMPORT FROM MEMORY and EXPORT TO MEMORY ). A call sequence can have a maximum of nine internal sessions. If this maximum is exceeded, the program terminates and the entire call sequence is deleted.
When the calling program is completely exited, the called program is started in a new internal session, which replaces the internal session of the calling program.
A program that generates an internal session when it is called, represents the main program of the main program group in the internal session.

Note
When the runtime environment loads a called program, the event LOAD-OF-PROGRAM is triggered in that program.