Application Development 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: 

Difference between function group and function pool?

Former Member
0 Kudos

Hi all,

what is the difference between function group and function pool?

Thanks,

Charles.

8 REPLIES 8

Former Member
0 Kudos

Hi,

FUnction Pools and Function Groups are same. When we create them we call them Function Groups as it is shown in the Workbench. But the program that is generated is called Function pool. As the name suggests its a collection of Function modules.

You cannot create a Function outside a function group. So if you want to use a function module in your program first create a function group and then create your function module inside that and then use it in your program.

REgards,

VAsanth

Former Member

ferry_lianto
Active Contributor
0 Kudos

Hi,

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.

Regards,

Ferry Lianto

Former Member
0 Kudos

hi

The FUNCTION-POOL statement is equivalent to the REPORT statement and introduces a function group.

A function group contains function modules introduced by the FUNCTION statement and called with the CALL FUNCTION statement.

regards,

madhu

Former Member
0 Kudos

hi,The FUNCTION-POOL statement is equivalent to the REPORT statement and introduces a function group.

A function group contains function modules introduced by the FUNCTION statement and is called with the CALL FUNCTION statement.

standar function-pool:SAPLKAEP

_________________

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.

____

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.

_______________

The FUNCTION-POOL statement is equivalent to the REPORT statement and introduces a function group.

In general, a programmer never writes this statement himself. When a function group is created, the system automatically generates this statement in a standard include.

The use of the statement is primarily to inform the ABAP system that the current program is a function group.

We find such a terminoloty in case of Type Groups as well. If you need to include a type group in your program, you use the TYPE-POOLS statement.

for examples:

go se80...enter the function group name and hit enter..tree will be listed ..you will righ-click on the function group name and choose copy.. It will ask you what function modules you want to copy, just copy all and make sure to following the naming convention, start with Z_ then you can copy and modify any includes that you need.

-


function pool/function group is the container for the function modules that are logically related.

you need to assign ur function module to the function group at the time itz created.

sri

kmalli
Discoverer
0 Kudos

image.png

why this error coming, while activate the function module

kmalli
Discoverer
0 Kudos

while creation of pdf forms, if click on layout this will come what is the sollution

anne-petteroe
Community Manager
Community Manager

Hello,

While we are happy that you have come to SAP Community to get an answer to your question, you posted your question as an answer in an old thread.

I have converted your answer to a comment, but even so -- posting in older threads is not the best way to get guidance.

If you're looking for help, you should ask a new question: https://answers.sap.com/questions/ask.html.

Please also make sure you post answers/comments to the correct corresponding topics. In this case, you have asked a question regarding the creation of PDF forms on a question regarding function modules.

Best regards,
Anne