Quick answer

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.

  1. One template per step. BAPI mode calls a function module from your own SAP system, such as BAPI_PO_CREATE1 for 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 with CALL TRANSACTION. API mode posts through SAP's OData V2, OData V4 and SOAP APIs.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
SAP process automation architecture: business users prepare data in Excel, a process automation layer maps, validates, routes approvals and logs, and SAP ECC or S/4HANA receives the postings through BAPIs, APIs or recorded transactions
Data is prepared in Excel, checked and approved in PostNow.ai, and posted to SAP through a BAPI, an API or a recorded transaction.

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.

RouteHow it reaches SAPFits these stepsWhat it needs
Posting from Excel
PostNow.ai
BAPIs over RFC, recorded transactions through batch input, or OData and SOAP APIsRequisitions, orders, receipts, invoices, journals and master data changes that a team prepares in a fileA 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 GUIApproval of requisitions, purchase orders and supplier invoicesWorkflow configuration and approver rules
SAP Build Process AutomationWorkflow plus bots on a Desktop Agent that drive SAP GUI, browsers and desktop appsProcesses that cross email, PDFs, portals and SAPBTP setup; GUI scripting enabled where bots drive SAP GUI
RPA and SAP GUI scriptingA bot or script drives the screens a user seesOne person's repetitive screen taskUpkeep when screens or GUI versions change
Background jobs
SM36, SM37
SAP's own programs run on a schedule on the application serverPayment runs, recurring entries, billing due lists, clearingVariants and job monitoring
Interfaces
IDocs, APIs, middleware
Another system calls SAP without a personOrders from a web shop, bank statements, EDI invoicesDevelopment 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.

StepSAP transactionRoute that automates itWith PostNow.ai
1. Purchase requisitionME51NBAPI_PR_CREATE from a file of demandsME51N mass upload
2. ApprovalRelease strategy (ME54N, ME29N) or flexible workflow in S/4HANASAP workflow; approvers act in SAPAn approval policy can also hold the upload itself until it is signed off
3. Purchase orderME21NBAPI_PO_CREATE1; SAP does not support batch input for ME21N (Note 217437)ME21N mass upload
4. Goods receiptMIGOBAPI_GOODSMVT_CREATE with movement type 101 against the orderMIGO mass upload
5. Supplier invoiceMIRO (with PO), FB60 (without)BAPI_INCOMINGINVOICE_CREATE; SAP does not support batch input for MIRO (Note 381593). FB60 through BAPI_ACC_DOCUMENT_POSTMIRO mass invoices, FB60 upload
6. PaymentF110SAP's payment program, run per parameter set, as a background job if you schedule itAP 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.

StepSAP transactionRoute that automates itWith PostNow.ai
1. Sales orderVA01BAPI_SALESORDER_CREATEFROMDAT2, with SAP's pricing, availability and credit checksVA01 mass upload
2. Outbound deliveryVL01N, or the delivery due list VL10BAPI_OUTB_DELIVERY_CREATE_SLS for a chosen list of order items; VL10 for everything dueVL01N mass deliveries
3. Picking and goods issueVL02N, or collective goods issue in VL06OBAPI_OUTB_DELIVERY_CONFIRM_DEC with the goods issue flag, or VL06O for many deliveriesA second template on the delivery numbers (see the VL01N page for the trade-off)
4. BillingVF01, or the billing due list VF04A VF01 recording or BAPI_BILLINGDOC_CREATEMULTIPLE; VF04 as a background job for everything dueVF01 mass billing
5. Incoming paymentF-28, or the electronic bank statementBank statement processing clears open items automatically where the payment matchesAR 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.

StepSAP transactionRoute that automates itWith PostNow.ai
G/L journals with calculated amountsFB50, FB01BAPI_ACC_DOCUMENT_POST from the file the amounts were calculated inFB50 journal upload, FB01 upload
Same amount every periodFBD1, then F.14SAP recurring entry; F.14 creates a batch input session processed in SM35SAP's own program runs it; no file needed
Accruals that reverse on a set dateFBS1, then F.81SAP accrual/deferral documents, reversed in bulk by F.81Calculated accruals post through the FB50 template
ReversalsFB08, F.80F.80 for a selection; BAPI_ACC_DOCUMENT_REV_POST from a listFree FB08 reversal template
Master data changes at closeKS02Change BAPIs such as BAPI_COSTCENTER_CHANGEMULTIPLESAP mass change: only edited rows post
Period controlOB52Open and close posting periods per variant and account typePosting dates as typed values in an open period
Check the balancesS_ALR_87012277, F.08G/L account balances by account and period, run after the postingsTrial 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:

  1. Does the data start outside SAP? If SAP already holds it, switch on SAP's own program or due list first.
  2. Does it come back every period? A monthly file pays for its template within a few runs; a one-off load may not.
  3. 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.
  4. 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_POST reverses 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.

Frequently asked questions

How does PostNow.ai automate SAP process steps from Excel?
PostNow.ai is an Excel add-in for SAP ECC and S/4HANA that posts each process step from spreadsheet rows through a BAPI, a recorded transaction or SAP's OData and SOAP APIs. A designer builds one template per step, such as BAPI_PO_CREATE1 for purchase orders or BAPI_ACC_DOCUMENT_POST for journals; operators run Validate, Simulate and Run, and each row gets SAP's message and document number. Chains run several BAPI templates in order and pass the document number from one step to the next, and schedules run them daily, weekly or monthly on the user's own PC. Approval policies, run-only templates and a central posting audit keep the process controlled.
What is SAP process automation?
SAP process automation, or SAP business process automation, means running the steps of an SAP business process without keying each document by hand. Approvals route through workflow, recurring jobs run on a schedule, and data entry goes through BAPIs, APIs or recorded transactions that return SAP's own messages. It is planned step by step, because each step of a process such as procure-to-pay has its own SAP transaction and owner.
Which SAP processes can be automated end to end?
Procure-to-pay, order-to-cash and record-to-report can each be automated end to end, one step at a time. In procure-to-pay, requisitions, purchase orders, goods receipts and invoices can be posted through BAPIs, with approval in SAP workflow and payment in F110. In order-to-cash, sales orders, deliveries, goods issue and billing can be automated, with incoming payments cleared from the bank statement. In record-to-report, journals, recurring entries, accruals and reversals can be automated, with period control in OB52.
How do you automate procure-to-pay in SAP?
Automate procure-to-pay one step at a time: purchase requisitions through BAPI_PR_CREATE, purchase orders through BAPI_PO_CREATE1, goods receipts through BAPI_GOODSMVT_CREATE and supplier invoices through BAPI_INCOMINGINVOICE_CREATE. Approvals stay in SAP's release strategy or flexible workflow, and the payment run F110 can run as a background job. SAP does not support batch input for ME21N or MIRO (Notes 217437 and 381593), so those steps belong on their BAPIs.
What can be automated in SAP procurement?
Five procurement objects can be loaded from Excel, each on its own route. Purchase requisitions go through BAPI_PR_CREATE (ME51N mass upload), purchase orders through BAPI_PO_CREATE1 (ME21N mass upload) and goods receipts through BAPI_GOODSMVT_CREATE with movement type 101 (MIGO mass upload). Vendor master records are created from a recording of XK01 in SAP ECC, or as Business Partners in S/4HANA (vendor master upload), and supplier invoices go through BAPI_INCOMINGINVOICE_CREATE (MIRO mass invoices). Approvals stay in SAP's release strategy or flexible workflow. For the same objects seen as data loads, with the order to load them in, see SAP MM mass upload.
How do you automate order-to-cash in SAP?
Create sales orders through BAPI_SALESORDER_CREATEFROMDAT2, deliveries through BAPI_OUTB_DELIVERY_CREATE_SLS or the delivery due list VL10, and billing documents through a VF01 recording, BAPI_BILLINGDOC_CREATEMULTIPLE or the billing due list VF04. Goods issue is posted in VL02N, collectively in VL06O, or from a list of deliveries. Incoming payments are cleared from the electronic bank statement where the payment matches the open item.
What is SAP Build Process Automation?
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 installed on a Windows machine, attended or unattended. To automate SAP GUI for Windows, SAP GUI scripting must be enabled on the client and the server.
What is the difference between workflow, RPA and BAPI automation in SAP?
Workflow routes a decision, such as approving a purchase order, to the right person inside SAP; it does not create the document. RPA drives the screens of SAP and other applications the way a person would, which suits steps that cross email, PDFs and portals. BAPI automation creates or changes the SAP document through SAP's interface and returns SAP's message for each record, which makes it the most checkable route for the posting itself.
Can SAP process steps run on a schedule?
Yes. SAP's own programs, such as the payment run F110 or the billing due list VF04, run as background jobs defined in SM36 and monitored in SM37. In PostNow.ai, a schedule runs a BAPI template or a chain once, daily, weekly or monthly through Windows Task Scheduler on the user's own PC, in Run or Simulate mode, with the SAP login stored for that schedule and an optional email of the result.
A professional working in PostNow.ai on a laptop

SAP process automation from Excel

Automate your next SAP process step from Excel

Build one template per step, check every row before it posts, link steps into a chain and schedule the recurring ones.

Request a demo
Book a demo

Bring one SAP process. We show it end to end.

Tell us where to reach you and which process matters. The PostNow.ai team replies by email to arrange the demo.

  1. 01You send the formIt goes straight to the PostNow.ai team.
  2. 02We agree a timeWe reply to your work email to set up the call.
  3. 03You see your own processA process from your own SAP work, shown from start to finish.

Request your demo

Name, work email and company are needed.

Please use your company email address.
What would you like to see?

We use your details only to arrange the demo. See our privacy policy.