Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Thursday, February 21, 2008

Showing a progress bar in ABAP

This process is very easy but a lot of programmers don't know how to do it. You just have to call the ABAP FM SAPGUI_PROGRESS_INDICATOR, at the appropriate points.

Below is a simple example, give it a try !!

REPORT zdany_progress_bar.
DATA: percentage_text TYPE c LENGTH 5.
DO 100 TIMES.
     
    WAIT UP TO '0.5' SECONDS.
    percentage_text(3) = sy-index.
    percentage_text+3 = '%'.
     
     
    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
    EXPORTING
     
        percentage = sy-index
        text = percentage_text.
     
     
ENDDO.

This process is very easy but a lot of programmers don't know how to do it. You just have to call the ABAP FM SAPGUI_PROGRESS_INDICATOR, at the appropriate points.

Below is a simple example, give it a try !!

REPORT zdany_progress_bar.
DATA: percentage_text TYPE c LENGTH 5.
DO 100 TIMES.
     
    WAIT UP TO '0.5' SECONDS.
    percentage_text(3) = sy-index.
    percentage_text+3 = '%'.
     
     
    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
    EXPORTING
     
        percentage = sy-index
        text = percentage_text.
     
     
ENDDO.

No comments:

Post a Comment

Content

Recent Topics