Just some basics for the SAP inbound/outbound implementations:
Inbound to SAP:
1.The xml data can be send as an input to the pub.sap.idoc;decode service.
2.use pub.sap.transport.ALE:outboundProcess service which sends the IDOC to the respective SAP client.
Outbound from SAP:
1.Use the pub.sap.idoc.transformFlatToHierarchy
2.Map the boundNode to the webMethods representation of the IDOC structure.
3.Once you have the webMethods form of IDOC, you can manipulate with the doc.
Note:In case of outbound documents,routing rules needs to be created and webMethods listener needs to be configured.
#Integration-Server-and-ESB#webMethods#Adapters-and-E-Standards