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.
These test programs are not for testing particular ALE services, they apply to general IDoc processing functions (IDoc interface).
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 |
None |
One or more inbound or outbound IDocs are generated, depending on the direction, and forwarded for processing. |
|
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 IDoc status is 30 |
IDoc is forwarded to the external system. |
|
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. |
|
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. |
|
File with one or more IDocs exists in operating system (“File” port type ) |
IDoc is generated and forwarded for inbound processing (to application) |
|
File with one or more inbound IDocs exists in operating system (“File” port type) |
IDoc is generated and forwarded for inbound processing (to application) |
· 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 42.
Graphic: Interaction of test tools in the processing flow