Since it is possible to limit the number of simultaneous handler processes to control system performance, some messages from the client device are not processed immediately when being received by the server (see Setting the Maximum Number of Handlers).
If you schedule a background job for the handler, the messages that were not processed immediately can be processed with minimum delay.
? To activate background processing, select Batch User May Differ from Logon User when Configuring Handler Control Records.
Only set this flag if you are sure that the batch user can edit the handler worklist items and execute the update BAPI wrappers or the read BAPI wrappers in the back-end system.
If the batch job executes the messages, the initiation user is the user who sets the batch job. This user needs the relevant authorizations in both the SAP Web AS and the back-end system where the application data resides.
? You created variants with which background jobs can be scheduled.
1. Start transaction SM36.
2. Enter a name for the job under Job Name.
3. Select A for the Job Class.
4. Specify when the job is to begin by choosing Start Condition.
5. Choose Immediate.
6. Select the Periodic Job option and choose Periodic value to define how often it is repeated.
You have to define a frequency for the handler background job, taking the Max.Number Handlers setting of the handler control record into account. If the value is small, set the handler job so that it is not executed frequently, for example, every half hour.
7. Select the corresponding period value and choose Save to save the period and to return to the Start Time screen.
8. Choose Save in the lower part of the Start Time screen to return to the Define Background Job screen.
9. Choose Step and then ABAP Program.
10. In the ABAP Program section, enter MEREP_RETRY_BP in the Name field.
11. Enter a suitable defined variant, for example, P_HNDLER.
12. Choose Save in the lower part of the Create Step 1 screen to return to the Define Background Job screen.
13. Choose Save to save the completely defined job and transfer it to the background processing system.
Release the job so that it can be executed.