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: 

function group full

Former Member
0 Kudos

Hi all,

I have reached 100 function modules within my function group. The system will not let me create new function modules.

Does anyone know how to extend the amount of function modules possible within an existing function group..?

Thanks

Rael

4 REPLIES 4

ThomasZloch
Active Contributor
0 Kudos

Not possible, there is only two digits reserved for the internal counter (see table TFDIR). Delete some, combine some, create another group...

Thomas

Former Member
0 Kudos

Hi Thomas,

Thx for your response.....

Do you know if there is a way to share the 'top' include across 2 different function groups.....so if i created a new function group (as you suggested), what is the best way to 'share' or still have access to the includes/subroutines in the 1st function group..?

Or is that simply not possible?

Thanks and regards,

Rael

0 Kudos

You could create another Z-include that you insert into both TOP-includes, similar for the form routines. Be aware though that the two separate function groups do not share the global function group memory, this might be an issue or not, depending what you are actually doing.

Thomas

P.S. maybe the solution would be to switch to classes and methods, but I'll leave that suggestion to the OO geeks

0 Kudos

Sharing data objects (i.e those defined in TOP include) is only applicable for programs within same program group . Each internal session has at least one such group called main program group . If you call an external subroutine, the main program of this sobroutine is placed within caller's main program group . Here the shared data are TABLES, NODES and COMMON PART .

Conversely, when you call Function Module, its Function Group is placed in additonal program group of same caller's internal session. Here you don't have the possibility to share data objects. The only resonable apporach is exchanging data using ABAP memory (as both program groups reside in same internal session).

The other approach I am thinking of is to create two generic Function Modules one for read generically data objects (from FG top include) and one to set it.

Another approach is to use field symbols and assign with direct program name designation. More on this .

Please note!

I am not sure if the last approach is going to work b/w different FGs. This works fine with external subroutine call, which was the subject of first paragraph. But in FG context this may not work due to program groups reason.

Regards

Marcin