These are also
These are mainly used for re-usability within the same program, however, we can re-use these Subroutines in other programs too.
Function Modules V/S
The main difference between Function Modules and Subroutines are sub-routines does not contain any exceptions and Subroutines are mainly used for local modularization where as function modules contains exceptions and used for global modularization.
sub-routines have definition and implementation parts.
Syntax:DEFINITION PART: PERFORM <SUBROUTINE NAME> USING <V1> <V2> "DOUBLE CLICK ON SUBROUTINE NAME TO CREATE CHANGING <CV1> <CV2> TABLES <IT1> <IT2> . **<V1> <V2> (VARIABLES), <CV1> <CV2> (CHANGING VARIABLES) AND <IT1> <IT2> (IMPORTING TABLES) ARE ACTUAL PARAMETERS Syntax IMPLEMENTATION PART FORM <SUBROUTINE NAME> USING <FV1> <FV2> CHANGING <FCV1> <FCV2> TABLES <FIT1> <FIT2>. ENDFORM. **<FV1> <FV2>, <FCV1> <FCV2> AND <FIT1> <FIT2> ARE FORMAL PARAMETERS