ABAP Keyword Documentation →  ABAP - Reference →  Obsolete Language Elements →  Obsolete modularization → 

Subroutines

Before the introduction of ABAP Objects, subroutines were mainly used for the local modularization of programs, however, they can also be called externally. Their functionality is implemented between the statements FORM and ENDFORM. A subroutine is declared either directly when implemented or by using the statement FORM ... DEFINITION.

Subroutines should no longer be created in new programs for the following reasons:

In those places where subroutines cannot yet be replaced by methods (PERFORM ON COMMIT|ROLLBACK, GENERATE SUBROUTINE POOL), they should be used purely as wrappers for method calls and must not contain any other functional coding.



Continue
FORM
ENDFORM
FORM - DEFINITION, IMPLEMENTATION