Tuesday, November 3, 2009

Progress Indicator

Sometimes you create a long running application that runs interactive. The user runs the application and it chugs away and the user starts to think something is wrong and they end there session. When all that is really happening is the program has a lot of data to go through. So what we need is the ability to notify the user that the program is still running. Well lucky for us someone at SAP has taken care of the issue for us.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
  EXPORTING 
    percentage = sy-index 
    text = percentage_text.
What this function does is to place a small stop watch and some text at the bottom of the screen.

Text could be anything If you choose to use a percent complete your program will need to determine how complete you are.
Reblog this post [with Zemanta]