Execute RFC in the Source-to-Pay with SAP integration

  • Release version: Xanadu
  • Updated July 23, 2025
  • 1 minute to read
  • Execute RFC from the available list.

    Process flow:

    Step 1 - Create a record for SAP system in Connection and Credential alias table.

    Step 2 - Create Credential for connecting to SAP system.

    Step 3 - Add Mid server and credentials to the connection.

    Step 4 - Create ERP Source is ERP source configuration table.

    Step 5 - Create Service, add flow and give the necessary inputs in the fields.

    Figure 0-1: Flow chart illustrating RFC Execution.

    Name: ZSN_BAPI_GET_DATA

    Table 1. Query parameters to execute RFC
    Title Type Description
    Input
    1 Connection Alias - Connection Alias for SAP ECC – RFC
    2 RFC The Reference to records (SAP RFC Name and Application Component) in SAP RFC Table
    3 Input Input fields for the selected RFC, represented in a flat structure
    Output
    1 Response

    The response for the execution of selected RFC in SAP

    2 Action Status If the request is executed successfully, Status is set to “Success”. If there is a failure in SAP ECC - RFC, Status is set to “Error"
    3 Error Message Reason for error. Populated only when an error occurs. Error returned from SAP in the RETURN parameter.

    No or empty response received from SAP

    • Error! Reference source not found.
      Figure 1. Function Builder Initial Screen
      Function Builder Initial Screen
    • Error! Reference source not found.Error! Reference source not found.
      Figure 2. Enter the IMPORT, CHANGING, and TABLES parameters
      IMPORT, CHANGING, and TABLES parameters
    • Figure 3. Results data
      Results data
    • Error! Reference source not found
      Figure 4. Results data
      Results data
      Figure 5. Results data
      Results Data