SAP Build Process Automation is a simpler and faster way to automate business processes. It provides a unified Low-Code/No-code development experience to combine orchestrated workflows with Robotics Process Automation and Business AI in a single development environment. Check here for What’s New and Learn more from the roadmap.
In my Blog post Business Event Triggers in SAP Build Process Automation for SAP S/4HANA Cloud : The Customer Return (BKP) Use Case , I have covered the concepts of business events and how to configure business events for the use case for Customer Return for SAP S/4HANA Cloud. In continuation to the same, in this blog post we will learn how to create an event-trigger for “Manage Credit Block on Sales Order”.
“Manage Credit Block on Sales Order” business process enables customers to automate the approval of Sales Orders which are Credit Blocked in a flexible and transparent way. It provides flexibility in determining approvers depending on attributes like customer group, sales organization, order amount, currency etc. When a sales order is created in SAP S/4HANA (on-premise or cloud) and is automatically blocked for credit, a pre-configured process is triggered in SAP Build Process Automation.
Event-driven architecture for Sales Order packages
Pre-requisites: Event Mesh configuration is done as per the pre-requisites mentioned in blog.
User Journey: Create an event-based trigger for Manage Credit Block on Sales Order
For detailed step by step guide on how to add event triggers to a process, follow Create Event Triggers documentation.
For the “Manage Credit Block on Sales Order” use case, the event required is Sales Order Created event. Details of the event is available on Business Accelerator Hub.
Sales Order Created Event
Note: Once the event is added as trigger, the payload defined in the event is available as Process Inputs and can be used later in the process for actions, decisions, mail notifications, etc.
Sales Order Created Event Trigger Outputs / Process Inputs.
This is very helpful as most of the times in SAP S/4HANA , the events contain minimum information of the business object due to security reasons. For practical implementations of business processes, further API calls via Actions are necessary which need the business object ID and other parameters coming from the event payload.
For example, to get the Net Value and Currency of a Sales Order, there is a need to make further API call which takes the Sales Order from the event trigger as an input.
Please refer to Business Accelerator Hub for details on the APIs for Sales Order and Sales Document with Credit Block.
There could be many variations for the Sales Order process. Follow the YouTube video to create the process step by step: 🟣 Start Automating Your Work with SAP Build Process Automation.
A sample process could be like the following:
Sample Process for Manage Credit Block on Sales Order
Credit Check – Not OK
2. The business event trigger executes the above configured process in SAP Build Process Automation and the approval form is available in My Inbox.
Sample Approval Form
3. Approve the form and check for email notification.
4. To confirm, check that the credit block is removed for the sales order in SAP S/4HANA.
Sales Order after Credit Release
Note:
Do let me know in case of queries or feedback.