‎2006 Dec 06 5:18 PM
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
‎2006 Dec 06 7:11 PM
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
‎2006 Dec 06 7:24 PM
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