Skip to Content
avatar image
Former Member

add error message in Sapgui_progress_indicator

hi, abap newbie here

I am trying to add a error message (something like 'max # of records exceeded) to a report if the data output exceeds 300,000 lines as this will result in an abap dump timeout. I was trying to leverage form Sapgui_progress_indicator for this but I must be doing something wrong.

any input is appreciated.


Add comment
10|10000 characters needed characters exceeded

  • Why do you think SAPGUI_PROGRESS_INDICATOR can help you?

    What's wrong with a classical Message + STOP statement?

  • Former Member

    did not think of that - where do you put the stop?

  • it depends by how the report is built.

    If you have all the records in an internal table, you can check the row numbers with DESCRIBE TABLE statement before processing it and then choose to stop.

    It's up to you to choose the best behaviour.

    Anyway, are you sure you cannot "shrink" the performances to allow the report to handle more records?

  • Get RSS Feed

1 Answer

  • Aug 25, 2017 at 06:32 AM

    If you run a program in foreground, and it takes too much time, then there must be a timeout.

    You shouldn't try to bypass this mechanism, or the performance of the whole system may decrease.

    Instead, when it happens, the users should run the report in background (and they'll learn to always run it in background in the future).

    For more information about the timeout, refer to the SAP note 25528 (Parameter rdisp/max_wprun_time

    Note that the SAPGUI_PROGRESS_INDICATOR function module does not reset the "timeout counter" (you can see this counter in transactions SM50/SM66).

    Add comment
    10|10000 characters needed characters exceeded