Opening Programs With Forward Navigation

When you are working with the ABAP Development Workbench and you position the cursor on a program name and select the corresponding program by double-clicking, the system opens the ABAP Editor for this program and you can start editing the program .

For more ways of forward navigation, see the menu bars of the ABAP Development Workbench tools, for example Goto or Environment.

The examples below show some ways of forward navigation.

Suppose, you are editing a program and find the line

SUBMIT ZZHKTST 1.

This statement calls a report from within another ABAP program. For further information, see Calling Executable Programs (Reports)

If you position the cursor on the name ZZHKTST1 and double-click, there are two possibilities:

1. The report ZZHKTST1 exists.

The system opens the Editor for ZZHKTST1 and you can start editing the program .

2. The report ZZHKTST1 does not exist.

The system displays the following dialog box:

If you choose Yes, the system proceeds as described in Creating a New Program .

After editing ZZHKTST1, you can choose Back to return to the ABAP Editor session of the original program.

In the Object Browser open the dialog program SAPMTALE from the development class SAB1 (ABAP training) and position the cursor on screen 100:

Choose Display, Change, or double-click on the screen to open the SCREEN PAINTER tool, where the system displays the screen flow logic of the selected screen:

Here, you see the screen statement MODULE, which calls an ABAP module in the ABAP module pool.

Position the cursor, for example, on STATUS_100 and double-click. The system opens the ABAP Editor for the include program MTALEO01 at the position at which the module STATUS_100 is defined.

The include program MTALEO01 is used to modularize the source code of the main program SAPMTALE (see INCLUDE Programs ).

In the Object Browser open the dialog program SAPMTALE from the development class SAB1 (ABAP training) and position the cursor on the program name to open the program. The ABAP Editor displays the following source code:

The INCLUDE statements include the specified include programs into the source text. Position the cursor on MTALEO01 and double-click. The system opens the include program MTALEO01.

In this include program, you find all modules for the PBO event of all screens of the dialog program SAPMTALE. Compare them to the previous example. For more details on dialog programming, see part 3 of the User's Guide.