Queue Management in R/2 

As described in the General Communication Process, when communication documents are sent from the R/2 host to the R/3 system, it is always an asynchronous process. They are assigned to a DOUT file (queue) and the system attempts to send them as soon as the receiving system becomes available. As described in the previous section, you can establish whether this process is automatic or manual.

Queue Maintenance

To list communication documents that have been created and are still active in a queue in the R/2 System

  1. Execute transaction TMQM by entering ntmqm in the OK field and choose ENTER .
  2. Choose F11 to display a list of the existing queues in the system.
  3. The number of communication documents for a queue are listed in the TrNr column.

    From this list, it is possible to start the driver to start the program to transmit communication documents from the DOUT queue to the R/3 System (see "Transmitting Communication Documents Manually" below).

  4. To display a list of communication documents (sentences) of a queue, position the cursor on the desired line and choose F12 .
  5. To list the contents of a communication record, position the cursor on the desired line and choose F2 .

The structure of the record displayed is based on a corresponding data dictionary structure.

Communication Record Structure in R/3

The data dictionary structure for communication records in the R/3 System is exactly the same as in the R/2 System.

To display the list of fields for a communication record in the R/3 System

  1. Choose Tools ® ABAP Workbench ® Development ® ABAP Dictionary from the SAP main menu bar.
  2. On the screen that appears, enter ldk01 in the Data type field, and choose Display .

Transmitting Communication Documents Manually

If the communication number in R/2 is defined so that communication documents are transmitted manually, and not automatically, to the R/3 System, the driver must be started manually for the corresponding queue (see table 343 under Connecting R/2 Movement Types to R/3).

To send communication documents manually from the R/2 host to the R/3 system

  1. Execute transaction TMQD ("APPC Management Information") by entering ntmqd in the OK field and choose ENTER .
  2. Enter x in the field to the left of the relevant queue(s). If you do not know which queue(s) to select, check table 343 to see which queue is used for the selected process (communication number).
  3. To select only one queue, you do not have to enter x to the left of the queue. Instead, position the cursor anywhere on the desired queue line.

  4. Choose F17 (Start driver) to start the program to transmit communication documents from the DOUT queue to the R/3 System.
  5. Choose ENTER to display the current status.
  6. A Y appears in column A under "Shipping" of the selected line to indicate that the driver is active. This indicator remains until all communication documents in the queue have been sent successfully.

  7. If, when you choose ENTER again, the line has disappeared, it means that the communication documents in the queue have arrived in the receiving system.

When the communication documents are received in the R/3 System, R/2 is notified that they have arrived successfully and they are physically deleted from the R/2 System.

For further information about this topic, see the SAP Communication: Programmer Handbook, Systems R 4.3/5.0, Form S45.2.