Entering content frame

 Function documentation Testing IDoc Processing  Locate the document in its SAP Library structure

Use

The test programs allow you to skip certain sections of the processing chain between applications to localize errors. 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.

 

NoteThese 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 using the IDoc Interface is generated from an existing message status record (which refers to the application data using an object key).

Function

Prerequisite

Result

Test tool

None

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

Outbound Processing from MC

Message status record exists in Message Control, 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 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 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.

(Test) 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 Structure linkInitial 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 42.

Graphic: Interaction of test tools in the processing flow

This graphic is explained in the accompanying text

 

 

 

Leaving content frame