Skip to Content

Setup Environment

Create destination and environment variables for action configuration
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
ArchanaShuklaArchana ShuklaJanuary 18, 2023
Created by
celineaudinsap
January 16, 2023
Contributors
celineaudinsap

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.

  • Step 1
    1. 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.

    2. Set this destination, created in BTP cockpit, in SAP Build Process Automation. To do so:

      • Open SAP Build development workbench.
      • Click Settings.
      • Go to Destinations section, and click New Destination.
      • From Add Destination pop-up, select S4HANACloud destination.
      • 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.

  • Step 2
    1. From the SAP Build Lobby, click on the Store tab.

      Import Project
    2. On the Store page, search for Sales Order Approvals - Sample and once it loads, click Create from Template.

      Import Project
    3. In the Project Name field, enter Sales Order Approval.

      you can keep the default description or enter the description of your choice

      • click Create.

      Import Project
    4. Open Lobby and you will see your project created

      Import Project
  • Step 3
    1. Click to open Sales Order Approval business process project from the Lobby.

      When you open for the first time then you might get an option to Accept.

      Import Project
    2. Click to open Order Processing process.

      • From your project overview section,
        • In the process builder, click to open Project Properties from top-right corner of the page.
      Destination
    3. In the Project Properties pop-up, select Environment Variables and click Create to create an environment variable for this business processes.

      Destination
    4. Enter the following to create an environment variable:

      • S4HANACloud as Identifier.
      • Any Description of your choice.
      • Destination as variable type.
      Destination
      • Click Create.
    5. Once the environment variable is created, Close the project properties’ pop-up.

      Destination

    You have successfully created and configured the destination to be accessed while configuring business process.

Back to top