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

Function pool relation to Function group

Former Member
0 Likes
427

Hi friends,

Could you please clarify for me how the 2 are related? I can understand function group but not sure what is function pool and how it relates to function group and function module.

I have searched the online help but its not clear to me. Please give me simpler explanations.

Thanks

Sri

2 REPLIES 2
Read only

Former Member
0 Likes
392

Hi Sri - When you interact with a function group you are using an interface which uses the ABAP code contained in a function pool. A function group will always be in only one function pool and a function pool will always have only one function group. The function pool is the parent program of the function group. Each function module is an ABAP include in the parent program. Likewise when you interact with the function module you are using an interface that uses the ABAP include.

When you debug into a function module you will always see the main program as the function pool and the source code is the ABAP include of the function module because that is the code that is being executed. Usually SAPL prefixes the function group to create the name of the function pool.

Hope this helps.

Andy

Read only

ferry_lianto
Active Contributor
0 Likes
392

Hi Sri,

Function pool is nothing but an abap program where you can define function modules. When you call a function module from a function group that has not already been loaded in an internal session, an additional program group is created and into which the function group to which the function module belongs is loaded. The additional program group, along with its data, exists for the rest of the time of the internal session. For this reason function group must begin with a function pool statement.

Hope this will help.

Regards,

Ferry Lianto