on 05-17-2022 5:59 PM
Hi experts,
I am in a situation where I need to queue incoming RFCs so that they are executed one after the other.
For this, I am currently using qRFC as described here: qRFC Design
However as I also need to get some results back from the function module on which the subsequent logic of the calling function module depends, this approach fails as the IMPORTING keyword is not supported here.
So ideally my code would look like this:
FUNCTION calling_module
* Do some things..
CALLING FUNCTION 'TRFC_SET_QIN_PORPERTIES' "Set up the queue
..
CALLING FUNCTION 'queued_module'
DESTINATION rfcdest
IN BACKGROUND TASK
AS SEPARATE UNIT
EXPORTING
..
IMPORTING "Importing is not supported by qRFC
ev_return = lv_return.
COMMIT WORK.
..
IF lv_return IS NOT INITIAL
..
* Work with lv_return here
..
ENDIF.
ENDFUNCTION.
Is there a way to achieve both, processing the calls in the order they come in (i.e. first-in, first-out) and getting some results back from each call after its execution?
Thanks for you help in advance!
User | Count |
---|---|
82 | |
9 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.