Diff. BW FM N Subroutine
Diff. BW FM N Subroutine
in which it is defined. So if we need to use some functionality more that onece we can make function module and we can call them where ever we want. without again redefining it. Function module is defined as follows: FUNCTION <FUNCTION MODULE NAME> IMPORTING <PARAMETERS> EXORTING <PARAMETERS> ENDFUNCTION. AND CALLED AS FOLLOWS AS: CALL FUNCTION <FUNCTION MODULE NAME> Subroutine is defined as follows: Form <subroutine name> Endform funtion modules 1.they can be tested by itself 2.they can be remote enabled 3.they can handle exceptions handle. 4.they have to be maintained in a function group. 5.Can return the value Value 6. Executable programs programs subroutines 1.they cannot . 2.they cannot . 3.Only a few can 4.It is not necessary. 5.Cannot return the 6.Non-executable