You are on page 1of 5

Subroutines

Subroutines
Subroutines are programming modules which can be called from ABAP/4 programs. Frequently used parts of program can be put into subroutines and these subroutines can be called explicitly from the program.

Subroutines contd.
We use subroutines mainly to modularize and structure our program.

Defining Subroutines
A subroutine is a block of code introduced by FORM and concluded by ENDFORM. FORM <name> <parameters. <..> ENDFORM.

Calling subroutines

You might also like