
In a BSP application, large collections in the OnInitialization event handler can cause a timeout on the next page. This timeout should be intercepted, and an appropriate error message should be displayed without losing the session context.
Answer
You can solve the problem of long-running processes by starting these processes in a second thread, so that the front-end thread can quickly display the next HTML page in the browser. In ABAP, this corresponds to the call function ... in background task.
On this next page, you can use the HTML refresh mechanism. This automatically refreshes the page after a set amount of time has elapsed - 20 seconds, for example. The system displays a progress display and a message informing you that the system is still busy.
Synchronization of the front end task with the process task is performed by the database.