Just some more info: I’m trying to achieve black-box testing of EAI integration with a SAP system.
The test application first simulates an EAI client submitting a document (say, an XML sales order) to the EAI system. The EAI system converts the XML document to IDoc (ORDERS05 in this case) and delivers to SAP’s IDoc Inbox. After waiting a few seconds for EAI processing, the test application attempts to retrieve the full content of the ORDERS05 IDoc from SAP (using the sales order number as a key) and make assertions on it (for e.g., was order date transformed correctly, does line #2 have such-and-such product ID, etc).
So far, I’ve got a custom RFC (an automation of SAP ‘we19’) that retrieves a list of IDocs matching content search criteria (Sales order number). However, I can’t find a way to retrieve the full IDoc content.
Are these SAP RFCs of any use for getting IDoc content? I can see them from the webMethods SAP adapter, but cannot find documentation online (SAP’s SDN is NOT a great help).
This SDN post (requires SDN login) talks about exporting an IDOC to flat file format by using the SAP ‘WE19’ > ‘Inbound File’ function
I’ve tested it and it possible to do the same thing programatically.