Defining RFC Lookups

Use

You use this procedure to enable the standard function RFC lookup available in the expression editor, define a mapping-lookup using the RFC adapter. The function takes the request, response, and fault parts of an imported RFC into account.

Prerequisites

To be able to model the lookup, the structure of the RFC must be known. To use this structure in the mapping editor, you must import the RFC to the Enterprise Services Repository.

Procedure

1. Enable RFC Call and Import RFC for Mapping Editor

  1. In the Integration Directory, create the RFC receiver channel for the call to the application system.

  2. Import the RFC to the Enterprise Services Repository.

2. Define a Parameterized Mapping program

  1. Create a message mapping with a source and target structure, or open an existing message mapping for editing.

  2. In the mapping editor, switch to the Overview tab page.

  3. Create an import message mapping parameter of category Adapter (for example, MMP_RFC).

  4. Assign import message-mapping parameter to the adapter metadata of the RFC adapter

  5. In the mapping editor, navigate to the Definition tab page and then to the target field mapping for which you want to define the RFC lookup.

  6. Double-click and open the expression editor, right-click on the Conversions .

  7. Choose Start of the navigation pathNew Next navigation step RFC LookupEnd of the navigation path.

  8. Define the call in the RFC Lookup dialog as follows:

    1. Select the import message-mapping parameter for the RFC adapter from the dropdown list box (MMP_RFC).

    2. Browse and select the imported RFC from Select RFC dialog.

    3. Model the inbound and return parameters for the function to define the RFC call, in the function properties for standard function RFC Lookup.

  9. Define the mapping as follows:

    1. To use a parameter from the RFC request or the RFC response as the inbound or return parameter for the standard function RFC lookup, double-click the parameter in the structure.

    2. The parameter is then transferred to the table in the lower screen area.

    3. You can also define the sequence of the inbound or return parameters.

  10. If, later, you want to assign a receiver channel to the message-mapping parameter that you assigned the import function parameter to, you must assign this import parameter to an operation-mapping parameter by using binding.

3. To execute or test the mapping program and the mapping lookup in the Integration Directory

  1. Configure a Receiver Channel for Mapping Lookups:

    1. If you want to use a different RFC receiver channel to the one in above step, create a new receiver channel for calling the application system in the Integration Directory .

    2. To transfer the ID of the receiver channel to your message mapping program at runtime, create an interface determination and assign it the operation mapping. Then, in the interface determination, you can then assign the receiver channel to the operation-mapping parameter (in the example IM_RFC).

Result

You have defined a lookup in your message mapping by using the standard function RFC Lookup, and have configured it in the Integration Directory. You can now test the message mapping program.