PROGRAM prog [list_options]
[MESSAGE-ID mid].
The statement PROGRAM must be the first statement of an independent program after the execution of possible Include programs and introduces a module pool or a subroutine pool. The name prog must be entered directly.
In the case of module pools, the additions of the statement PROGRAM have the same meaning as the additions with the same name in the statement REPORT.
In the subroutine pools, only the specification of MESSAGE-ID
is appropriate. Possible additions list_options for the basic list are ignored since subroutine pools do not have their own
list buffer. Output statements in subroutine pools write to the current list of the calling
main program.
The specification of the name prog is not necessarily required, but the name of the ABAP program from the Repository should always be used.