Artificial Intelligence Blogs Posts
cancel
Showing results for 
Search instead for 
Did you mean: 
MrRaj
Explorer
487

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:

Screenshot 2026-06-13 at 12.05.56 PM.png

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.

Screenshot 2026-06-13 at 11.54.00 AM.png

And this is how the destination in BTP looks:

Screenshot 2026-06-13 at 11.36.33 AM.png

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.

Screenshot 2026-06-13 at 11.42.21 AM.png

Logon group can be found here :

Screenshot 2026-06-13 at 11.48.24 AM.png

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:

Screenshot 2026-06-13 at 12.10.46 PM.png

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.

Screenshot 2026-06-13 at 12.18.05 PM.png

The action is now available in Connectors -> Actions, and can be used in our build projects.

Screenshot 2026-06-13 at 12.16.08 PM.png

Using this action, I created a custom process that can be triggered to generate a billing document by entering the reference sales document number.

Screenshot 2026-06-13 at 12.31.19 PM.png

Let's see it in action;
Assume we have below sales order, for which we'd like to generate a billing document.

Screenshot 2026-06-13 at 12.35.07 PM.png

Let’s now access the custom process we created. I have added the form URL to SAP Build Work Zone for easy access.

Screenshot 2026-06-13 at 12.40.18 PM.png

Screenshot 2026-06-13 at 12.42.27 PM.png

Since I added an email notification step to the process, we receive an email once the billing document is generated successfully.

Screenshot 2026-06-13 at 12.44.59 PM.png

Let's validated the generated billing document number in the system.

Screenshot 2026-06-13 at 12.47.56 PM.png

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.

Screenshot 2026-06-20 at 5.30.51 PM.png

Screenshot 2026-06-20 at 5.40.35 PM.png

As we can see below, all our SAP Build Work Zone applications are now accessible through the Joule Work mobile app as well.

Screenshot 2026-06-20 at 5.42.31 PM.png

Screenshot 2026-06-20 at 5.44.40 PM.png

Thanks for reading!

Stay tuned for more demos on AI agents using Joule Studio, n8n, and automation in SAP Build.