Tuesday, 06 April 2021 07:55

How to use a REST API to post data into SAP S/4HANA Cloud using SAP Intelligent RPA 2.0

Written by Prasanth Padmanabhan Menon
Rate this item
(0 votes)
Source https://blogs.sap.com/2021/04/07/how-to-use-a-rest-api-to-post-data-into-sap-s-4hana-cloud-using-sap-rpa-2.0/
“© 2020. SAP SE or an SAP affiliate company. All rights reserved.” “Used with permission of SAP SE”

In this blog, I will take you through the steps for creating a bot via SAP Intelligent RPA 2.0, through which you can post data into SAP S/4HANA Cloud via REST APIs.

SAP Intelligent RPA 2.0 uses a new Low-code/No-code approach for bot creation and this significantly reduces the load on developers.


With the desktop studio application, developers are free to create custom SAP Intelligent RPA bots which simplifies days to day tasks by reducing human intervention. With SAP Intelligent RPA 2.0 and its Low-Code approach, I will show you how to leverage the SAP Intelligent RPA Cloud Studio to create the API call.

I will be using the supplier invoice creation API which can be accessed via activating the Communication Arrangement SAP_COM_0057 in the SAP S/4HANA Cloud system. You can refer the blog Setting up Communication Management in SAP S/4HANA Cloud for steps to activate a communication arrangement.

Create Automation

The first step would be to login to the SAP Intelligent RPA Cloud factory, go to the projects tab and create a new project.

Enter the bot name and click on create.

This will create a new project and will open the project in a new window.

Under the contents, tab, Click on Create and then select Automation

Provide the necessary details and click on create

This will create a new automation with an empty workflow as shown

Let us create two input variables for providing username and password of type String. This can be done by going to the I/O tab and adding two input parameters as shown

The next step will be to encode the username and password. The encoded string can be used to make the REST API calls.

Search for Encode String under the tools tab to get the Encode String activity.

Drag and drop this activity to the RPA workflow as shown below

You will now see that the activity has a red highlight. This is because it expects an input to be encoded.

Click on the activity Encode String. This will open the input fields for the activity. Select the highlighted button next to the input

Continue reading here
Read 69 times

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.