SAP Build Process Automation  /  Order-to-Cash  /  Workflow 01
Live demoOrder-to-Cash · Workflow 01

Credit-Blocked Sales Order Approval with SAP Build Process Automation

Small credit-blocked orders are released automatically. Larger ones go to a credit analyst in My Inbox with everything needed to decide, and the block is released or the order rejected in S/4HANA — with a full audit trail.

Tested in our S/4HANA 2025 system

5479712.00 USD
Below 1,000 → released automatically, no task createdB → D
548080,000.00 USD
Approval task in My Inbox → approved → releasedB → D
Status checked in S/4HANA after each run (TotalCreditCheckStatus: B = blocked, D = released).
Process
Order-to-Cash, credit management
System
SAP S/4HANA 2025, on-premise
Built with
SAP Build Process Automation
Users
Sales, credit analysts, credit managers
Outcome
Every blocked order decided and updated in S/4HANA

The problem

A sales order that fails the credit check stops until someone in credit management looks at it. In most companies that review is manual and slow.

Orders wait in a queue

Blocked orders sit until a credit analyst opens the release screen, even when the amount is trivial.

Decisions by email

Sales chases credit by email or phone, and the reason for each release is lost.

No consistent rule

Small and large orders get the same manual treatment; there is no clear threshold or audit trail.

How the workflow runs

One process in SAP Build Process Automation. It reads S/4HANA through the standard credit-block API and writes the decision back.

Request formSales order + reasonRead blocked orderGET credit-block APIPrepare dataScript: key + amountNet amountbelow 1,000?Auto-releaseReleaseCreditBlockYesApproval taskMy Inbox · credit analystNoRelease credit blockApproved → status DReject sales orderReason 77ApproveRejectEvery path endswith an update in S/4HANA
  1. RequestA salesperson submits the order number and a reason in a simple form.
  2. Read the orderThe process reads the blocked order: amount, currency, sold-to party.
  3. Prepare the dataA script quotes the OData key and turns the amount into a number.
  4. Apply the ruleBelow 1,000 the block is released at once; above, an approval task is created.
  5. Decide in My InboxThe credit analyst sees customer, amount, currency and reason, adds a comment, approves or rejects.
  6. Update S/4HANAApprove releases the credit block; reject rejects the order with reason 77.

Built with

Standard SAP APIs and SAP Build components only — nothing to develop in S/4HANA.

S/4HANA APIUsed for
A_CreditBlockedSalesDocumentRead the blocked order
ReleaseCreditBlockRelease the block (auto and approved)
RejectCreditBlockReject with reason 77
API_SALES_ORDER_SRVVerify the status after each run
SAP Build partRole
Form triggerCredit release request
Actions projectRead, release, reject (CSRF, query parameters)
Script task + conditionKey formatting, amount rule
Approval formDecision in My Inbox with comment
BTP destinationSecure connection to S/4HANA

Inside the build

Plug-and-play import files to get running fast, plus the full guide to build it yourself. Available on request.

Plug-and-play files + the complete build guide

Import our ready-made files into your own SAP BTP and S/4HANA landscape and have the workflow running fast. Every file has been tested end-to-end against the S/4HANA APIs. Want to learn it yourself? The step-by-step guide walks you through every screen so you can build and practise on your own.

Import files (plug and play)

  • SAP Build Process Automation project, ready to import
  • Actions project with the credit-block APIs
  • API specification: read, release, reject
  • BTP destination template
  • Postman collection with the tested API calls
  • Test data and expected results

Step-by-step guide (29 pages, 43 screenshots)

  • S/4HANA service activation
  • BTP destination setup
  • Actions with query parameters and CSRF
  • Script, condition, approval form
  • Release, deploy and test
  • Export and import to another tenant
  • Troubleshooting table
  • Final checklist

What we deliver

Use this workflow as it is, adapt it to your rules, or learn to build it yourself.

Build it in your system

Your thresholds, approvers and S/4HANA landscape, deployed and tested.

Proof of concept

A working version on your data in days, to show the business.

Team training

Your team builds it with us, step by step, in the Masterclass.

Handover and support

Documentation, export packages and help after go-live.

Questions

Can the threshold and approvers be changed?

Yes. The 1,000 limit and the approver are settings in the process. They can also come from a decision table, for example by customer group or sales area.

Does it change anything in S/4HANA?

No custom code. It uses the standard credit-block API, which only has to be activated in the gateway.

Does it work with SAP S/4HANA Cloud?

Yes. SAP’s own content package for this pattern supports S/4HANA Cloud; on-premise systems connect through a BTP destination as in this build.

Which licences are needed?

SAP Build Process Automation on SAP BTP. We help you check what your existing contract already covers; we do not sell licences.

Also as a Joule agent: the OTC Risk Agent combines credit exposure and open items to flag risky customers before the block happens.
See the agent →

Talk to us about this workflow

Tell us your credit process and your SAP landscape. We will show you how this workflow fits — or which of the 30 fits better.

ERP Agents is an independent consulting and training practice, not affiliated with or endorsed by SAP SE.