Start of Content Area

This graphic is explained in the accompanying text qRFC with Inbound Queue  Locate the document in its SAP Library structure

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

 

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

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

       2.      Specify the name of the outbound and, if you choose, the inbound queue.

Note

If you do not assign a name to the inbound queue, a name of the outbound queue is used automatically.

       3.      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

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.

More Information

For detailed information on programming the inbound queue, see:

      Transferring Queue Names to the Inbound Queue

 

 

End of Content Area