Parallel Processing Requests 
Caution
The ABAP code shown here is simplified sample code. It is not meant as a template for real coding.
You can send requests to various servers in parallel and to wait for all the responses simultaneously. The method LISTEN is then used to find out which request is currently being responded to.
This procedure is useful if several requests have been assigned to different servers with widely differing response times.
You can also add to the program by inserting the following lines. In additional parameters, specify that you want to use the LISTEN method and the number of requests that you want to send.
End of the code. |
Now the system waits for the responses to the requests. The responses are received in the order in which the server sends them.
End of the code. |
The incoming responses are re-assigned to the requests.
End of the code. |
You can then specify how often a request should be dropped (parameter times). You can see in the output the order in which the responses were received. This does not have to be the order in which the requests were sent.