2016 May 17 2:31 PM
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
2016 May 17 4:08 PM
Try the method mentioned in this code. It seems to work without flickering.
Thanks,
Juwin
Unfortunately same behavior. The commit flushes the OLE in SAP GUI and the hourglass disappears until next function call in the loop. Thanks anyway.
2016 May 17 2:40 PM
'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
2016 May 17 3:50 PM
Can you try the FM: SAPGUI_PROGRESS_INDICATOR? I think it is also similar to the FM that you are using.
-Chandra
2016 May 18 7:12 AM
Unfortunately same behavior. The commit flushes the OLE in SAP GUI and the hourglass disappears until next function call in the loop. Thanks anyway.
2016 May 17 4:08 PM
Try the method mentioned in this code. It seems to work without flickering.
Thanks,
Juwin
2016 May 18 7:13 AM
Thanks, Juwin. There is no hourglass in this method only text information, but it still looks much better without flickering.
2016 May 18 1:52 PM
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.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |