Application Development and Automation 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: 
Read only

add error message in Sapgui_progress_indicator

Former Member
0 Likes
1,112

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
Read only

SimoneMilesi
Active Contributor
0 Likes
876

Why do you think SAPGUI_PROGRESS_INDICATOR can help you?

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

Read only

Former Member
0 Likes
876

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

Read only

SimoneMilesi
Active Contributor
0 Likes
876

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?

Read only

Sandra_Rossi
Active Contributor
0 Likes
876

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).