Show TOC

Testing IDoc ProcessingLocate this document in the navigation structure

Use

The test programs allow you to skip certain sections of the processing chain between applications so that errors can be located. However, they can also be used to simulate an entire business process (for example, purchase order on the customer side with posting of the purchase order on the vendor side) in an SAP System (without any other systems). For this reason, the test programs are an important tool for configuring the IDoc interface and defining new IDoc types.

Note

These test programs are not for testing particular ALE services, they apply to general IDoc processing functions (IDoc interface).

Features

The figure below shows the various test programs and the processing steps when they are used: For example, when using "Test from MC", an IDoc for outbound processing of the IDoc interface is generated from an existing message status record (which refers to the application data with an object key).

Function

Prerequisite

Result

Test tool

None

One or more inbound or outbound IDocs are generated, depending on the direction selected, and forwarded for processing.

Outbound Processing from MC

Message status record exists in message control (MC), referring to the application object (for example, purchase order)

Outbound IDoc is generated. The IDoc is forwarded to the external system in accordance with the partner profile.

Outbound Processing from IDoc

Outbound IDoc status is 30.

IDoc is forwarded to the external system.

Generating a Status File

The status must refer to an existing outbound IDoc.

A status file is generated and processing is triggered in the same way as with process status file.

Processing the Status File

The status must refer to an existing outbound IDoc and must exist as the status file.

The status values are appended to the relevant outbound IDoc as status records. Exception handling is triggered in accordance with the status value.

Inbound Processing: Modified Outbound File

File with one or more IDocs exists in operating system ("File" port type ).

IDoc is generated and forwarded for inbound processing (to application).

Inbound Processing: Original Inbound File

File with one or more inbound IDocs exists in operating system ("File" port type).

IDoc is generated and forwarded for inbound processing (to application).

Activities
  • The test tool is accessed from the initial node of the IDoc interface in the node Test.

  • IDocs that were generated with the test tools are indicated with a special status: In inbound processing it is status 74, in outbound processing status 42.

Figure: Interaction of Test Tools in the Processing Flow