Function Module for Progress bar

Do you know while your report is progressing during run a one indicator can represent the total progress just write a simple function module for it.

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.

WRITE: / ‘Complete’.

Some Other Standard Important Function Module are :

SAP Function modules Related to Files

SAP Function Module for Date and Time

Function modules Related to Amount and Currency

Leave a comment