Creating Operation Mappings

Procedure

You define and implement operation mappings at design time.

  1. Create an operation mapping using the Enterprise Services Wizard.

    For more information, see Enterprise Services Wizard.

    The operation mapping is opened in the proxy editor.

  2. On the Properties tab in the proxy editor, you can change the ABAP name of the operation mapping and the implementing class, as well as the prefix. You can also change the release status of the newly created proxy object.

  3. On the Detail View tab, click Source Method and specify the method of the consumer proxy for which you want to define the mapping.

  4. Choose Enter.

    The mode of the operation is displayed.

  5. In the context menu of the Target Methods folder of the mapping, select Add Target Method and specify a target method.

    If the source method is asynchronous, you must select an asynchronous target method, and if it is synchronous, you must select a synchronous one. In the field help, only compatible target methods are offered. You can add further target methods in the same way.

    As target method, you can also use RFC consumers. Note that at present, only synchronous RFC consumers are available. For more information, see Creating RFC Consumers for Single-Target Consumer Mappings.

  6. Save and activate the operation mapping.

Result

An interface and an empty implementing class for the operation mapping have been created for the methods that you have specified. You have to implement the mapping by implementing the new implementing class. To use the operation mapping, you have to assign it to a consumer mapping.