SAP Build Process Automation explained: from APIs to everyday business processes
Introduction
When we talk about automation in SAP, approval workflows and bots are familiar starting points. But many everyday tasks involve a different combination of work: retrieving data through an API, transforming it, and producing a report or sending the result to another service.
SAP Build Process Automation brings these steps into a flow that we can model and run. For developers, the interesting part is how visual tools work alongside APIs and JavaScript. Which steps belong in the process model, and where does custom code help?
We will explore that distinction through three practical examples: generating and emailing reports, preparing travel cost allocations, and transforming data for intercompany allocations. First, let's look at the components used to build them.
What is SAP Build Process Automation?
SAP Build Process Automation is a service on SAP Business Technology Platform (SAP BTP) for building and running business processes using low-code/no-code tools. It combines workflow capabilities, business decisions, and robotic process automation in one offering. SAP Help: SAP Build Process Automation
The term business process automation describes the broader approach. SAP Build Process Automation is the product we use to implement it.
A process defines which steps run, in what order, and under which conditions. Some steps interact with people. Others call services or prepare data for the next operation. Each execution of a modeled process has its own process instance and data.
This distinction matters when discussing automation. A bot performing a repetitive task is one component. A process can coordinate several components and track the work across them. Not every process needs a bot, and not every process needs an approval.
The project creation wizard makes the distinction visible: Process focuses on a business workflow, while Automation focuses on repetitive tasks across applications. These are different starting points, not mutually exclusive approaches to solving a business problem.

The building blocks
Processes and forms
The process editor defines the flow: its trigger, activities, conditions, and end states. Forms collect input; approval forms record decisions. SAP Help: Create a Business Process
A process can start from a form submission, API trigger, event, or schedule. Choose the trigger that fits how the work begins.

A start form collects parameters such as a reporting period or output format. The process uses them in later steps. The example below shows a form in the editor, not one of the business processes described in this article.

Actions and API calls
Actions connect a process to external services. The process maps data to the request and uses the response in later steps. Actions can be created from an OpenAPI specification or imported from SAP’s content store. SAP Help: Add an Action to a Process .
The action still depends on the API integration: connectivity, authentication, and correct data mapping.
Script tasks and process context
API responses may need processing before the next step. JavaScript script tasks can filter records, map fields, or group items in the process context. SAP Help: About Script Tasks
Keep each script focused on a specific transformation. This makes the flow easier to follow and maintain.
Decisions and conditions
A condition routes the process to a branch, such as an Excel export or a backend call. A business decision evaluates rules and returns an outcome; SAP Build Process Automation supports decision tables for this purpose. SAP Help: Create a Decision
Use a condition for a simple branch. Keep changing business rules in a separate decision where they can be managed and tested.
The model below shows a condition with an If path and a Default path.

Desktop automations
Desktop automations use the SAP Desktop Agent to work with files or application interfaces. Unattended runs require the appropriate agent service and session configuration. SAP Help: Desktop Agent User Guide · SAP Help: Desktop Agent Service
These automations depend on the desktop environment remaining available. Where a suitable API exists, it avoids reliance on screen layouts and interactive sessions.
Practical examples
1. Generating and distributing bonus-hours reports
This automation generates Excel reports on bonus hours recorded since the start of the year. Employees receive individual reports, while coaches and managers receive consolidated reports for their teams. The person starting the automation selects which recipient groups should receive them.
The automation retrieves the employee list and year-to-date (YTD) bonus hours from SAP through API calls. Scripts process the responses and prepare the data for each recipient. Excel activities then open workbooks, populate cells, and save the files. Loops repeat these steps for the selected employees, coaches, and managers. Finally, a Microsoft Graph integration sends the reports as email attachments.
The technical flow is:
- Select recipient groups.
- Retrieve employee and bonus-hours data from SAP.
- Prepare recipient-specific datasets.
- Generate Excel workbooks.
- Email each file to its intended recipient.
The design combines service integration with desktop file operations. It does not depend on extracting every value from SAP screens, and it does not require replacing an existing Excel report format.
The important boundary is between preparing a dataset and producing its file. That separation makes it easier to identify whether an issue comes from source data, report generation, or delivery.
Recipient mapping deserves particular attention. A correctly generated workbook is still the wrong result if it contains another team's data or reaches the wrong inbox. The automation reports bonus hours; it does not calculate a financial bonus.
2. Transforming data for intercompany allocations
The second example focuses on a stage that can be easy to overlook: preparing data before the next system operation.
A source OData service returns records that need to become allocation items. The first script filters the records and maps the relevant fields to a target structure. That includes sender information, quantities, dates, and the receiving Work Package (WBS) element, which identifies the project element receiving the allocation.
The script stores the prepared list in the process context. A second script groups those items by receiving WBS element, making each group available for subsequent processing.
Grouping has a specific meaning here. It organizes related items without adding their quantities together or merging individual records. This preserves the detail while preparing a structure that later steps can handle by receiver.
The process view below places these transformations in context. Data retrieval precedes the two preparation tasks. A condition and loop then control the handling of WBS groups and the subsequent backend operation. The view shows the sequence of steps without exposing script contents, request payloads, or accounting values.

The preparation scripts do not themselves post documents. The broader process invokes the target operation separately; its response determines whether that operation succeeded.
The example shows where JavaScript fits within low-code development. The model controls the sequence of operations, while focused scripts perform filtering, field mapping, and grouping. Internal service names and accounting configuration are unnecessary to explain that pattern.
What these examples have in common
The business purposes differ, but the technical pattern repeats: collect parameters, retrieve data, transform it, and pass the result to the next component.
Each example emphasizes a different part of that pattern. Reporting combines recipient-specific datasets with file generation and delivery. Intercompany preparation concentrates on transforming service responses into usable groups of items.
Together, they show why the choice between APIs, scripts, and desktop automation is made per step. An API retrieves structured data. A script reshapes it. Excel activities produce an established document format. The process coordinates the work.
When is it a good fit?
SAP Build Process Automation is worth considering when a task has clear inputs and repeatable steps across applications, people, or files.
Start with a bounded scope and a measurable outcome. For a reporting process, that could mean tracking manual preparation time, failed deliveries, and corrections. For an allocation process, track rejected items and manual rework. Measure the baseline before making claims about improvement.
Check existing application capabilities first. A standard workflow, report, or scheduled backend job may already meet the requirement. An orchestration layer is useful when it connects steps that would otherwise remain separate, rather than duplicating a feature the system already provides.
Summary
The two examples put the components from the introduction into context. Report distribution combines data retrieval, Excel operations, and email delivery. Allocation work adds data transformation and backend calls. Each step has a distinct role in the flow.
That is a practical way to think about SAP Build Process Automation: define the work between existing capabilities and give each step a clear responsibility. The result should make completion verifiable, whether that means a delivered report, a confirmed backend operation, or a prepared dataset ready for the next stage.
