Show TOC

Example documentationqRFC with Inbound Queue Locate this document in the navigation structure

 

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

qRFC with Inbound Queue

Syntax Syntax

  1. REPORT rstrfct5. 
  2. ...
  3. CALL FUNCTION 'TRFC_SET_QIN_PROPERTIES'
  4.   EXPORTING
  5.     QOUT_NAME                = ' '
  6. *   QIN_NAME                 =
  7. *   CALL_EVENT               = ' '
  8. *   NO_EXECUTE               = ' '
  9. * EXCEPTIONS
  10. *   INVALID_QUEUE_NAME       = 1
  11. *   OTHERS                   = 2
  12. .
  13. CALL FUNCTION ’rfc_function’
  14.  DESTINATION rfcdest
  15.  IN BACKGROUND TASK
  16.  ( AS SEPARATE UNIT )
  17.  EXPORTING ...
  18.  TABLES ...
  19.  
  20. COMMIT WORK.
End of the code.
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.

    Note Note

    If you do not give a name for the inbound queue, the name of the oubound queue is used automatically.

    End of the note.
  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.

Note Note

The sending application cannot define the serialization of the qRFC LUWs in the inbound queue of the target system. The input field for the queue counter is ignored. The target system always creates a queue counter that is dependent on the time of the LUW entry itself.

End of the note.
More Information

For detailed information on programming the inbound queue, see: