Entering content frameOutput Stream (Output Mode IDOC) Locate the document in its SAP Library structure

Data can also be printed as IDOC (see Programming Interface for Printing).The name of the corresponding basis type is SAPRDI01. It consists of the segments E1RDIH (header), E1RDI_BODY (dummy segment, see below), E1RDIC (control record), E1RDIS (sort record), and E1RDID (data record). The logical message type is SAPRDI, the partner type is LS. In addition, you must maintain in table T000 the logical system for the appropriate client.

Record Structure

The structures of header, control, sort, and data records are the same as described in Output Stream (Output Mode Spool). However, the flags ‘H’, ‘C’, ‘S’, and ‘D’ are missing. For internal reasons, the segment E1RDI_BODY encapsulates control, sort, and data segments. When interpreting the data, the system can ignore it. This dummy segment appears in front of each control record.

For output mode IDOC, the header (E1RDIH) does not contain the document number. The return structure RDI_RESULT of function module CLOSE_FORM returns this number (RDI_RESULT-DOCNUM).

Using START_FORM / END_FORM

If you use START_FORM / END_FORM to print several documents in one request, the system creates only one IDOC and writes a separate header for each document (as for output mode spool).

Status

The status of IDOC is set to 30, status text „IDOC is ready for dispatching (ALE service)". Internally, the constant ALE_READY_FOR_DISPATCHING represents this status.

Processing Selected Intermediate Documents

Use program RSEOUT00 to start processing all selected intermediate documents.

 

 

Leaving content frame