Entering content frame

Direct execution Locate the document in its SAP Library structure

Users can run executable programs either directly in the foreground by entering the program name in transaction SA38 (System ® Services ® Reporting), or as a background job. You can only run a program in the background if there is no dialog controlled execution. You do not need to assign a transaction code to an executable program, although you may if you wish, and you do not have to use the Screen Painter to create any screens for it.

When you run an executable program, the program flow is controlled by a series of processors in the runtime environment. These trigger a set sequence of events, to which you can react in corresponding processing blocks in the program. The flow an executable program conforms to the programming standard DIN 66220.

This graphic is explained in the accompanying text

The program starts with an initialization phase, followed by a selection screen. It then retrieves, processes, and displays data. This process is best suited to reading and displaying data (reporting). Because of this, executable programs were often known as reports. You can either program the blocks for selecting and reading data in your program, or you can use a logical database instead.

If a standard selection screen is declared in an executable program, the same program will be automatically called again after it was completely processed. In this process, the user inputs are automatically buffered and are available again for the following selection screen.

Linking to a Logical Database

Event Blocks in Executable Programs

 

Leaving content frame