0% found this document useful (0 votes)
152 views1 page

Diff. BW FM N Subroutine

Function modules are global and can be called from anywhere, while subroutines are local to the program they are defined in. Function modules can be tested, remote enabled, handle exceptions, and return values on their own. They must be maintained in function groups. Subroutines cannot be tested or remote enabled independently, only a few can handle exceptions, they do not need to be in function groups, and do not return values.

Uploaded by

Harish Gaddam
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
152 views1 page

Diff. BW FM N Subroutine

Function modules are global and can be called from anywhere, while subroutines are local to the program they are defined in. Function modules can be tested, remote enabled, handle exceptions, and return values on their own. They must be maintained in function groups. Subroutines cannot be tested or remote enabled independently, only a few can handle exceptions, they do not need to be in function groups, and do not return values.

Uploaded by

Harish Gaddam
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Difference between function module and subroutine: Function module is globel and Subroutine is local to the the program

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

You might also like