Hi Everyone!
Recently, I was working on a requirement to create an SD billing document in SAP S/4HANA using SAP Build Process Automation and make it accessible through the Joule Work mobile app.
Due to some internal requirements & technical restrictions, the only option available to me was to use the BAPI_BILLINGDOC_CREATEMULTIPLE BAPI to create the billing document.
I am sharing the following demo which I created in the test environment. To use this BAPI in SAP Build, there are two main configurations required:
1. Map the virtual host to the internal host in SAP Cloud Connector using the RFC protocol, and expose the required BAPI or RFC function module.
2. Create a destination of type RFC in the SAP BTP Cockpit.
Let's first see how Cloud to On-Premises mapping in Cloud Connector looks like:
We also need to enable the required resources, such as the BAPIs and function modules that we want to consume in SAP Build. The RFC_FUNCTION_SEARCH function module enables the search for function modules from SAP Build.
And this is how the destination in BTP looks:
The virtual message server is configured in the Cloud Connector and mapped to the internal SAP S/4HANA host, and logon group information is available in SMLG.
Logon group can be found here :
Now that the Cloud Connector and BTP destination configurations are complete, let’s log in to SAP Build and see how we can create an action using BAPI_BILLINGDOC_CREATEMULTIPLE.
Select RFC's, BAPI's:
All the BAPIs & RFCs from backend will be available to use. We will go ahead and look for BAPI/RFC we'd like to use, and create a new project.
The action is now available in Connectors -> Actions, and can be used in our build projects.
Using this action, I created a custom process that can be triggered to generate a billing document by entering the reference sales document number.
Let's see it in action;
Assume we have below sales order, for which we'd like to generate a billing document.
Let’s now access the custom process we created. I have added the form URL to SAP Build Work Zone for easy access.
Since I added an email notification step to the process, we receive an email once the billing document is generated successfully.
Let's validated the generated billing document number in the system.
To access SAP Build Work Zone applications and tiles in the Joule mobile app, open Settings, scan the QR code, and complete the authentication process.
As we can see below, all our SAP Build Work Zone applications are now accessible through the Joule Work mobile app as well.
Thanks for reading!
Stay tuned for more demos on AI agents using Joule Studio, n8n, and automation in SAP Build.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 45 | |
| 19 | |
| 17 | |
| 9 | |
| 9 | |
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |