Inspiration

Introducing the Plug & Play BOT, a ready-to-use UiPath workflow that can be integrated easily with any project across different customers that too without any modification.

Need of reusable components across multiple projects/customers inspired me to create the Plug 'N' Play BOT for SAP Login & Logout using UiPath which can be run across all SAP systems having SAP Logon 740 Release.

What it does?

It performs following actions - Login, Screen Navigation & Logout on SAP. These are the most basic functionality we need to automate every time we work on SAP application.

BOT sends out email notification to the recipients updated in config file for the below 2 exception scenarios:

  1. Failed to launch SAP - path of the "SAP Logon.exe" may differ from system to system. Hence, user need to verify/update the path in config file.
  2. SAP Password Expired - in this case, user need to update the password stored in Orchestrator or Windows Credential Manager.

Also, it works across different SAP environments (Test/Prod… etc) just by updating the environment in settings tabs of Config.xlsx.

How I built it?

Created it using the concept of Robotic Enterprise Framework (REFramework). It can be run standalone or can be integrated with any project.

Login id & password is retrieved from Orchestrator by default. If Orchestrator is not available, then the BOT will prompt user to enter username & password (secured string format) and store it in Windows Credential Manager. (FYI – It is a one-time activity. BOT will read username & password from windows vault from the next run.)

Configured the BOT to read the following details from "Config.xlsx" file to make it re-usable:

  1. SAP Logon Exe Path - stores the path of "SAP Logon.exe"
  2. SAP Environment Name or SID - stores the full name of SAP environment (e.g. ABC Test System [ABC])
  3. SAP Environment Type (Test/Production) - stores the type of environment (e.g. Test, Production..etc.)
  4. To recipients email address - stores recipient email address to be marked in 'To' section for success/exception scenario
  5. Cc recipients email address - stores recipient email address to be marked in 'Cc' section for success/exception scenario
  6. SAP Test Login - stores Asset/Credential name of the test environment
  7. SAP Prod Login - stores Asset/Credential name of the production environment

Successfully tested the execution for different customers. It works very well without any change in code.

What's Next?

Publish it under the centralized umbrella called as BOT Factory or Market Place which can be easily downloaded by the RPA professionals having access to it.

How to use SAP Login reusable Plug & Play workflow?

Filename: SAP Login.xaml

(A) Pre-requisite:

  1. Download the complete project repository

(B) Update Config.xlsx:

  1. Validate the path of SAP system stored in “Data\Config.xlsx”
  2. To switch the SAP environment between Test and Production, update the SAP Environment Name or SID and SAP Environment Type stored in settings tab of “Data\Config.xlsx”
  3. If using Orchestrator, then create below 2 assets to store the credentials: (optional step)
    3.1. SAPLogin_Test - to store the username & password of Test/QAT environment
    3.2. SAPLogin_Prod - to store the username & password of Production environment

(C) Invoke: Integration with existing project

  1. Use Invoke Workflow activity in your project sequence/workflow
  2. Click import arguments
    2.1. Optional: Pass Config (Data Dictionary) variable to the input argument in_Config, if you are using ReFramework

(D) Run: Standalone execution

  1. To Run standalone: Open “SAP Login.xaml” -> hit run

How to use SAP Logout Plug & Play workflow?

Filename: SAP Logout.xaml

(A) Pre-requisite:

  1. Download the complete project repository
  2. Login to SAP system (manual/automated)

(B) Invoke: Integration with existing project

  1. Use Invoke Workflow activity in your project sequence/workflow

(C) Run: Standalone execution

  1. To Run standalone: Open “SAP Logout.xaml” -> hit run

Project repository details:

  1. /Data/Config.xlsx
  2. /Framework/CloseAllApplications.xaml
  3. /Framework/GetAppCredentials.xaml
  4. /Framework/InitAllApplications.xaml
  5. /Framework/InitAllSettings.xaml
  6. /Framework/KillAllProcesses.xaml
  7. /Framework/TakeScreenshot.xaml
  8. Main.xaml
  9. SAP Login.xaml
  10. SAP Logout.xaml
  11. SAP Goto Main Screen.xaml
  12. Send Email.xaml
  13. project.json

Built With

  • uipath
  • rpa
  • roboticenterpriseframework
  • reframework
  • sapautomation
  • roboticprocessautomation
Share this project:
×

Updates