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
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.
- RequestA salesperson submits the order number and a reason in a simple form.
- Read the orderThe process reads the blocked order: amount, currency, sold-to party.
- Prepare the dataA script quotes the OData key and turns the amount into a number.
- Apply the ruleBelow 1,000 the block is released at once; above, an approval task is created.
- Decide in My InboxThe credit analyst sees customer, amount, currency and reason, adds a comment, approves or rejects.
- 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 API | Used for |
|---|---|
A_CreditBlockedSalesDocument | Read the blocked order |
ReleaseCreditBlock | Release the block (auto and approved) |
RejectCreditBlock | Reject with reason 77 |
API_SALES_ORDER_SRV | Verify the status after each run |
| SAP Build part | Role |
|---|---|
| Form trigger | Credit release request |
| Actions project | Read, release, reject (CSRF, query parameters) |
| Script task + condition | Key formatting, amount rule |
| Approval form | Decision in My Inbox with comment |
| BTP destination | Secure 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
Shared after a short intro call, so we can match the files to your S/4HANA release.
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.
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.
Request access
Get the build guide & import files
Tell us where to reach you. We reply within one business day.