Using SAP® ERP for RFC invocation

Configure the SAP® ERP connector and call custom RFC-enabled function modules directly from your integrations.

About this task

This example explains how to use SAP® ERP for RFC invocation.

Assume that you have a Flow service SAP_ERP_Test_FS inside Test_SAP_ERP project. The Flow service SAP_ERP_Test_FS used in the example is a simple Flow service that uses the RFC invocation action from SAP® ERP You want to start this Flow service.

To start and run SAP_ERP_Test_FS (Flow service), you must create an account to connect to SAP® ERP.

Procedure

  1. Create the Flow service. Select SAP® ERP from the drop-down menu.
  2. Select Add Custom Operation in the drop-down list next to SAP® ERP.
    This redirects you to the Action configuration screen.
  3. Provide the following details:
    • In the Name field, specify a name for the action.
    • In the Description field, provide a short description for the action.
    • In the Connect to account SAP® ERP field, select an existing account (if any) from the Select Account drop-down menu or click Add to add a SAP® ERP account.
  4. Click Next and select the RFC Invocation action.
  5. Search and select the RFC function to start.
    You can do a search with different combinations such as
    • In the Function pattern field, type the exact function name. For example, Z_RFC_ADD.
    • In the Group pattern field, type the exact group name to which the function belongs. For example, the Z000.
    • In the Function pattern field, type the function pattern. For example, Z_RFC*.
    • In the Group pattern field, type the group pattern to which the function belongs. For example, *.
  6. Click Apply. In the example, search for Z_RFC*.

What to do next

  1. Click Next.
  2. In the Request Field Selection screen, select the input fields to add. In the example, select IP_VALUE1 and IP_VALUE2 input fields.
  3. Click Next.
  4. Verify the details
  5. Click Add and click Done. You are redirected to the Flow service's screen.
  6. Run the flow service.
  7. Click the mapping icon and add the values for the input parameters.
  8. Click the Run icon. The resulting value appears.