Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

add error message in Sapgui_progress_indicator

Former Member
0 Kudos

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.

thanks

4 REPLIES 4

SimoneMilesi
Active Contributor
0 Kudos

Why do you think SAPGUI_PROGRESS_INDICATOR can help you?

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

Former Member
0 Kudos

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

SimoneMilesi
Active Contributor
0 Kudos

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?

Sandra_Rossi
Active Contributor
0 Kudos

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 https://launchpad.support.sap.com/#/notes/25528/E

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