Here’s a sample code to show / display progress bar using ABAP. We will be using ‘SAPGUI_PROGRESS_INDICATOR’ function module.
REPORT Z_PROGRESS_BAR_DISPLAY.
DATA: progress_txt TYPE c LENGTH 5.
DO 100 TIMES.
"Every progress will wait until 0.50 seconds
WAIT UP TO '0.50' SECONDS.
progress_txt(3) = sy-index.
progress_txt+3 = '%'.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
percentage = sy-index
text = progress_txt.
ENDDO.
Popularity: 1% [?]