Skip to Content

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.

To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

    1. Gareth Ryan

      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.

      (0) 

Leave a Reply