Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to enable a PROGRESS_INDICATOR to survive commit?

Former Member
0 Likes
2,663

Hi gurus,

I encountered the following problem but couldn't get a solution yet. In a report I create a working list with quite a lot of items. In a loop I process the items by calculating things, checking consistency and calling BAPIs. Each item runs through several steps.

At the end of the loop I call

1 ACCEPTED SOLUTION
Read only

Juwin
Active Contributor
0 Likes
2,017

Try the method mentioned in this code. It seems to work without flickering.

Thanks,

Juwin

6 REPLIES 6
Read only

Former Member
0 Likes
2,017

'TB_PROGRSS_INDICATOR' to calculate progress and give feedback to the user. That works just fine. However, between the steps I have to commit the BAPI calls ( create a security contract -> commit, settle the contract -> commit) and after the commit the progress indicator in the status line disappears. Since there are, let's say 4-5 seconds, before the progress is re-calculated (next item has reached bottom of loop) I got the effect that the indicator just flickers for a second or so and then disappears for 3 seconds and this is repeating until the loop has finished. Any idea how I can find a workaround?

Thanks,

Gerd

Read only

0 Likes
2,017

Can you try the FM: SAPGUI_PROGRESS_INDICATOR? I think it is also similar to the FM that you are using.

-Chandra

Read only

0 Likes
2,017

Unfortunately same behavior. The commit flushes the OLE in SAP GUI and the hourglass disappears until next function call in the loop. Thanks anyway.

Read only

Juwin
Active Contributor
0 Likes
2,018

Try the method mentioned in this code. It seems to work without flickering.

Thanks,

Juwin

Read only

Former Member
0 Likes
2,017

Thanks, Juwin. There is no hourglass in this method only text information, but it still looks much better without flickering.

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,017

The code by Juwin is using class CL_PROGRESS_INDICATOR, which in fact is a wrapper of function module SAPGUI_PROGRESS_INDICATOR.

Function module TB_PROGRESS_INDICATOR (SAP ERP) is also using SAPGUI_PROGRESS_INDICATOR.

So, as you mention, the issue is only with the "percentage" progression image (hourglass), not with text only (whatever the function module or class you use / as you may always choose with these FMs/class).

To know what the real problem is, you should run the program of Juwin using the percentage parameter (I_PROCESSED / I_TOTAL). If the hourglass still flickers then it's probably because of your SAP GUI installation (solution: re-install). Otherwise, there's something wrong in "your" code: as that progress indicator is based on RFC to the SAPGUI, you may use a RFC trace (ST05) to see whether the progress indicator is erased (by the BAPI) right after you displayed it.