Progress Bar – avoid timeout dump
A progress bar is used to display the progress of a process. Sometimes a program can take long to execute and can result in a timeout dump.
A progress bar can be used to prevent a timeout dump.
Use of the Function Module SAPGUI_PROGRESS_INDICATOR
Example after a Select statement:
Example in a Loop statement:
Please find sample codes in attachment.
Nice Artical Feenaz,
could you please describe what is the reason it prevents system from TIME_OUT dump ?
The TIME_OUT is only avoided if you call the progress bar update at regular intervals whilst your process is running.
So, for example, say you have a report program that takes ~30mins to execute but your system is set to timeout after 10mins. You've done some investigation and can see that you program has 10 main packages of logic and each one takes ~3mins. If you call an update to the progress bar via the FM mentioned above you will see the progress bar update roughly every 3mins.
This "tricks" the GUI into resetting it's timeout counter and hence it only ever thinks your process has been running for 3mins, not the full 30mins.
Hope this makes sense,
Nicely explained .
Nicely done. Even now (2019), it is something I could use. Although I would hope, I'd never have to use it. It's a nice trick to add to my list of tips and tricks.