Book Image

SAP Intelligent RPA for Developers

By : Vishwas Madhuvarshi, Vijaya Kumar Ganugula
Book Image

SAP Intelligent RPA for Developers

By: Vishwas Madhuvarshi, Vijaya Kumar Ganugula

Overview of this book

SAP Intelligent Robotic Process Automation (RPA) enables businesses to automate repetitive work and integrate automation capabilities across SAP and non-SAP systems. This book provides end-to-end coverage of business process automation using SAP Intelligent RPA and shows how to build multiple SAP Intelligent RPA projects from start to finish. Some of these projects may build upon the work done in previous chapters to showcase the Agile development process in SAP Intelligent RPA. As you progress, you'll cover the SAP Intelligent RPA factory, Desktop Studio, Cloud Studio, and the Bot store. You'll also learn about the building blocks of the SAP Intelligent RPA solution and creating bots from initial application declaration to workflow design and deployment, along with making bots run in attended and unattended modes. You'll also learn about SAP Process Automation, the new SAP service that is going to replace the SAP Intelligent RPA service soon. Finally, we will discuss the migration path for your SAP Intelligent RPA projects to SAP Process Automation and showcase that the RPA development remains similar in both services. By the end of this RPA book, you’ll be able to create and manage complex bots that are capable of interacting with SAP and non-SAP systems.
Table of Contents (39 chapters)
Free Chapter
2
Part 1: Introduction to SAP Intelligent Robotic Process Automation
9
Part 2: Installing and Setting Up SAP Intelligent RPA
12
Part 3: Developing Bots with Desktop Studio
21
Part 4: Generating and Updating the JavaScript Code
26
Part 5: Building and Running Projects
30
Part 6: Orchestrating Workflows with Cloud Studio
34
Part 7: SAP Intelligent RPA Store, Roadmap, and SAP BTP Automation Services

Reading environment variables

The Desktop SDK includes two classes, ctx.settings to read the text variables and ctx.cryptography.credentials to read the credential variables. Reading the environment variables is a two-step process. In the first step, we need to declare the variable with the same name as the name used to create the variable, and the second step is to call the get method to read the data from Cloud Factory.

Let's first learn about reading the text variable using SiteURL as an example. Desktop Studio provides a couple of options for inserting the code to declare the variable. You can either use the Insert | Setting | Declare Setting option from the context menu or type setdec and then press the Tab key.

The following is a code example for declaring the variable:

Figure 20.4 – Declaring the text variable in source code

The name used to create the variable is SiteURL and so the same name is used to declare the variable in...