Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
Rama-Murari
Product and Topic Expert
Product and Topic Expert

SAP Build is a low-code solution that helps accelerate development and automation. It helps to

  1. Build visually:  Create enterprise apps, automate processes, and design business sites without writing code.
  2. Integrate seamlessly:  Accelerate  Trigger the process
    Get process attributes
    Update process instances
      Retrieve process instances development with prebuilt connectors and business content for SAP and non-SAP systems. 
  3. Collaborate securely:  Foster collaboration between business and development teams with built-in governance and lifecycle management.

SAP_Build.png

SAP Build Products :

  1. Build apps  SAP Build Apps helps you create enterprise applications without code.
  2. Automate processes  SAP Build Process Automation enables you to automate workflow processes and tasks with simple drag-and-drop capabilities
  3. Create business sites SAP Build Work Zone enables you to design engaging sites to get work done quickly across all your enterprise application

This blog will take you through how application built in Build Apps can easily integrate with SAP Build Process Automation and trigger a process in a Citizen Developer friendly way without the need to make direct API calls. 

Refer to this blog if you would like to know on how to integrate SAP Build Apps with SAP Build Process Automation using API calls.

Need for the integration between SAP Build Apps and SAP Build Process Automation

  • Citizen Developer of SAP Build Apps would want to have the option to model their application to trigger a Business process in SAP Build Process Automation project so that Business process can be automated with the capabilities of process, decisions and automations along with complete E2E insights of the process with Visibility scenarios
  • Customers are looking for a native Android or iOS mobile application experience and not a web application for both triggering the process and for approvals as well .
  • Customer Experience and Success Factors Work zone uses SAP Build Apps as Application Extension and they need forms to be modelled in SAP Build Apps with rich styles and UI capabilities and at the same time trigger approvals for their process in SAP Build Process Automation

How does this integration simplify the life of a Citizen Developer?

Build Apps developer can discover the published Build Process from Library and consume it in their application in a low code no code way and doesn’t have to configure the API endpoint and parameters as was the case before.

 What are the pre-requisites for using this integration ?

BTP Subaccount should have the following service assignments under entitlements :

Click on the links below to do the initial setup for both the services.

  1. SAP Build Apps
  2. SAP Build Process Automation 

 Now, business process can be created in SAP Build Process Automation and the application can be created in SAP Build Apps.

Usecase –Release Credit Blocked Sales Order in S/4HANA 

We will take the use case of Releasing a Credit Blocked Sales Order in S/4HANA to illustrate this integration scenario between SAP Build Apps and SAP Build Process Automation.

In S/4HANA, there are Business Partners for whom credit limit can be set .Now when the sales orders are created for these Business Partners with the total amount of sales orders exceeding the credit limit , the sales orders will get blocked automatically. To unblock these sales orders, approval will be required which can be done in SAP Build Process Automation.

RamaMurari_0-1712138258463.png

 

 

Release Sales Order Credit Block process enables SAP S/4HANA customers to review the credit block on sales orders in SAP Build Apps application and send for approval to SAP Build Process Automation to decide about release, or reject of the credit blocked sales orders. 

For all APIs for Credit Blocked Sales Order in S/4HANA , refer to the list on Business Accelerator Hub.

Sample Business Process Flow: 

Lets go to the unified SAP Build Lobby and create a Project for Business Process to release a credit blocked sales order in S/4HANACreate_Project.gif

The sample business process looks like below.  The Build Process Automation project needs to be released ,deployed and in addition, Published to Library also so that it can be discovered and  triggered from Build Apps application.

Release_Deploy.gif

Steps in the process :

  • Create a process with API Trigger which takes a Credit Blocked Sales Order Number as input

API_Trigger_Input.png

  • Read the Credit Blocked Sales Order Document details from S/4HANA using Actions

Read_CB_SO.gif

  • Read the Sales Order Document Item details from S/4HANA using Actions

Read_SO_Items.gif

  • Determine Approver using Decisions

Decision.gif

  • Create an Approval Form with relevant Sales Order details where the approver can Approve or Reject the Credit Block removal
    • If its approved, Release the Credit Block in S/4HANA using Actions and End the process
    • If its rejected , End the process

Approval.gif

For complete explanation on this scenario and Build Process Automation project, you can refer to the Devtoberfest youtube video on “Start Automating your work with SAP Build Process Automation”

 This is a sample flow but the complete flow can be customized and implemented as required.

Build Apps Application Flow: 

Now that we have the Build Process Automation project ready, we can see what will be the configurations needed at Build Apps to enable triggering of a process in a low code no code fashion.

Please follow the blog What’s New in SAP Build – Seamless Integration of Processes and Apps from EsmeeX for steps to configure SAP Build Apps initial setup . Then, follow the below steps for project specific configurations.

  • Enable BTP Authentication 

         BTP Authentication can be enabled in the Auth tab

Auth.png

Auth1.png

  • Add the process for integration

          Discover the published process from library by searching with the Project name and add the process  in  the Data tab

Data_Integrations.pngData_Browse_Processes.pngDAta_Select_Process.png

  • Enable process

          Once the process is discovered and chosen as in the above step , Enable the process
By enabling the process, the process actions gets enabled which enables to
1) Trigger the process
2) Get process attributes
3) Update process instances
4) Retrieve process instances

Enable_Process.png

  • Trigger process

Trigger Process can be added in the UI Canvas tab . In the option to “Add Logic” to the Submit button , Trigger Process can be dragged and dropped from the tab “INSTALLED” in the Logic canvas and connect the input and output accordingly to the page variables.

Trigger_Process.png

Inputs of Trigger process

Trigger_Process_Inputs.png

Outputs of Trigger process

Trigger_Process_Outputs.gif

  • Retrieve process instances

In the application, we can retrieve process instances to see the current status of the triggered process. Go to the “Add Logic” of the ICONLIST ITEM in the UI Canvas.

Retrieve_Instances1.png

In the “INSTALLED” tab of the Logic Canvas, “Retrieve instances” can be dragged and dropped and connect the input and output accordingly to the page variables as shown below.

Retrieve_Instances2.png

On similar lines, the Build Apps application can be extended to use the Process Actions “Get process attributes” and “Update process instances” as well.

Launch Build Apps application 

When the Unblock Credit Blocked Sales Orders application in Build Apps is launched in the Launch tab, it shows the History of previously triggered processes for Unblocking the Credit Blocked Sales Orders with their process instance id triggered with “Retrieve Instances” process Action and the user who triggered it ,on which date and the current status of the process if its Running or Completed or Erroneous and so on .

Launch_BA.png

The user has the option to enter the Sales Order Document Number whose Credit Block needs to be removed and then Submit it to trigger the process in SAP Build Process Automation

RamaMurari_0-1712133506402.png

We have seen now how easily a Citizen Developer can integrate Build Apps to SAP Build Process Automation without knowing the underlying API details and so on to trigger the business process.

 

 

       

 

2 Comments