1.Attributes:-
Attributes specify the type of the function module, normal or remote.
We can access the normal function module with in the server only, where as we
can access remote function modules with in the server as well as outside the server
also.
2. Import acts like using in the subroutine.
3. Export acts like changing the subroutine.
4. Changing acts like both import & export.
5. Tables acts like both import & export only for internal tables.
6. Exception use to handle the errors.
7. Source code – the logic related to function module.
Differences between function module & subroutine:-
Function module Subroutine
1. Function modules are global, i.e.,
we can access the function module
with in the server as well as outside
the server also.
2. We can test the function module
independently.
3. We can handle the errors in
function module.
4. Function modules are defined by
using SE37 transaction code.
1. Subroutines are local, i.e., we can
access the subroutine with in the
server only.
2. We can‘t test the subroutine
independently without calling the
subroutine.
3. We can‘t handle the errors in
subroutine.
4. Subroutines are defined by using
SE38 transaction code.
Steps to create function module:-
Execute SE37.
Provide your function module name.
Create.
Provide function group name & short description.
Save.
Note:-
Function modules return single values, multiple single value
No comments:
Post a Comment