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

functionpool

Former Member
0 Likes
399

Hi experts,

any body have idea about Functionpool? Please eaplain about this?

2 REPLIES 2
Read only

Former Member
0 Likes
370

The statement FUNCTION-POOL declares a program in which you can define function modules. At runtime, it has the effect that – during program loading – a new program group with its own screens and its own shared data areas is created in the internal session of the calling program. For this reason, function groups must always begin with a FUNCTION-POOL statement. The statement FUNCTION-POOL is usually generated by the Function Builder. Other programs (executable programs, module pools, and subroutine pools) should not begin with a FUNCTION-POOLstatement, since they would then not share common data areas with the caller when loaded by an external subroutine call. However, in exceptional cases, you can force processing of your own screens for externally called subroutines if you introduce executable programs or module pools with FUNCTION-POOL. As in the REPORT and PROGRAMstatements, you can specify the message class for the program and the standard list formatting options of the program using FUNCTION-POOL.

http://help.sap.com/saphelp_nw04/helpdata/en/54/7f4a084d4311d295a10000e82de14a/content.htm

Best Regards,

Vibha

*Please mark all the helpful answers

Read only

Former Member
0 Likes
370

Hi Srinivasa,

Are you talking about Function Group? Because I dont think there is something called functionpool is there.

Neways, function group is a set of global declarations(of variable, routines, screens etc...) and function modules. All function modules must belong to a function group or the other. Once you make a call to a function module in a program, the whole group will be loaded in the memory and will remain loaded as long as the program runs. So, if you call a function module and set a particular value to a global variable of the function group and then if you make a call to same/someother function module of the same group, you can see the value retained in the global variable.

let me know if you need some more information on function groups.

Rgds,

Deb.