‎2006 Aug 31 9:01 AM
Hello ABAP gurus,
I have small problem and not sure how to solve it. I have a report that runs for a while and then short dumps with the message "Runtime errors - time out". I'm thinking of using the SAPGUI_PROGRESS_INDICATOR function to create interrupts in the select statements and the loops. I think this will work, but does anybody know any easier way to create interrupts in loops and select statements, so that the report does not short-dump?
Regards Baljinder
‎2006 Aug 31 9:02 AM
‎2006 Aug 31 9:06 AM
Hi,
For every report to be executed in FOREGROUND, a standard time is set ( Say 5 min. ) by the BASIS person. Now if the Program Execution in FOREGROUND takes more time than the Standard time ( Say more than 5 min. ) then it would given an error of TIME OUT.
The solution is to either improve the Performance.
If even after improving the performance, its taking more than 5 min., then execute the program in BACKGROUND.
A program can be executed in Background using FM`S JOB_OPEN, JOB_SUBMIT, JOB_CLOSE.
Best regards,
Prashant
‎2006 Aug 31 9:15 AM
Hi,
better performance is anyway a good strategy. You can't 'interrupt' select-queries, but you can put after each (long) select a commit work. This will reset your timer counter of this session.
Use select ... into table to avoid long loops, then this query won't be interrupted by a time-out.
Regards,
Christian
‎2006 Oct 01 6:43 PM
I have same problem also. But i couldn't execute program in background. Because of dialog program that SLICENSE.
When try to enter license it takes long time and time out.
Any chance to change Time Out parameters for Programs or reposrt in SAP NW ?
ibrahim
‎2006 Aug 31 9:16 AM
Hi baljinder,
1. Very correct.
2. You are on the right track.
3. Even if there is something else to create interrupts,
it is always better to use this progress indicator,
bcos it will inform the user that something is going on.
regards,
amit m.
‎2006 Aug 31 9:28 AM
Hi,
you can use the FM <b>TH_REDISPATCH</b> as described in the note 25528 from SAP.
Regards,
Stefan