qRFC with Inbound Queue

Use

The following programming example shows qRFC communication with an inbound queue (optional parameters are shown with '*'):

qRFC with Inbound Queue

        


        
REPORT rstrfct5.
        
...
        
CALL FUNCTION 'TRFC_SET_QIN_PROPERTIES'
        
EXPORTING
        
QOUT_NAME = ' '
        
* QIN_NAME =
        
* CALL_EVENT = ' '
        
* NO_EXECUTE = ' '
        
* EXCEPTIONS
        
* INVALID_QUEUE_NAME = 1
        
* OTHERS = 2
        
.
        
CALL FUNCTION 'rfc_function'
        
DESTINATION rfcdest
        
IN BACKGROUND TASK
        
( AS SEPARATE UNIT )
        
EXPORTING ...
        
TABLES ...
        


        
COMMIT WORK.
         

Process Flow

To execute a qRFC with an inbound queue, proceed as follows:

  1. Specify the name of the outbound queue and, optionally, the inbound queue.

  2. Execute a tRFC call (CALL FUNCTION... IN BACKGROUND TASK).

Information about the queue is stored in the database table TRFCQIN. Other data is stored in the tables TRFCQSTATE and TRFCQDATA.

The QIN Scheduler activates a registered inbound queue as soon as this queue is filled.

More Information

For detailed information on programming the inbound queue, see: