What is SAP process automation?
SAP process automation, also called SAP business process automation, means running the steps of procure-to-pay, order-to-cash or record-to-report without keying each document by hand: approvals route through workflow, recurring jobs run on a schedule, and data entry goes through BAPIs or APIs. PostNow.ai automates the steps that start in Excel and writes SAP's document number back to each row.
- Automate per step, not per process. A purchase order, a goods receipt and an invoice each have their own SAP transaction, interface and owner, so each step gets its own route.
- Keep SAP's checks in charge. The steps worth automating are posted through interfaces that run SAP's own validations and return SAP's own messages.
This guide is for SAP process owners, finance and supply chain leads and the consultants who support them. It maps three end-to-end processes, procure-to-pay (P2P), order-to-cash (O2C) and record-to-report (R2R), step by step: the SAP transaction, the route that automates the step, and the PostNow.ai page that shows how. Choosing between tool types is covered in SAP automation tools, and ranking candidate tasks in SAP automation use cases.
How to plan SAP process automation step by step
PostNow.ai treats SAP process automation as a chain of single steps: each step is one SAP document or change, posted by the interface that fits it, with SAP's answer recorded against the row it came from. That is also the most useful way to plan it. An SAP business process such as procure-to-pay is not one transaction; it is a requisition, an approval, a purchase order, a goods receipt, an invoice and a payment, each with its own data, its own owner and its own SAP transaction.
Automating the process means deciding, for every step, three things:
- Who or what triggers it. A person with a file, an approval decision, a date in the calendar, or the previous step finishing.
- How the data reaches SAP. A BAPI or API call, a recorded transaction replayed through batch input, a screen-driving bot, or SAP's own program running as a background job.
- How you know it worked. A document number and SAP's message per record, a job log, or a status read off the screen.
Some steps are already automated inside SAP and only need switching on: the payment program F110, recurring entries (FBD1 with F.14), accrual reversal (FBS1 with F.81), and approval workflows. The steps that stay manual are usually the ones where the data arrives outside SAP: in a spreadsheet, a planning model, a supplier file or an email. Those are where an Excel-driven posting route saves the most keying.
How PostNow.ai automates SAP process steps
PostNow.ai automates SAP process steps from Excel: a designer builds a template for one step once, operators fill rows and run it, and each row gets SAP's message and document number back. It runs on the user's own computer under the user's own SAP login, so every document carries that user's name and SAP checks that user's authorisations.
- One template per step. BAPI mode calls a function module from your own SAP system, such as
BAPI_PO_CREATE1for purchase orders; Find with AI suggests one from a plain-English description of the job. Recording mode records the transaction once in SHDB and replays it withCALL TRANSACTION. API mode posts through SAP's OData V2, OData V4 and SOAP APIs. - Check before anything posts. Validate checks the file offline: required fields, type, length, date format, decimals and allowed values. Simulate then sends the rows to SAP as a trial run; for a BAPI, PostNow.ai always follows the call with a rollback instead of a commit.
- Run and read the answer. Each row gets SAP's message in the Run Log and the document number in the column you choose. A BAPI document is committed only when SAP returns no error. Retry Failed re-posts only the rows marked ERROR.
- Link steps into a chain. A chain runs several BAPI templates in order for each document, passes a value such as the new document number from one step to the next, and by default runs a step only when the previous step succeeded.
- Schedule the recurring ones. A schedule runs a BAPI template or a chain once, daily, weekly or monthly (including the last day of the month) through Windows Task Scheduler on the user's own PC, in Run mode or as a Simulate-only check, and can email the result to named recipients.
- Hand it to the team with controls. Publish makes a template run-only for operators. An approval policy in the PostNow.ai portal can hold a run until a named approver signs off on that exact data, and every posted document goes to the central posting audit.

A scheduled run calls SAP over RFC with a login the user stores for that schedule, encrypted with Windows DPAPI so only that Windows user on that PC can read it. PostNow.ai logs in to SAP GUI only on the user's own computer, with the user's own stored login, when the user starts the action (Record, Run, Debug or Call Transaction); never on a server, never unattended. How a template moves from one person's file to a team process is covered in Excel to SAP automation.
The routes that automate an SAP process
PostNow.ai is the route for steps whose data starts in a spreadsheet; five other routes cover approvals, cross-application work, SAP's own batch programs and system-to-system feeds. Most automated processes use two or three of them together.
| Route | How it reaches SAP | Fits these steps | What it needs |
|---|---|---|---|
| Posting from Excel PostNow.ai | BAPIs over RFC, recorded transactions through batch input, or OData and SOAP APIs | Requisitions, orders, receipts, invoices, journals and master data changes that a team prepares in a file | A designer who builds and tests each template once |
| SAP workflow flexible workflow, SAP Business Workflow | Work items inside SAP, approved in My Inbox or SAP GUI | Approval of requisitions, purchase orders and supplier invoices | Workflow configuration and approver rules |
| SAP Build Process Automation | Workflow plus bots on a Desktop Agent that drive SAP GUI, browsers and desktop apps | Processes that cross email, PDFs, portals and SAP | BTP setup; GUI scripting enabled where bots drive SAP GUI |
| RPA and SAP GUI scripting | A bot or script drives the screens a user sees | One person's repetitive screen task | Upkeep when screens or GUI versions change |
| Background jobs SM36, SM37 | SAP's own programs run on a schedule on the application server | Payment runs, recurring entries, billing due lists, clearing | Variants and job monitoring |
| Interfaces IDocs, APIs, middleware | Another system calls SAP without a person | Orders from a web shop, bank statements, EDI invoices | Development for each interface |
Workflow decides, posting routes do. SAP workflow automation routes a decision to the right approver; it does not key the document. In SAP S/4HANA, flexible workflow defines condition-based approval for procurement documents such as purchase requisitions, purchase orders and supplier invoices, set up per document in a Manage Workflows app (for example Manage Workflows for Purchase Orders) and approved in My Inbox (SAP Learning). The classic SAP Business Workflow is modelled in the Workflow Builder, transaction SWDD (SAP Help). The document itself comes from a person, a posting route or an interface.
SAP Build Process Automation is SAP's low-code product that combines workflow management with robotic process automation. Its automations run on a Desktop Agent on a Windows machine, attended or unattended, and to automate SAP GUI for Windows, SAP's recorder tutorial requires GUI scripting to be enabled on the client and the server. It earns its place where a step crosses applications, such as reading a mailbox before an invoice is posted. For the SAP posting itself, a BAPI or API call returns SAP's message directly. The tool types are compared in SAP automation tools, and what breaks in screen scripts in SAP GUI scripting with Excel.
Procure-to-pay automation in SAP, step by step
PostNow.ai posts four of the six procure-to-pay steps from Excel through SAP's BAPIs; approval stays in SAP workflow and payment in SAP's payment program. Procure-to-pay automation in SAP, which most teams call SAP procurement automation, runs from the purchase requisition to the payment run, and the table shows which route fits each step.
| Step | SAP transaction | Route that automates it | With PostNow.ai |
|---|---|---|---|
| 1. Purchase requisition | ME51N | BAPI_PR_CREATE from a file of demands | ME51N mass upload |
| 2. Approval | Release strategy (ME54N, ME29N) or flexible workflow in S/4HANA | SAP workflow; approvers act in SAP | An approval policy can also hold the upload itself until it is signed off |
| 3. Purchase order | ME21N | BAPI_PO_CREATE1; SAP does not support batch input for ME21N (Note 217437) | ME21N mass upload |
| 4. Goods receipt | MIGO | BAPI_GOODSMVT_CREATE with movement type 101 against the order | MIGO mass upload |
| 5. Supplier invoice | MIRO (with PO), FB60 (without) | BAPI_INCOMINGINVOICE_CREATE; SAP does not support batch input for MIRO (Note 381593). FB60 through BAPI_ACC_DOCUMENT_POST | MIRO mass invoices, FB60 upload |
| 6. Payment | F110 | SAP's payment program, run per parameter set, as a background job if you schedule it | AP Open Items + Aging before the run and Vendor Payment History after it, as Excel reports |
Procure-to-pay starts before step 1, with the supplier: a purchase order needs a vendor master record for the supplier it buys from. In SAP ECC, PostNow.ai creates vendors in bulk by replaying a recording of XK01, one supplier per Excel row (vendor master upload with XK01); in S/4HANA the supplier is a Business Partner, created through transaction BP. The request, duplicate checks and approval that come before the record are covered in supplier onboarding automation.
The invoice step is where most P2P automation effort goes, because the 3-way match decides whether an invoice posts clear or posts with a payment block. The tolerance keys and the release of blocked invoices are covered in SAP invoice matching, and the whole AP side in SAP accounts payable automation.
Two P2P rules avoid rework. First, post the goods receipt only for goods that arrived: a receipt created automatically from the purchase order defeats the 3-way match it is meant to feed. Second, check the result per step before starting the next. The purchase order report with PO history puts the new orders' header, items, schedule lines and GR/IR history in one Excel sheet.
Order-to-cash automation in SAP, step by step
PostNow.ai posts the order, delivery, goods issue and billing steps of order-to-cash from Excel; SAP's own due lists and bank statement processing cover the rest. Order-to-cash automation in SAP runs from the sales order to the cleared customer payment, and every step references the document before it.
| Step | SAP transaction | Route that automates it | With PostNow.ai |
|---|---|---|---|
| 1. Sales order | VA01 | BAPI_SALESORDER_CREATEFROMDAT2, with SAP's pricing, availability and credit checks | VA01 mass upload |
| 2. Outbound delivery | VL01N, or the delivery due list VL10 | BAPI_OUTB_DELIVERY_CREATE_SLS for a chosen list of order items; VL10 for everything due | VL01N mass deliveries |
| 3. Picking and goods issue | VL02N, or collective goods issue in VL06O | BAPI_OUTB_DELIVERY_CONFIRM_DEC with the goods issue flag, or VL06O for many deliveries | A second template on the delivery numbers (see the VL01N page for the trade-off) |
| 4. Billing | VF01, or the billing due list VF04 | A VF01 recording or BAPI_BILLINGDOC_CREATEMULTIPLE; VF04 as a background job for everything due | VF01 mass billing |
| 5. Incoming payment | F-28, or the electronic bank statement | Bank statement processing clears open items automatically where the payment matches | AR Open Items + Aging 360 report in Excel |
The O2C decision is between SAP's due lists and a file. VL10 and VF04 process everything that is due, which suits a steady flow. A file suits a chosen subset: the orders a planner released, the deliveries for one truck, the corrections after a pricing error. The whole SD side, including pricing conditions and customer master data, is covered in SAP SD mass upload.
Goods issue is the step to treat with care. A delivery can be changed or deleted in VL02N before goods issue; after it, stock has moved and accounting documents exist, and the fix is a reversal. To see the whole flow per order, the order-to-cash report lists each sales order with its delivered and billed quantities.
Record-to-report automation: journals, accruals and close
PostNow.ai posts the journals whose amounts are calculated outside SAP, in an Excel model, through BAPI_ACC_DOCUMENT_POST; SAP's own recurring-entry and accrual programs cover the fixed ones. Record-to-report automation is mostly about month-end: getting the right journals into an open period, reversing them on time, and proving the balances.
| Step | SAP transaction | Route that automates it | With PostNow.ai |
|---|---|---|---|
| G/L journals with calculated amounts | FB50, FB01 | BAPI_ACC_DOCUMENT_POST from the file the amounts were calculated in | FB50 journal upload, FB01 upload |
| Same amount every period | FBD1, then F.14 | SAP recurring entry; F.14 creates a batch input session processed in SM35 | SAP's own program runs it; no file needed |
| Accruals that reverse on a set date | FBS1, then F.81 | SAP accrual/deferral documents, reversed in bulk by F.81 | Calculated accruals post through the FB50 template |
| Reversals | FB08, F.80 | F.80 for a selection; BAPI_ACC_DOCUMENT_REV_POST from a list | Free FB08 reversal template |
| Master data changes at close | KS02 | Change BAPIs such as BAPI_COSTCENTER_CHANGEMULTIPLE | SAP mass change: only edited rows post |
| Period control | OB52 | Open and close posting periods per variant and account type | Posting dates as typed values in an open period |
| Check the balances | S_ALR_87012277, F.08 | G/L account balances by account and period, run after the postings | Trial balance report in Excel |
A closed period is a frequent reason a month-end file fails: SAP rejects the posting with F5 201 "Posting period ... is not open". Put the posting date in the file as a typed value, not a formula such as =TODAY(), and confirm with FI which period is open before the run. All finance postings from Excel, by transaction, are in SAP FICO mass posting. After the run, the trial balance report in Excel shows the G/L balances by account, company code and fiscal year. On ECC it reads the G/L totals table GLT0; on S/4HANA it reads the universal journal ACDOCA (leading ledger) and lists the movements per period.
Approvals and controls in an automated process
PostNow.ai ties approval to the data being posted: an approval policy in the portal holds the run until a named approver accepts that exact set of rows. Automation removes keying, not accountability, so every automated step still needs an owner, an approval where the risk calls for one, and a trail that shows who posted what.
- Approval before posting. A designer or admin creates a policy with a template name and transaction code to match and one to twenty approvers. When an operator clicks Run on a covered template, the add-in builds a review grid and a SHA-256 fingerprint of the data. The approver decides in the portal's web grid; the submitter cannot approve their own request, and the run proceeds only while the data still matches the fingerprint.
- Approval inside SAP. Requisitions, purchase orders and supplier invoices still go through SAP's release strategy or flexible workflow after they are created. A document posted from Excel is subject to the same workflow as one keyed by hand.
- Build and run kept apart. Designers build and change templates; operators run published, run-only versions. The admin portal switches posting, Simulate, Mass Change and scheduling on or off per user.
- SAP authorisations stay the gate. Users need RFC authorisation (
S_RFC) for the function modules a template calls, plus the business authorisations for the object. PostNow.ai posts under each user's own SAP login, so SAP refuses what the user may not do. - Two audit trails. SAP keeps its own change documents and document headers; PostNow.ai records each posted document centrally by SAP system, client and user.
- Simulate-only schedules. A schedule in Simulate mode runs the BAPI and rolls back, so a file can be checked against SAP every night before anyone posts it.
Plan for one behaviour of the approval check: it reads the policy from the PostNow.ai portal, and if the portal cannot be reached, the check lets the run through. Keep the portal reachable from the PCs that run approved templates, and keep SAP authorisations as the hard stop. The full approval flow is in Excel to SAP automation.
Where to start: the first process to automate
With PostNow.ai, the best first step is one recurring step whose data already sits in a spreadsheet, because the template replaces keying the team already does. Pick the first SAP process step with four questions:
- Does the data start outside SAP? If SAP already holds it, switch on SAP's own program or due list first.
- Does it come back every period? A monthly file pays for its template within a few runs; a one-off load may not.
- Is there a BAPI for it? A BAPI or API returns SAP's message per record; a recording is the route where a field exists only on a screen. The trade-offs are in BAPI vs BDC in SAP.
- Who owns the result? Name the person who reads the Run Log and fixes the failed rows before the template goes live.
Worked example: month-end accruals for company code 1010
A GL team keeps its accrual calculations for company code 1010 in one workbook of about 300 lines. A designer maps a PostNow.ai template to BAPI_ACC_DOCUMENT_POST with an H/D marker column, one header row per journal, and publishes it run-only.
- Last three working days: a schedule runs the template in Simulate mode every evening and emails the GL lead when any journal fails, so a closed cost center or a missing tax code shows up before close day.
- Close day: the accountant runs Validate, then Simulate, then Run. An approval policy on the template sends the rows to the controller, who approves them in the portal; the run proceeds and each journal's document number lands on its header row.
- Next period: a second template on
BAPI_ACC_DOCUMENT_REV_POSTreverses the accruals; each row carries the object type and key built from the document number the first run wrote back. - Check: the trial balance report, which reads ACDOCA on S/4HANA, lists the accrual accounts' movements per period in Excel.
Once that step runs cleanly for two closes, the same pattern moves to the next one: the supplier invoices without a purchase order, or the cost center changes. Which tasks to rank first across departments is covered in SAP automation use cases.

