---
parser: v2
author_name: Stephan Schluchter
author_profile: https://github.com/SchluchterStephan
auto_validation: true
time: 15
tags: [tutorial>intermediate, software-product>sap-business-technology-platform, tutorial>free-tier]
primary_tag: software-product>sap-build-process-automation
slug: spa-create-process-visibility
canonical_url: https://developers.sap.com/tutorials/spa-create-process-visibility
---
# Create Process Visibility Scenario
<!-- description --> Create a Visibility Scenario for your Business Process

## Prerequisites

 - [Create an Automation to Extract Data](spa-create-automation) 
 - [Create a Decision](spa-create-decision)

## You will learn
  - How to create and configure a Process Visibility Scenario
  - How to define performance indicators of a process by using visibility scenarios
  - Why and how you can gain visibility into your processes to measure performance with SAP Build Process Automation.

---
The process is created where several forms are defined, an automation to extract data is included in that same process and a condition to control the flow and even improved the process with some decision logic are used. Now it is time to measure success and improvements. In fact, you will gain end-to-end process visibility. There is a comprehensive dashboard with several process performance indicators, like process cycle time, duration of individual steps or status of the running processes – and this view is created automatically, in real time.

### Prepare Process

Before creating a **Visibility Scenario**, you need to prepare the process.

1. In the **Process Builder** open the process and on the right-hand side, select ![Process Details icon](https://raw.githubusercontent.com/sap-tutorials/sap-build-process-automation/main/tutorials/spa-create-process-visibility/icon.png) icon to view the process details.

    ![Find Visibility tab](https://raw.githubusercontent.com/sap-tutorials/sap-build-process-automation/main/tutorials/spa-create-process-visibility/Step1-1.png)

2. Then, select the tab **Visibility**.

    ![Find Visibility tab](https://raw.githubusercontent.com/sap-tutorials/sap-build-process-automation/main/tutorials/spa-create-process-visibility/Step1-1b.png)

    > Here you define the connection between the process context and the newly to be created visibility scenario.   

3. Select **+** on the right panel to add the relevant attributes from the process.

    ![Plus Sign to add attributes](https://raw.githubusercontent.com/sap-tutorials/sap-build-process-automation/main/tutorials/spa-create-process-visibility/Step1-2.png)

4. Add the following attributes:

    - `expectedDeliveryDate`
    - `orderAmount`
    - `orderDate`
    - `orderNumber`
    - `shippingCountry`
    - `Customer Name`

    ![Added Attributes](https://raw.githubusercontent.com/sap-tutorials/sap-build-process-automation/main/tutorials/spa-create-process-visibility/Step1-3.png)

    > The relevant attributes are the ones that could be used to measure, calculate, or derive some meaningful information in the visibility dashboard.

5. **Save** your work.


### Create Visibility Scenario

1.  Select the **Open Project Content** icon as below.

    ![New visibility scenario](https://raw.githubusercontent.com/sap-tutorials/sap-build-process-automation/main/tutorials/spa-create-process-visibility/Step2-1.png)

2. Select **+**. Choose **Create** > **Visibility Scenario**.

    ![New visibility scenario](https://raw.githubusercontent.com/sap-tutorials/sap-build-process-automation/main/tutorials/spa-create-process-visibility/Step2-1b.png)

3.  Set **Name** to **Sales Order Visibility Scenario** then click **Create**.

    ![Details visibility scenario](https://raw.githubusercontent.com/sap-tutorials/sap-build-process-automation/main/tutorials/spa-create-process-visibility/Step2-2.png)

    > Please ensure you use a **unique name**, to make it easier to identify your scenario later on.

    The **Visibility Scenario** is created.

4.  Move to **General** tab in **Sales Order Visibility Scenario** and change: **Instances** to **Sales Orders** and **Instance** to **Sales Order**.

    > To make it better understandable what the instances are processing: Sales Orders.

    ![Change Instance(s) label](https://raw.githubusercontent.com/sap-tutorials/sap-build-process-automation/main/tutorials/spa-create-process-visibility/Step2-3.png)



### Configure Visibility Scenario Process

This step involves adding a process to the visibility scenario we created.

1.  Select **+**, then **Add Process** in **Processes** tab in **Sales Order Visibility Scenario**.

    ![Add Process to visibility scenario](https://raw.githubusercontent.com/sap-tutorials/sap-build-process-automation/main/tutorials/spa-create-process-visibility/Step3-1.png)

2.  Select **Order Processing** process.

    ![Select Process](https://raw.githubusercontent.com/sap-tutorials/sap-build-process-automation/main/tutorials/spa-create-process-visibility/Step3-2.png)

    > This will lead to the visibility scenario configuration screen, where these can be viewed and controlled:

    > 1. All the events that could potentially occur during the process execution
    > 2. The context data which is the attributes selected before (Step 1.3)

3.  Change within the following context data the data types. Select the pencil icon.

    ![Change data types in context data](https://raw.githubusercontent.com/sap-tutorials/sap-build-process-automation/main/tutorials/spa-create-process-visibility/Step3-3.png)

    | **Name**                   | **Current Data Type** | **New Data Type** |
    | ---------------------- | ----------------- | ------------- |
    | `expectedDeliveryDate` | String            | Date          |
    | `orderAmount`          | String            | Double        |
    | `orderDate`            | String            | Date          |

    ![Details to change data type of expected delivery date](https://raw.githubusercontent.com/sap-tutorials/sap-build-process-automation/main/tutorials/spa-create-process-visibility/Step3-4.png)


### Define Visibility Scenario Status

This step involves configuring the visibility scenario's status that allows to define under which circumstance a process instance will change the status to require special processing or actions.

1.  Move to **Status** tab in **Sales Order Visibility Scenario**.

2.  Change **Target Type** from **None** to **Constant**.

    ![Change Target Type to constant](https://raw.githubusercontent.com/sap-tutorials/sap-build-process-automation/main/tutorials/spa-create-process-visibility/Step4-1.png)

3.  Set **Target Value** to **10 Min** and **Threshold** to **50%**.

    ![Change Target Value](https://raw.githubusercontent.com/sap-tutorials/sap-build-process-automation/main/tutorials/spa-create-process-visibility/Step4-2.png)

    > The means: as soon as processing duration crosses 5 minutes (50% of **Target Value**), the status will switch to "At Risk". After 10 minutes it will change to "Critical".


### Configure Visibility Scenario Performance Indicators

1.  Move to **Performance Indicators** tab in **Sales Order Visibility Scenario** and add additional ones or leave them as is.

    ![Performance Indicators](https://raw.githubusercontent.com/sap-tutorials/sap-build-process-automation/main/tutorials/spa-create-process-visibility/Step5-1.png)

2.  Click **Save**.

You have now configured a visibility scenario which is related to your process. Based on this configuration a dashboard will be created which you can use to measure the performance, but to also get deep insights into single instances and even trigger actions.

In the next tutorial, you will run the process and will be able to monitor the **Process Visibility Dashboard**.


---
