Show TOC

Selecting a Main Program for Multiple-Use Include ProgramsLocate this document in the navigation structure

Context

To enable certain functions (for example, ABAP syntax check, navigation, and so on) in the ABAP source code editor, you need to select a main program for the include program.

Typically, an include program is used by exactly one main program. This main program is then automatically selected by ABAP Development Tools (ADT).

If an include program is used in several main programs, you need to select a specific main program in order for the functionality to be executed.

In SAP NetWeaver 7.4 SP08 or higher, you can select a specific main program for a multiple-use include program in the Properties view.

Note This selection is valid until you close your Eclipse-based IDE.

Whenever a specific functionality is executed that requires a main program, but none is selected, a dialog is opened. You then need to select a main program in the Properties view.

Procedure

  1. Open the include program.

    In the Properties view, the General tab and the Source tab are provided.

  2. In the Source tab, select a main program from the dropdown box to enable additional functions for a multiple-use include program.
    Source tab in the Properties view for selecting a main program
    Figure 1: Source tab in the Properties view for selecting a main program

Results

All the functions that are now executed in the ABAP source code editor, take the selected main program into consideration.

The selection is valid until you select a new main program or you close ADT.