Creating Operation Mapping 
You use this procedure to create operation mapping, which specifies the corresponding mapping programs for request, response, or fault messages for a selected pair of operations. An operation mapping establishes the connection between source and target operation from service interfaces of sender and receiver systems, respectively. Selecting the appropriate operation mapping at configuration time helps you to execute the corresponding mapping program at runtime.
You have opened the Enterprise Services Browser view in SAP NetWeaver Developer Studio.
You have identified the operations for mapping.
From the context menu of software component version, namespace, or folder, choose .
In the Create Operation Mapping window, enter a name for the operation mapping object.
Choose Browse to select the required namespace or folder.
Choose Finish.
Select an existing change list or choose New to create a new change list.
Choose OK.
To add source operation to this operation mapping, in the Operation Definition section, choose Browse to select the source software component version.
In the Source Operations section, choose Add.
In the Select Operation Type window, select the required operation type, external definition, RFC or IDOC.
Choose OK.
In the table, select the required value from the Occurrence dropdown list box.
If you want to use the multi-mapping functionality, add more operations by repeating steps 3 through 5.
Note
By using multi-mapping in an operation mapping, you can perform several mapping programs for the transformation of a request or response message in a series. For more information, see Multi-Mappings.
To add the target operations to this operation mapping, in the Target Operation section, choose
Add.
Repeat steps 3 through 6, in the Target Operation section.
In the Parameters section, choose Add.
Note
Using parameters to transfer values increases scope of reusability for a mapping program.
You define parameters in operation mapping in order to connect with the parameters defined in message mapping.
If you want to change the default values, then click the individual column cells to change the values.
If you want, change the default name by manually entering a name for the parameter.
Choose a category based on the explanation below:
Category |
Use |
Simple Type |
Transfer a scalable value. |
Adapter |
Select an adapter type for programming a mapping lookup. |
In the Type column, select from the drop down options depending on category chosen in the above step.
In the Parameter column, select the type from the drop down option:
Category |
Use |
Import |
Transfer values to mapping program before its execution. If you want, you can specify constants beforehand during binding. |
Export |
Transfer values of the mapping program after its execution. |
Note
If you have not declared parameters in message mapping, then it is not necessary to declare parameters in operation mapping.
You can assign values directly to certain type of message mapping parameters during binding of message mapping parameters (Procedure for binding of parameters is explained in the next section of Defining Operation for Mappings).
For more information on usage of parameters in mapping programs, see Parameterized Mapping Programs .
To map input messages, proceed as follows:
In the Definition tab page, double-click the target input node.
In the Mapping Programs window, choose Add.
In the Type column, select the desired type of message mapping program from the drop down list.
In the Name column, click the button at the right.
In the Select mapping program window select the message mapping program.
Note
You can use the filters to match mapping programs with selected source and target message type.
In case of multi-mapping, the first source and target are used as search criteria
Click OK.
Note
Output and Fault are visible depending on the mode and number of selected operations at source and target.
To map output messages, proceed as follows:
Double-click the target Output node.
In the Mapping Programs window, choose Add.
In the Type column, select the desired type of message mapping program from the drop down list.
Click on the button at the right, in the Name column.
In the Select mapping program window, select the message mapping program.
Note
You can use the filters to match mapping programs with selected source and target message type.
In case of multi-mapping, the first source and target are used as search criteria
Click OK.
To map fault messages, proceed as follows:
Drag and drop fault message type from source to the fault message type under the Fault node to do the mapping.
Double-click on the target Fault node.
In the Mapping Programs window, choose Add.
In the Type column, select the desired type of message mapping program from the drop down list.
Click on the button at the right, in the Name column.
In the Select mapping program window, select the message mapping program.
Note
You can use the filters to match mapping programs with selected source and target message type.
In case of multi-mapping, the first source and target are used as search criteria
Click OK.
To bind the message mapping parameters with the operation mapping parameters, proceed as follows:
In the Mapping Programs window select the mapping program for which the parameter binding needs to be done.
Click Binding button.
In the Binding for Mapping Program window, in the Binding column, select the parameters defined in operation mapping from the drop down list.
Note
You can also enter values manually for parameters that are of Category String and Integer type.
If you want to add internal documentation, in the Documentation section, choose Edit Documentation link.
Note
This field is not available if you have selected the Use External Documentation check box while defining the software component version.
In case, you have selected the Use External Documentation check box, you can view the external document by selecting View. This option is useful if documentation about the object exists in SAP Solution Composer.
In the Internal Documentation window, choose the Edit Documentation tab page.
Enter the content.
Choose OK.
Note
In case internal documentation is assigned to the object, you can view it in Web browser, by selecting View Documentation.
In the Advanced Options section, select the appropriate option in accordance with the use given below:
Option |
Use |
Use SAP XML Toolkit |
Specifies whether the SAP XML Toolkit is to be used for executing pre-configured XSLT programs. Only select Use SAP XML Toolkit if you reference an existing XSLT mapping program that does not run with JDK 5. SAP recommends that you no longer use the SAP XML Toolkit for new XSLT mapping programs. |
Do Not Resolve XOP Includes |
If the data structure of a message to be processed in an operation mapping contains modeled binary data, the Web service runtime may extract this binary data and create a MIME attachment (MTOM optimization) before the message is sent. The binary data encoded in xsd:base64Binary is then replaced by a <xop:include> statement.
End of the note. |
Read Attachments |
Mapping programs are executed in the Java part of SAP Application Server. Since the Integration Server is in the ABAP part of SAP Application Server, before a mapping program can access a message the message must first be sent to the Java part. If you do not select this option, the mapping runtime only transfers the message payload to the Java part (without any attachments). If you select this option, the attachments are transferred to the Java part in addition to the payload. |