Adapter for SAP 10.1 | webMethods Adapter for SAP Documentation | webMethods Adapter for SAP Installation and User’s Guide Documentation | Routing Messages Through Adapter for SAP | Mapping IDocs to Other Formats | Testing the Mapping Service
 
Testing the Mapping Service
To test the flow service you created, use the SAPGui or the /WmSAP/submitIDocXML.html utility to submit your sample IDoc to Adapter for SAP. Make sure to specify the sender, receiver, and message type that you used for the routing rule that you created in Configuring a Routing Notification.
Check the results of the service to ensure that the IDoc is being mapped correctly.
If you want to debug your service in Designer, you can use the savePipelineToFile and restorePipelineFromFile services to capture a submitted IDoc.
*To test the mapping service
1. Use the SAPGui or the /WmSAP/submitIDocXML.html utility to submit an IDoc to your flow service. When the service executes, the savePipelineToFile operation will make a copy of the pipeline (which will include your IDoc) and save it to file.
2. Delete the savePipelineToFile service and insert the restorePipelineFromFile service.
3. Select the Test > Run command to execute the flow service. When it executes, the restorePipelineFromFile service will retrieve the copy of the pipeline containing your IDoc, which the remainder of the flow will operate on.
4. When you are finished testing, delete the restorePipelineFromFile service and save the finished flow.