Skip to Content
Author's profile photo Former Member

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.

/wp-content/uploads/2013/12/1_335585.jpg

Use of the Function Module SAPGUI_PROGRESS_INDICATOR

Example after a Select statement:

/wp-content/uploads/2013/12/2_335587.jpg

/wp-content/uploads/2013/12/3_335588.jpg

Example in a Loop statement:

/wp-content/uploads/2013/12/4_335589.jpg

Result:

/wp-content/uploads/2013/12/5_335590.jpg

/wp-content/uploads/2013/12/6_335591.jpg

/wp-content/uploads/2013/12/7_335592.jpg

Please find sample codes in attachment.

Assigned tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Deependra Shekhawat
      Deependra Shekhawat

      Nice Artical Feenaz,

      could you please describe what is the reason it prevents system from TIME_OUT dump ?

      Author's profile photo Former Member
      Former Member

      Hi,

      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,

      Gareth.

      Author's profile photo Deependra Shekhawat
      Deependra Shekhawat

      Thanks Gareth,

      Nicely explained .

      Author's profile photo Michelle Crapo
      Michelle Crapo

      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.