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 | Defining Variables to which to Map Information from the IDoc
 
Defining Variables to which to Map Information from the IDoc
Perform the steps in the procedure below to define the variable(s) to which you want to map information from the IDoc.
*To define the variable(s) to which you want to map information from the IDoc
1. Select Map on theFlow Pane toolbar.
Note:
Make sure the MAP operation appears immediately after the iDocToDocument / xmlNodeToDocument operation. If necessary, use the arrow buttons on the toolbar to move it to the correct position.
2. Select the Pipeline tab.
3. In Pipeline Out, select the bottom-most variable.
4. Click the icon on the toolbar, and select the Document Reference.
5. In the Name field, type the fully-qualified name of the document definition you want to map the IDoc to, or select it in the Folder tree. Click OK.
6. Type a name for this Document and press ENTER.
When you finish this step, Pipeline Out should contain a document that defines the structure of your target document type. (Do not save the flow at this stage, because if you do, the yet unused document Reference will be deleted again from the service.)
7. Use Map to map fields from the IDoc Document in Pipeline In to the appropriate target variables in Pipeline Out. If you need additional information about this step, see webMethods Service Development Help for your release.
The following example shows a variable mapped from the ORDERS02 IDoc to a String variable in Document called PurchaseOrder.
Note:
You can find a document type for the example purchase order shown above in sample.sap.records:PurchaseOrder.