Application Development 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: 

Refreshing Progress Indicator during calculation loop (WD ABAP)

Former Member
0 Kudos
222

Hi everybody,

I want to use the ProgressIndicator UI Element on one of my Views. But when setting a new percent value during my calculation this does not lead to a refresh of the indicator on the screen, hence I can only see the 0% and 100% state after finishing the calculation but nothin in between. Is there an elegant way to refresh the view or is the only way to trigger the inbound plug after each calculation step ?

Thanks for any hints & best regards,

Michael

2 REPLIES 2

valter_oliveira
Active Contributor
0 Kudos
60

Hello.

You must increment the percentage like:

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

EXPORTING

text = 'Searching data ...'.

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

EXPORTING

percentage = '0.25'

text = 'Calculating ...'.

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

EXPORTING

percentage = '0.50'

text = 'Preparing output ...'.

Until it get's value 1.

However, if it's too fast you cannot see!

Regards.

Valter Oliveira.

Former Member
0 Kudos
60

Hi Valter,

From what I see, this Function Module you mentioned is only working for Dynpros and not for WebDynpros. In my case the Percentage value of the Progress Indicator is bound to the Context of my WebDynpro view and I want to trigger a refresh after I changed this value.

Thanks anyway!

Best regards,

Michael