Creating and starting RFC Listeners notification

Integrate your integrations to receive calls from the SAP® ERP systems. This notification is useful when SAP® ERP needs to push data or start processes in webMethods Integration.

About this task

This example explains how to use the SAP® ERP RFC listener notification. Assume that you have a project Test_SAP_ERP and you want to create a SAP® ERP listener.

Procedure

  1. Click New listener, select SAP® ERP for Type of listener and SAP® ERP_v1.0 for Select version from the drop-down menu.
    The Add listener configuration screen appears.
  2. Provide the following details:
    • In the Listener name field, specify a unique name for the listener.
    • In the Program Id field, provide the program ID for the listener.
    • In the Retry limit field, specify the number of times the listener tries to connect to the server.
    • In the Retry backoff timeout field, specify the delay between each subsequent connection try.
  3. Click Next and select the Standard (Default) action.
  4. Click Next.
    The Connection mode screen appears.
  5. Provide the following details in the Connection mode:
    • In the Gateway host field, provide the host address.
    • In the Gateway service field, provide the service number.
    • In the Repository server field, provide the repository server.
  6. Click Next and provide the following details to either enable or disable the logging:
    • The RFC trace field enables the RFC trace.
    • The Log transaction status field stores the transaction status.
    • The Store message body field stores the message body.
  7. Click Next and verify the connection details.
  8. Click Save, and click Next.
  9. Click Add listener notification.
    The Add Listener Notifications screen is displayed.
  10. Provide the following details:
    • In the Name field, provide a unique name for the notification.
    • In the Description field, provide a description.
  11. Click Next and select the RFC Listener Notification (synchronous) action.
  12. Click Next. Search and select the RFC function to start.
    You can do a search with different combinations such as
    • Type the exact function name in the Function pattern field. For example, Z_RFC_ADD.
    • Type the exact group name to which the function belongs in the Group pattern field. For example, Z000.
    • Type the function pattern in the Function pattern field. For example, Z_RFC*.
    • Type the group pattern to which the function belongs in the Group pattern field. For example, *.
  13. Click Apply. In the example, select the Z_RFC_ADD function.
  14. Click Next.
    The Request Field Selection screen is displayed.
  15. In the Request Field Selection screen, select the input fields to add.
    In the example, select IP_VALUE1 and IP_VALUE2 as the input fields.
  16. Click Next and select the output fields to add.
    In the example, select the EP_RESULT output field.
  17. Click Next and select the service to be started from the drop-down menu.
  18. Click Next and verify the details.
  19. Click Done.
    You see the configured notification.
  20. Start the Listener notification by using the SAP GUI.
  21. Provide the following details in the Test Function Module screen:
    • In the RFC target field, provide the target system ID. The ID is the same as Program Id in Listeners.
    • In the Import parameters field, provide the input values.
    • Click the Time icon to run.