Adapter for SAP 10.1 | webMethods Adapter for SAP Documentation | webMethods Adapter for SAP Installation and User’s Guide Documentation | Coding Client Applications and Services | Constructing an IDoc with the SAP Java IDoc Class Library | Sending IDocs to an SAP System
 
Sending IDocs to an SAP System
The basic steps to send an outbound IDoc from either a client or a service are:
1. Create a transaction ID by invoking the pub.sap.client:createTIDservice.
2. Send the IDoc to the SAP system by invoking the pub.sap.client:sendIDoc service, passing in the com.sap.conn.idoc.IDocDocumentList object (iDocList).
If an error occurs, repeat the pub.sap.client:sendIDocservice invocation with the same transaction ID. The SAP system guarantees that the transaction will execute only once.
3. After pub.sap.client:sendIDoc returns successfully, invoke pub.sap.client:confirmTID.