Modularizing ABAP Programs

In the Introduction to ABAP, you learned that modularization plays an essential role in ABAP.

Each ABAP program has a modular structure. ABAP programs are divided in:

You find detailed information about that under Controlling the Flow of ABAP Programs by Events.

You find detailed information about that under Dialog Mode.

In this section, you learn how you can modularize your ABAP programs beyond this basic concept. If your program contains the same or similar blocks of statements or you want to process the same function several times, you can avoid redundancy by using modularization techniques.

By modularizing your ABAP programs further, you make them easy to read and improve their structure. Modularized programs are also easier to maintain and to update than programs which have not been modularized.

Principle of modularization:

ABAP provides the following modularization techniques:

Source Code Modules

Subroutines

Function Modules