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 Module

Former Member
0 Kudos

Hi experts,

We are calling a function module within another function module.

Let us assume calling functionModule1 in functionModule2.

Call function takes more than 20 minutes of execution.

No other logic is added.

If we execute functionModule1 standalone it takes only 10.5 seconds.

This is strange right?

Could you please tell me what is the reason for the very slow execution.

Kidly advice us on this issue.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Put a break point at the function module ur calling i.e fm1.

Then see, whats happening in the FM in the debugging... I think it is running the FM a lot of times.

Regards,

Vishwa.

5 REPLIES 5

Former Member
0 Kudos

Hi

Put a break point at the function module ur calling i.e fm1.

Then see, whats happening in the FM in the debugging... I think it is running the FM a lot of times.

Regards,

Vishwa.

naveen_inuganti2
Active Contributor
0 Kudos

Hi..,

There must be reason in SAP for each issue..!

Please let me know what are the function modules you are working with?

Custom or standard?

And what is the basic functionality of calling function module?

Did you got any thing with debugging, let me know!

Thanks,

Naveen.I

0 Kudos

Hi,

Thanks for the quick response

functionModule1 and functionModule2 both are Custom function modules.

within functionModule2 I have included the following code.

just populating 3 internal tables with only one rows and included

call statement to functionModule1.

we are wondering that standalone execution takes just 10.5 secondz.

but within functionModule2 functionModule1 alone takes more than 20minutes.

why call function statement takes so much time?

Edited by: sasitharan on Sep 30, 2008 6:53 AM

0 Kudos

please update the thread.

Kindly give any suggestions

0 Kudos

Hi,

When you call a function module the whole function group will be called,so it is taking longer time for excection.

Thanks,

Suresh.