How to Consume ABAP Function in SAP through UiPath?

Hello everyone,

I am working on a project where I need to consume an ABAP function from SAP using UiPath. I have some experience with UiPath automation but am relatively new to integrating it with SAP.

Could someone guide me on the best approach to achieve this? Specifically, I am looking for:

  1. The steps involved in setting up the connection between UiPath and SAP to call an ABAP function.

Hie @Neha_Pal Hope this steps Help You

Steps to Connect UiPath with SAP

1. Install UiPath SAP Activities Package

  • Open UiPath Studio.
  • Go to the Manage Packages section (usually found in the “Activities” panel or via the “Package Manager”).
  • Search for UiPath.SAP.BAPI.Activities and install it. This package includes activities for interacting with SAP.

2. Configure SAP Connection in UiPath

  • SAP Application Scope: Use the SAP Application Scope activity to establish a connection to the SAP system.
    • Drag the SAP Application Scope activity into your workflow.
    • Configure the properties:
      • Server: The SAP server address.
      • Client: The SAP client number.
      • User: Your SAP user ID.
      • Password: Your SAP password.
      • Language: The SAP language (e.g., EN for English).
  • Ensure that the SAP Application Scope activity is properly configured to match your SAP system’s connection details.

3. Call the ABAP Function Module

  • Within the SAP Application Scope, use the Invoke SAP BAPI activity to call the ABAP function module.
    • Drag the Invoke SAP BAPI activity into the workflow, inside the SAP Application Scope.
    • Configure the properties:
      • BAPI Name: The name of the ABAP function module you want to call.
      • Parameters: Define input parameters and their values as per the ABAP function module requirements.
      • Output: Specify where to store the output of the function

Cheers Happy Automation :smile:

1 Like

Hi @singh_sumit , i am trying to install package that you suggested but it is throwing error"No compatible version with windows project"…any solution for this?

Hie @Neha_Pal change the project dependencies(windows) with (windows-Legacy ) and downgrade the other dependencies to install the SAP dependency…

cheers Happy Automation

Hi @singh_sumit , how i can change my existing project dependencies(windows) to Windows-legecy? i have tried to take another process and select window-legecy but the option was no available in compatible field…please suggest a solution for this…
image

Hie @Neha_Pal if you are doing this on community version or for learning purpose than i suggest you to download the older version because in the latest version the window-legacy is removed as per my understanding… and if you are doing real time project for the organisation then check with the admin permission …
If you head to the home page of the automation cloud https://cloud.uipath.com/ and open the drop down by clicking the help icon there will be a “Downloads” link. Then you can select “Other versions” under Enterprise, or Community, whichever you use.
cheers Happy Automation…