08-14-2008 7:54 AM
hi experts,
plase give the answer to my question ,it is very use but i have confusion on that.
1. what is subroutine pool?
i know only subroutine pool means collection of subroutines. but i do not know where subroutine pool stores.
2. i have confusion we have function modules why i am go for subroutines?
3. can any one give the answer to subroutine pool ?
08-14-2008 8:03 AM
08-14-2008 8:04 AM
08-14-2008 8:46 AM
Hi
For youre questions, I would like to give you my opinion.
1. In standard SAP program, if you create a type S program, and in this program you declare all the
subroutines which will be used in standard program. Then you can call it subrountine pool. So you see it is
just a program with type S. You can call the subroutine defined in it like
PERFORM <sub_name>(<program_name>).
2. Function module is also a kind of special external subroutines. Usually fuction module is designed for
all the programs, it focuses on reusability while subroutine pool is designed for one or several programs, it
focuses on readability of program.
Another point, function module must be assigned to a function group. And when we call a function
module the system will automatically load all the functions which belongs to the same function group. So it
will cost more unneccessary memory. While you use subrountine pool, even if all the subroutine are loaded,
the memory does not waste because all the them will be used.