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: 

Calling a Function Pool inside a Class

Former Member
0 Kudos

Hi,

I want to call a Function Pool inside a Class Method. I am getting an Error that 'Report or Program Statement already exists' when I call the function pool in the method. can anybody help me on how to call a Function Pool inside a class method.

2 REPLIES 2

Former Member
0 Kudos

Hi Krish

Can i have your report coding here. So that we can help you easier

Regards

Pavan

uwe_schieferstein
Active Contributor
0 Kudos

Hello Krish

Based on your error description I assume that you have tried to "insert" the function pool program (e.g. function group ZFUNC -> SAPLZFUNC) into your class.

You cannot do that. The explanation for the error message is a following:

- The class contains already a program statement (CLASS-POOL). If there is somewhere in the class an additional program statement (e.g. FUNCTION-POOL) you will get the error.

In addition, you cannot "call" a function pool. Instead you can always call the function modules of your function group.

Regards

Uwe