Note: Modularization Improves Reusability, Readability, of the Source code.
Without Modularization with Modularization
Note Instead Of Repeating
Statement B.
Statement C.
Statement D.
It is better to group them as a Re-usable Module and Call it any No of times
Modularization Techniques:
A) Those that can be called by ABAP statements in ABAP programs.
B) Called from outside a program by the ABAP runtime system.
Processing blocks that are called from ABAP programs In Detail:
a) Function Modules
b) Methods (Used in Object Oriented ABAP)
c) Subroutines
d) Marcos
e) Include Programs
Working With Include Programs:
Include programs are global R/3 Repository objects. They are solely for modularizing source code, and have no parameter interface.
Creating Our Own Include Programs:
If you create an include program yourself, you must assign it the program type I in its program attributes. You can also create or changes an include program by double-clicking on the name of the program after the INCLUDE Statement in your ABAP program. If the program exists, the system creates it for you.
An Include program cannot run independently, but can be Included into other programs. Include programs can contain other includes.
Note: For the system check to produce valid results, you must check the program in which the include occurs.
To use an include program in another program, enter the statement
INCLUDE
The INCLUDE statement has the same effect as copying the source code of the include program