Here’s a sample code to show / display progress bar using ABAP. We will be using ‘SAPGUI_PROGRESS_INDICATOR’ function module.
01.REPORT Z_PROGRESS_BAR_DISPLAY.02. 03.DATA: progress_txt TYPE c LENGTH 5.04. 05.DO 100 TIMES.06. 07. "Every progress will wait until 0.50 seconds08. 09. WAIT UP TO '0.50' SECONDS.10. 11. progress_txt(3) = sy-index.12. progress_txt+3 = '%'.13. 14. CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'15. EXPORTING16. percentage = sy-index17. text = progress_txt.18. 19.ENDDO.
No comments:
Post a Comment