Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

soubroutine pool

Former Member
0 Likes
695

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 ?

3 REPLIES 3
Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
633

HI ,

SEE BELOW THREADS...

Read only

Former Member
0 Likes
633

Hi Kartik,

Just go through the following link:

Hope this will help you.

Regards,

Nitin.

Read only

Former Member
0 Likes
633

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.