09-30-2008 5:35 AM
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.
09-30-2008 5:42 AM
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.
09-30-2008 5:42 AM
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.
09-30-2008 5:44 AM
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
09-30-2008 5:53 AM
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
09-30-2008 6:06 AM
09-30-2008 6:21 AM
Hi,
When you call a function module the whole function group will be called,so it is taking longer time for excection.
Thanks,
Suresh.