Setup Environment for S/4HANA Sales Order API
Create destination and environment variables for action configuration
Overview
You will learn
- How to create destination in SAP BTP Cockpit to connect to backend system
- How to add destination based environment variable in business process for action configuration
Prerequisites
Steps
Intro
IMPORTANT: Please refer to sample Sales Order Management (MI06) in the SAP Build Store if you face any issues while following the tutorials. To retrieve the sample refer to step 5 of Run Business Process.
To configure action in business process, you will need to create an environment variable to access the destination that is created in SAP Business Technology Platform. A destination is needed to connect to the S/4HANA system to execute the APIs. The destination-based environment variable will be used to configure the action of the business process.
To add the destination in your BTP Cockpit, do the following:
- Download the S4HANACloud destination file.
- Go to Connectivity > Destinations in your BTP Cockpit.
- Click Import Destination and select the downloaded destination file.
- Update the URL, User and the Password based on your S4HANACloud setup.
- Save the changed.

Destination Note that there is a property sap.processautomation.enabled added to the destination. The destinations which have this property set as true can be discovered and added in SAP Build Process Automation.
Set this destination, created in BTP cockpit, in SAP Build Process Automation. To do so:
- Open SAP Build development workbench.
- Click Control Tower > Destinations.

Destination - Click New Destination.
- From Add Destination pop-up, select
S4HANAClouddestination. - Click Add to add a new destination in SAP Build Process Automation.

Destination A new destination will be added.

Destination This destination will be associated with the environment variable while deploying the business process.
You have successfully created and configured the destination to be accessed while configuring business process.
Resources
Discussion
Share feedback on this tutorial or join the conversation in SAP Community.