Course

SAP Intelligent RPA and SAP Build Process Automation

An expert-level course on robotic process automation with SAP. It covers the classic SAP Intelligent RPA tools (Desktop Studio, Cloud Factory, Desktop Agent), which many companies still run, and their successor today, SAP Build Process Automation, where all new bots are built. Live examples, labs and a quiz in every module.

12 modules~20 h totalLevel Beginner → ExpertScenario Supplier invoices from e-mail to S/4HANA
Training documents

Course material

Every module below is a full lesson you can read here. Lab handbooks and slide decks for download are listed here as they are published.

Downloadable PDF lab handbooks are being prepared and will appear in this list.

Module 01

RPA fundamentals and choosing the right process

75 min · Concepts

Robotic process automation (RPA) uses software robots, called bots, to do work that people do on a computer: open applications, read screens, copy values, click buttons, send e-mails. Bots work through the same user interfaces people use, and increasingly through APIs as well.

RPA exists because enterprise processes still contain many manual bridges: data copied from an e-mail attachment into S/4HANA, reports downloaded from three systems and merged in Excel, the same customer data typed into a CRM and an ERP. These tasks are slow, error-prone and boring, and they often appear in thousands per day.

Attended and unattended

Attended (digital assistant)Unattended (digital worker)
Started byA user, from the agent menu or another appA schedule, an API call or a process
Runs onThe user's own desktop, next to themA dedicated machine or virtual machine
Typical useHelping a call center agent look up data in five systemsProcessing all supplier e-mails every 15 minutes
Human roleWorks together with the botHandles only exceptions

RPA, BPM and BPA

Business process management (BPM) designs and improves whole end-to-end processes. Business process automation (BPA) is any use of technology to automate them: workflows, integration, APIs, RPA. RPA is one tool within BPA, best for well-defined, repetitive steps that span user interfaces. They work together: the process defines who does what, and RPA takes over the tedious steps.

Choosing a process to automate

Most failed RPA projects automated the wrong process. Score candidates before building:

CriterionGood signWarning sign
VolumeHundreds of cases per weekA few cases per month
RulesClear, written rules"It depends, I just know"
StabilityScreens and process rarely changeApplication upgrade planned next quarter
InputStructured or semi-structured dataHandwritten, highly variable documents
SystemsSpans several systems with no integrationOne system that already has an API you could use
ValueErrors are costly or 24/7 operation helpsLittle time saved
Expert view · RPA is sometimes called a "band-aid". That is fine when the band-aid pays back in months and the real fix (a new integration or process redesign) is years away. Just do not automate a broken process without asking whether it should exist.
BotA software robot that performs tasks on a computer.
Attended automationRuns with and for a user on their desktop.
Unattended automationRuns on its own, triggered by schedule, API or process.
Intelligent automationRPA combined with AI, document extraction, decisions and workflows.

Lab 1 · Score three processes

  1. Pick three manual tasks from a finance, procurement or HR team you know.
  2. Score each from 1 to 5 on the six criteria above.
  3. Estimate hours saved per month for the best one: cases per month × minutes per case ÷ 60.
Module 02

From SAP Intelligent RPA to SAP Build Process Automation

75 min · Architecture

SAP introduced SAP Intelligent RPA around 2019 with three tools. Since then, SAP has merged RPA with workflow into SAP Build Process Automation, part of SAP Build. New automations are built there, in the browser. Many companies still run bots built with the classic tools, so an expert needs to know both.

Classic SAP Intelligent RPA

ToolWhere it ranJob
Desktop StudioDeveloper's Windows PCThe IDE: capture applications, design workflows, generated JavaScript, debugging, export packages
Cloud FactorySAP BTP, in the browserCentral orchestration: environments, agent hierarchies, packages, triggers, monitoring
Desktop AgentUser PCs or virtual machinesExecutes jobs, connects to the Cloud Factory

The same concepts in SAP Build Process Automation

Classic IRPASAP Build Process Automation
Desktop Studio projects and workflowsProjects in the browser-based designer, with automations built visually
Explorer perspective (pages, items, criteria)Application capture (screens, elements, criteria)
Context (data structure per workflow)Variables and data types
Cloud Factory environments and hierarchiesControl Tower: environments, agents and agent groups, variables
Packages and deploymentsReleased and deployed project versions
Attended, scheduled and API triggersThe same trigger types, plus starting automations from processes
Cloud Factory monitoringMonitor: process and automation instances, logs
Desktop Agent 2Desktop Agent 3

On top of RPA, SAP Build Process Automation adds processes (workflows with approvals), forms, decisions (business rules), actions (calls to APIs), document extraction and AI assistance. That makes "intelligent automation" one product instead of several.

SAP BTP (cloud) Designercapture · design · test Control Towerenvs · agents · triggers Monitorjobs · logs Your network Desktop Agentruns as the user SAP GUI · Fiori Excel · Outlook · files Web apps · Windows apps secure outboundconnection

The agent always opens the connection to the cloud, never the other way round, so no inbound firewall ports are needed. Traffic is encrypted.

Lab 2 · Map an existing bot

  1. Take a classic IRPA bot you know, or the invoice scenario of this course.
  2. Write down its pages, workflows, context, triggers and environment.
  3. Map each item to its SAP Build Process Automation equivalent using the table above.
Module 03

Setup, roles and the Desktop Agent

90 min · Hands-on

Tenant setup

  1. Subscribe to SAP Build Process Automation in a BTP subaccount (a free tier or trial works for learning).
  2. Assign role collections: ProcessAutomationAdmin for administrators, ProcessAutomationDeveloper for bot builders, and ProcessAutomationParticipant for business users who take part in processes. Check the current list in your subaccount.
  3. Open the SAP Build lobby and create your first project.

Installing Desktop Agent 3

  1. Download the agent from SAP's tools page and install it on Windows. It does not need administrator rights to run, but installation policies in your company may.
  2. Install the browser extension for Chrome or Edge, so the agent can automate web pages.
  3. Register the agent: enter your tenant URL and sign in. The agent then appears in the Control Tower.
  4. For unattended use, register it on a dedicated machine with a technical Windows user and keep the session available (a locked or disconnected session can stop UI automation).

Preparing SAP GUI

To automate SAP GUI for Windows, SAP GUI scripting must be enabled on the server (profile parameter sapgui/user_scripting) and in the client options. Ask your Basis team first: many companies restrict scripting to specific users.

Classic IRPA · The Desktop Studio and Desktop Agent were installed together with an SDK on the developer PC, and agents were registered to the Cloud Factory tenant through a hierarchy (machine or login). The idea is the same: no agent runs anything until it is registered and trusted.

Lab 3 · A working agent

  1. Subscribe to SAP Build Process Automation and assign yourself the developer role.
  2. Install Desktop Agent 3 and the browser extension, register the agent, and confirm it shows as connected.
  3. Create an empty project named SAPTechie Invoice Bot.
Module 04

Application capture: teaching the bot to see

2 h · Hands-on

Before a bot can work with an application, you capture it: you record the application's screens and declare the elements the bot will use, such as fields, buttons and tables. At runtime, the bot finds each element again using recognition criteria.

The capture hierarchy

LevelMeaningExample
ApplicationOne program and its technologySupplier portal (web), S/4HANA (SAP GUI)
Screen (classic: page)One window or page state"Enter incoming invoice" in MIRO
Element (classic: item)A control the bot reads or usesInvoice date field, Post button
CriteriaProperties that identify the screen or elementElement ID, name, label, title, URL

Technologies

  • Web: browser pages through the extension; criteria use DOM properties such as id, name and label.
  • Windows / UI Automation: desktop applications.
  • SAP GUI: via SAP GUI scripting, with stable technical IDs for most controls.
  • Office and files: Excel, Word, Outlook and PDF are usually handled through ready-made activities, not by capturing the screen.

Making recognition robust

Bots break when the bot cannot find an element any more. Good criteria are the single biggest factor in bot stability:

  • Prefer stable technical properties (ID, name) over position or visible text that changes with language.
  • Use just enough criteria to be unique. Too many make the element fragile; too few cause the wrong element to match.
  • Avoid criteria with dynamic values such as session IDs or dates; use "contains" or "starts with" when needed.
  • Recapture screens after application upgrades and retest.
  • Whenever an API exists for the same action, use it instead of the UI (module 9).
Classic IRPA · In the Desktop Studio's Explorer perspective you captured pages and items and set criteria; the tree showed red until each item was uniquely identified. Settings such as limiting the capture depth improved recognition speed on complex pages.

Lab 4 · Capture two applications

  1. Capture a web page with a search form, for example a demo shop, and declare the search field, button and first result.
  2. Capture an SAP GUI screen such as the business partner display, and declare three fields.
  3. For each element, test recognition and remove any criterion that contains a changing value.
Module 05

Automation design

3 h · Hands-on

An automation is the sequence of steps the bot performs. In SAP Build Process Automation you build it visually from a palette of activities; in classic IRPA you built workflows in the Workflow perspective, which generated JavaScript you could edit.

Building blocks

BlockUse
Screen activitiesStart an application, wait for a screen, set or get an element value, click, select, read a table
Variables and data typesHold values between steps; a data type such as Invoice groups fields (supplier, number, date, amount, items)
Inputs and outputsValues the automation receives from a trigger or process, and returns
ControlsConditions, loops over lists, waits
Office and file activitiesOpen Excel and read ranges, read Outlook mails and save attachments, read and write files
Sub-automationsReusable pieces, such as "log on to S/4HANA"
Custom scriptJavaScript for logic the activities do not cover
Error handlingTry / catch blocks, throw a business error, end with a clear status

Get and Set: the heart of UI automation

Most screen work is Get (read a value from an element into a variable, like copy) and Set (write a variable into an element, like paste), plus clicks. Always wait for the screen before acting: the bot is faster than the application.

Design rules experts follow

  • One automation, one job. Build small sub-automations and combine them.
  • Log on once per run and log off at the end, even after errors.
  • Separate data from logic. URLs, folders and thresholds come from environment variables, not constants in steps.
  • Business errors are not technical errors. "Supplier not found" is a business exception for a human to decide on; "screen did not load" is technical and can be retried.
  • Make it restartable. If a run stops halfway, the next run must not create duplicates. Check before you create.
// Custom script step: normalize an amount like "1.234,50 EUR" to 1234.50
var raw = $.input.amountText || "";
var cleaned = raw.replace(/[^0-9,.-]/g, "");
if (cleaned.lastIndexOf(",") > cleaned.lastIndexOf(".")) {
  cleaned = cleaned.replace(/\./g, "").replace(",", ".");   // European format
} else {
  cleaned = cleaned.replace(/,/g, "");                      // English format
}
return parseFloat(cleaned);

The exact way a script step receives inputs and returns values depends on the product version; check the script activity's documentation in your tenant.

Lab 5 · Your first automation

  1. Create data type Invoice with supplier, number, date, amount and currency.
  2. Build an automation that opens an Excel file, loops over its rows, and fills an Invoice list.
  3. For each invoice, search the supplier in your captured web or SAP GUI application and write "found" or "not found" back into Excel.
Module 06

Testing and debugging

75 min · Hands-on

Bots fail in ways people do not: a pop-up appears, a page loads half a second late, a value has an extra space. Testing finds these before production does.

Testing an automation

  • Test mode runs the automation on your local agent from the designer, with test input values.
  • Breakpoints pause before a step so you can inspect variables.
  • Step by step execution shows exactly where recognition or logic fails.
  • Logs and screenshots of the failing screen show what the bot actually saw.

A test plan for every bot

CaseExample
Happy pathA normal invoice is posted
Business exceptionsUnknown supplier, duplicate invoice, amount over limit
Data edge casesEmpty fields, special characters, very long texts, other date formats
Technical failuresApplication slow or closed, network drop, wrong password
Volume100 invoices in one run, to check memory and timing
RestartStop the run midway and start again: no duplicates
Classic IRPA · The Desktop Studio had a Debug perspective with a JavaScript debugger, an active console, and record-and-replay for testing on remote agents. Projects were then exported as a versioned ZIP package for the Cloud Factory.

Lab 6 · Break it on purpose

  1. Run your Lab 5 automation step by step with a breakpoint inside the loop.
  2. Add a row with an empty supplier and one with a supplier containing an accent, and make both work.
  3. Close the application mid-run and add handling so the bot reports a clear technical error.
Module 07

Release, deploy, environments and triggers

2 h · Hands-on

Environments, agents and variables

An environment is a landscape the bot runs in: development, test, production, or one per business area. Each environment has its own agents (often grouped into agent groups) and its own variables, so the same bot uses test credentials in test and production credentials in production.

Variable typeHolds
Text (and other simple types)URLs, folder paths, thresholds, e-mail addresses
CredentialUser and password pairs, managed centrally and never stored in the project
Agent assignment (classic: hierarchy variable)Which machines or users may run the bot in this environment

From design to running bot

  1. Release a version of the project; it becomes read-only and gets a version number.
  2. Deploy the released version to an environment.
  3. Add triggers that decide when it runs.

Trigger types

TriggerStarts the botExample
ScheduledAt set times or intervals (unattended)Every 15 minutes between 06:00 and 22:00 on weekdays
APIWhen an external system calls a REST endpointA CRM starts the bot when a new customer is created
AttendedWhen a user picks it from the agent menuA call center agent runs "Update customer address"
From a processAs a step inside a workflowAfter an approval, the bot posts the document

API triggers are called with OAuth and an API key from the Control Tower, and can pass input values to the bot. In classic IRPA, notifiers sent results back to a callback URL or to a chatbot conversation; today the calling system usually reads the run status through the API, or a process continues with the bot's outputs.

Classic IRPA · The Cloud Factory used machine and login hierarchies uploaded as CSV, environments linked to them with variables, packages imported from the Desktop Studio export, deployments, and triggers on each deployment. Hierarchy nodes could also be reserved for unattended runs at certain times.

Lab 7 · Go live in test

  1. Create environments TEST and PROD, each with a URL variable and a credential variable.
  2. Release and deploy your bot to TEST and assign your agent.
  3. Add a scheduled trigger every 30 minutes and an API trigger, and start the bot once through the API from Postman.
Module 08

Running, monitoring and securing bots

90 min · Operations

How a run works

  1. The agent starts, connects to the tenant and receives the automations it is allowed to run.
  2. It downloads or updates the project files in a local cache.
  3. A trigger fires; the run is assigned to an available agent in the environment.
  4. The agent executes the steps, controlling applications through its connectors (web, Windows, SAP GUI, Office).
  5. Status, logs and outputs are sent back to the cloud.

Monitoring

In the Monitor, filter runs by automation, status, environment, agent and time; open a run to see its steps, logs and error. Watch the agents too: status (idle, busy, disconnected), version and last contact. Set up alerts so a failed or stuck bot is noticed within minutes, not days.

Security essentials

  • The agent runs with the Windows user's rights. Give bot users only the access the automation needs, nothing more.
  • Credentials live in credential variables, never in project files, Excel sheets or scripts.
  • Project files are not secret. Do not put personal or confidential data in them.
  • Inputs and outputs are encrypted in transfer and storage, but still check data protection rules before sending personal data to the cloud.
  • Working folders on the agent machine hold data and logs; protect them like any business data and clean them up.
  • Every bot user is a named, audited account, so every change a bot makes in S/4HANA can be traced.

Lab 8 · Operate it

  1. Run your bot 10 times through the schedule; find the slowest run and explain why.
  2. Force one failure and find its cause from the monitor's log alone.
  3. Write a one-page runbook: who checks what, daily and weekly, and what to do when the agent is disconnected.
Module 09

Intelligent automation: APIs, documents, decisions and AI

2 h · Advanced

Classic RPA copies what a person does on screen. Intelligent automation adds what a person thinks: reading documents, applying rules, asking for approval, and choosing the most robust way to act.

APIs before screens

UI automation breaks when screens change; APIs rarely do, and they are faster. In SAP Build Process Automation, actions call APIs (for example S/4HANA OData from the Business Accelerator Hub, through a BTP destination). Expert rule: read and write through APIs where they exist, use the UI only where they do not.

Document extraction

Invoices, orders and delivery notes often arrive as PDFs. Document extraction uses machine learning to find header fields (supplier, number, date, total) and line items without you defining coordinates. Low-confidence results go to a person for checking.

Decisions

Decisions hold business rules in tables that business users can maintain: for example, which approver is responsible for which cost center and amount. Rules change without changing the bot.

Processes, forms and approvals

A process connects bots and people: a form to collect input, an approval step, a bot step, a notification. Bots handle the repetitive part and people the judgment.

Generative AI and conversational triggers

Generative AI features help build automations from a description and classify or summarize unstructured text such as e-mails. Bots can also be started from chat, for example a Joule or chatbot request that calls an API trigger, with the result returned to the conversation, the same idea as classic IRPA's chatbot notifier.

Brain, hands, voice · A useful picture: AI and decisions are the brain, APIs and UI automation the hands, conversational interfaces the voice. A good design uses each for what it does best.

Lab 9 · Make it intelligent

  1. Replace one UI step in your bot with an API action, such as reading the supplier from the S/4HANA business partner API.
  2. Add document extraction for one sample PDF invoice.
  3. Add a decision table: amounts over 10,000 need the finance manager's approval.
Module 10

Live example 1: supplier invoices from e-mail to S/4HANA

4 h · Capstone (unattended)

Situation: the accounts payable team receives 400 supplier invoices a week as PDF attachments in a shared mailbox. Each takes about six minutes to enter in S/4HANA, and typing errors cause payment problems.

MailboxPDF invoices Bot: collectevery 15 min Extractionfields + items Validatesupplier · PO >10k? Approval Bot: postAPI or MIRO Notify

Build it step by step

  1. Environment variables: mailbox name, processed and error folder names, approval limit (10,000), S/4HANA URL; a credential variable for the technical S/4HANA user.
  2. Sub-automation "Collect": read unread mails in the invoice folder, save PDF attachments to a working folder, move each mail to "Processed", build a list of files.
  3. Extraction: send each PDF to document extraction; map the result to the Invoice data type. Results below the confidence threshold go to a review form.
  4. Validation through APIs, not screens: supplier exists (business partner API), purchase order exists and is open, and no invoice with the same supplier and number exists, to prevent duplicates on reruns.
  5. Decision: amount over the limit, or a price difference over 5% of the PO, means approval is required.
  6. Process: an approval form shows the extracted data and the PDF; the approver approves or rejects with a comment.
  7. Posting: post the supplier invoice through the S/4HANA API. If your release has no suitable API, use a captured MIRO screen sequence in SAP GUI, with a check that the document number appeared.
  8. Notify: e-mail the AP team a daily summary: posted, waiting for approval, rejected, failed, with reasons.
  9. Error handling: business errors (unknown supplier, duplicate) go to a person with the PDF attached; technical errors retry up to three times, then alert support.
  10. Deploy: release, deploy to TEST, run the full test plan from module 6, then deploy to PROD with a scheduled trigger every 15 minutes on working days.

Measure the result

400 invoices × 6 minutes = 40 hours a week before. If the bot posts 85% straight through and people spend 2 minutes on each of the other 60, manual effort drops to 2 hours a week, with fewer errors and faster payment.

Lab 10 · Build the invoice bot

  1. Build the process with at least steps 1, 2, 3, 4 and 8 using sample PDFs and a test mailbox.
  2. Add the approval for amounts over the limit.
  3. Run 20 test invoices, including two duplicates and one unknown supplier, and check the daily summary.
Module 11

Live example 2: an attended bot for customer service

2 h · Capstone (attended)

Situation: a customer calls to change their address. Today the service agent updates the CRM, then S/4HANA, then a separate eligibility portal: three systems, five minutes, often with typos. An attended bot does it while the customer is still on the line.

Build it step by step

  1. Capture the three applications: CRM customer screen (web), S/4HANA business partner (SAP GUI or Fiori), eligibility portal (web).
  2. Input form: when the agent starts the bot, a small form asks for customer number and the new address. In classic IRPA this was a custom UI built in the UI designer perspective.
  3. Get the current data from the CRM and show it in the form for confirmation, so the agent and customer can check it together.
  4. Set the new address in the CRM and save; read back the saved value to confirm.
  5. Update S/4HANA, preferably through the business partner API and only through SAP GUI if no API is available.
  6. Set the address in the eligibility portal and copy the eligibility result back to the CRM note.
  7. Show a result to the agent: "Address updated in 3 systems. Eligibility: unchanged."
  8. Deploy with an attended trigger to the service agents' agent group, so it appears in their agent menu.

Attended design tips

  • Keep the user informed: short status messages while the bot works.
  • Never leave the user's applications in a half-changed state; on error, say exactly which systems were updated.
  • Run the bot in the user's session but do not steal focus longer than needed; the agent is talking to a customer.
  • Measure: average handling time before and after, and first-call resolution.

Lab 11 · Help the agent

  1. Build the address-change bot with two applications of your choice and an input form.
  2. Deploy it with an attended trigger and run it from the agent menu.
  3. Time it against doing the same change by hand, five times each.
Module 12

Center of Excellence, governance and maintenance

90 min · Strategy

Ten bots can be managed informally; a hundred cannot. An automation Center of Excellence (CoE) keeps quality high and benefits measurable.

What the CoE owns

  • Pipeline: one intake for automation ideas, scored with the criteria from module 1, with business owners named.
  • Standards: naming (AP_InvoicePosting_Unattended), project structure, reusable sub-automations (log on, read mailbox, post via API), logging and error-handling patterns.
  • Security: technical users per bot with least privilege, credential variables, data protection checks.
  • Lifecycle: dev, test and prod environments, release and test rules, change requests when target applications change.
  • Operations: monitoring, alerting, runbooks and on-call for business-critical bots.
  • Value tracking: hours saved, errors avoided, processing time, compared monthly with the business case.

Keeping bots alive

Most bot failures come from changes around the bot: an SAP support package, a new browser version, a redesigned supplier portal. Ask application owners to announce changes, keep a regression test per bot, and replace UI steps with APIs whenever one becomes available. A bot that keeps breaking is a candidate for a real integration instead.

Migrating classic IRPA bots

For bots still on the classic tools: inventory them, retire the ones without value, and rebuild the important ones in SAP Build Process Automation. Rebuilding is a chance to replace screen steps with APIs and add document extraction and approvals. Check SAP's current notes on supporting and migrating Desktop Studio packages for your release.

Lab 12 · Set up your CoE

  1. Write naming and error-handling standards on one page.
  2. Create an intake template with the scoring criteria and an ROI formula.
  3. Draft a migration plan for three classic bots: keep, rebuild or retire, with reasons.