I am trying to make an asynchronous RFC call to a SAP Function Module.
For testing purposes I am comparing the behaviour of a synchronous call versus an asynchronous call to the same FM. The FM receives an input parameter, waits 3 seconds, and returns an output parameter.
The synchronous call looks like this:
The asynchronous call looks like this:
The synchronous call works as expected, returning control to IS after 3 seconds, delivering the expected result.
The asynchronous call should return control to IS immediately and return no result. However, in actuality, control is not returned until 3 seconds have expired. No result is returned, which is the expected behavior.
My question is: Why doesn’t SAP return control to IS immediately for the asynchronous call?