Whenever the following ABAP statement is called, fRFC processing takes place:
CALL FUNCTION 'STFC_CONNECTION'
DESTINATION RFCDEST
IN BACKGROUND TASK
This means that the following call sequence is triggered:
1. protected boolean onCheckTID(String tid).
At this point, the application must be informed that the next call is to be processed with this TID. The application must return the value true in order to signal that execution is possible.
2. calls the function module.
3. the protected void method onCommit(String tid) or onRollback(String tid), depending on the result of the function distribution. If handleRequest has not thrown any exceptions, onCommit is called.
4. protected void method onConfirmTID(String tid).
At this point, the application is informed that execution has been ended by the call with the specified TID. This call might also be received in a different Listener or, if problems arise, not be received in the ABAP backend system at all.