SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Create a Process Trigger

Create an API trigger for the business process to be called from external system.

Overview

🎓 beginner 15 min. SAP BTP ABAP EnvironmentBeginnerABAP DevelopmentSAP Business Technology PlatformSAP Build Process Automation

You will learn

  • โœ”How to create an API trigger to start an instance of a business process from any service, like SAP Build Apps A business process is started by defining a trigger, an event that indicates to your SAP Build Process Automation tenant to start a process instance. Process triggers can be a form, such as a request form, an API call, where an external system starts the process or an Event. You may also start the instance with an event trigger which on-boards and listens to back-end events emitted from an external source system and reacts to such events by triggering artifacts such as processes and automations. As part of this tutorial, we will start an instance of the process using an API call, with the inputs for the call configured from the process builder. These inputs will then be used as input fields in your process.
Ruchi Dobriyal R Ruchi Dobriyal November 22, 2024
Created by June 12, 2024
Contributors

Prerequisites

Prerequisites

  • You have created a Business Project and Process in SBPA as described here

Steps

Step 1 Create the data type for the API Trigger.
โ€”

A data type is an artifact describing a data structure that can be used as an input and/or an output parameter in automations or processes. You have two options to create the fields in data type. You can either import an excel file or define the fields manually.

As part of this tutorial, we would be creating data type defining each field with field name and type of field manually.

  1. Go to your project and click on Create > Data Type.

    Create Data Type
    Create Data Type

    Create Data Type 2
    Create Data Type 2

  2. Name the data type Travel Context and click on Create.

    TravelContext
    TravelContext

  3. Click on New Field to add new fields to the data type Travel Context.

    New Field
    New Field

    Start Data Type
    Start Data Type

  4. Repeat the process to add all the fields of the type as shown below

    Field NameType
    Travel idString
    Agency NameString
    Booking feeString
    Currency CodeString
    Customer NameString
    Total priceString

The spelling and casing of the fields, as well as any extra spaces, is crucial because the API to trigger the process will require the fields exactly as written.
For the tutorial we are keeping a format as first letter of all words in the field name capital and without underscore.

The final data type looks as below. Click Save to save the data type

Final Data
Final Data

Step 2 Create an API Trigger for the process.
+
Step 3 Create Input for the process.
+
Step 4 Test Yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Create the data type for the API Trigger. 2. Create an API Trigger for the process. 3. Create Input for the process. 4. Test Yourself

Learn more →