‎2007 Aug 15 10:28 PM
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?
.
‎2007 Aug 15 10:33 PM
‎2007 Aug 15 10:33 PM
‎2007 Aug 15 10:34 PM
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
‎2007 Aug 15 10:35 PM
You have to put it inside a loop and calculate the percentage everytime.
‎2007 Aug 15 10:36 PM
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