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

Progress Indicator

Former Member
0 Likes
746

I need to include a progress indicator during the execution of my report. So I included

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING

PERCENTAGE = 100

TEXT = 'Test'

in the START-OF-SELECTION. event. But this does not display the actual percentage of execution time. How do I do that?

.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
666

Hi,

Here you go

Thanks

Mahesh

4 REPLIES 4
Read only

Former Member
0 Likes
667

Hi,

Here you go

Thanks

Mahesh

Read only

Former Member
0 Likes
666

Hello Megan

What you can do is to calculate the number or entries found on your select, before doing the selection ....and finally on each loop asign a percentage and call the FM again.

i would recommend to not do it....the report will go slower....just put as information before and after the select stm..

Bye

Gabriel

Read only

Former Member
0 Likes
666

You have to put it inside a loop and calculate the percentage everytime.

Read only

Former Member
0 Likes
666

Check the below program and see the results in debugging

DATA: A LIKE SY-UCOMM.

DO 100 TIMES.

DO 300 TIMES.

GET TIME.

ENDDO.

A(3) = SY-INDEX.A+3 = '%'.

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

EXPORTING

PERCENTAGE = SY-INDEX

TEXT = A.

ENDDO.

Thanks

Seshu