Retrieving the Result with an Asynchronous Call
Procedure
If you have specified ASYNCHRONOUS_TASK and RECEIVE_RESULT during GET_FUNCTION, you need to pass a class instance to the parameter RESULT_CLASS of method EXECUTE.
Therefore, either you create a new class or use an already existing class, which does not inherit from another class yet. You can use a global class or a local class. Then you change that class inheritance to class CL_ACO_RECEIVE_RESULT. Afterwards, you have to redefine the method RECEIVE_RESULT. The method has only one parameter named P_TASK. This parameter receives the actual task name. As the method is a callback routine, some restrictions apply, for example, it is not possible to make a UI output. Have a look at the description of asynchronous RFC for more details.
The class CL_ACO_RECEIVE_RESULT defines an attribute FUNCTION. This attribute holds a reference to the function instance, on which EXECUTE was invoked.
You will therefore usually start your implementation with:
try. ME->FUNCTION->RECEIVE_RESULT( ). catch CX_ACO_EXCEPTION. "error handling endtry.
Then you can start evaluating the result as usual with method GET_PARAMETER_LIST.