Creating custom actions by using SAP ERP connector in Deploy Anywhere Flow Service

SAP® ERP actions run a function module that is on an SAP system. A function module runs the function in the SAP system with the data that is provided in the action. Explore the following fields to create a new action.

Procedure

  1. From the navigation pane, go to Projects and select a project.
  2. Click Integrations > Flow services>Deploy Anywhere Flow Service.
    The Flow Editor page appears. Provide a name for the deploy anywhere flow service and save.
  3. On the flow step, select SAP ERP connector and select Add Custom Action.
    The Custom Action wizard is displayed.
  4. On the Account page, provide the action name and description. Next, select the default runtime to specify where the service runs such as cloud designtime or self-managed runtime and Connect to account SAP® ERP details.
    For the Connect to account SAP® ERP, select the account name by which the SAP system is known to SAP® ERP developers, clients, and partners.
  5. On the Actions page, select the template for the action RFC Invocation. RFC Invocation invokes an RFC on the SAP® ERP system.
  6. On the Function page, choose the function or pattern, then click Apply.
    • Function pattern - Type all or part of the name of the function module for which you want to create a SAP® ERP action. Use pattern-matching characters when you are unsure of the complete name and want SAP® ERP to search for several RFCs with similar names. For example, enter RFC_FUNCTION_* in the field.
    • Group pattern - Type all or part of the name of the group for which you want to create a SAP® ERP action. Use pattern-matching characters when you are unsure of the complete name and want SAP® ERP to search for several RFCs with similar names.
  7. On the Request Field Selection page, select the name and Java™ data type of the input parameter.
  8. On the Reply Field Selection page, select the name and Java™ data type of the output parameter.
  9. On the Overview page, review the account summary along with the input and output signatures. Click Add and Done to return to the flow service page.

    The custom action is successfully added.

Running SAP ERP custom actions in Deploy Anywhere Flow Service

Procedure

  1. On the Flow editor page, provide a name for the deploy anywhere flow service and save.
  2. On the flow step, select SAP ERP connector and select the service from the drop-down list and the associated account.
  3. Define any pipeline mappings by setting the input and output fields and save the deploy anywhere flow service.
  4. Next, associate the service with the runtime by selecting the self-managed runtime from the runtime drop-down list. Then click the Sync icon at the top of the Flow editor page to synchronize the service. This action ensures that your service gets linked to the self-managed runtime.
    Note: This step is applicable only when you select the default runtime as self-managed runtime.
  5. Run the deploy anywhere flow service.
    A success message appears if there are no errors. Otherwise, the error appears. You can verify your logic and run the deploy anywhere flow service.