|
| 1 | +--- |
| 2 | +parser: v2 |
| 3 | +author_name: Khushi Yadav |
| 4 | +author_profile: https://github.com/khushiyadavsap |
| 5 | +auto_validation: true |
| 6 | +time: 15 |
| 7 | +tags: [ tutorial>intermediate, software-product>sap-business-technology-platform, tutorial>free-tier ] |
| 8 | +primary_tag: software-product>sap-build-process-automation |
| 9 | +--- |
| 10 | + |
| 11 | +# Integration With SAP Analytics Cloud and SuccessFactor |
| 12 | + |
| 13 | +<!-- description --> Learn how to connect to external systems like SAP Analytics Cloud and SuccessFactor using action in SAP Build Process Automation to customize or extend standard business processes. |
| 14 | + |
| 15 | +## Prerequisites |
| 16 | + |
| 17 | +- SAP SuccessFactors |
| 18 | +- SAP Analytics Cloud |
| 19 | +- Configure SMTP server destination by referring to [configuring-smtp-mail-destination](https://help.sap.com/docs/build-process-automation/sap-build-process-automation/configuring-smtp-mail-destination) |
| 20 | + |
| 21 | +## You will learn |
| 22 | + |
| 23 | +- How to acquire a template project from the store and customize it |
| 24 | +- Use actions in a business process to implement changes in an external dedicated system |
| 25 | + |
| 26 | +## Intro |
| 27 | + |
| 28 | +Action is a feature in SAP Build Process Automation to connect processes with external systems. It allows users to automate or extend their business processes for any available LoB processes like S/4HANA, `Ariba`, SuccessFactors, SAP Analytics Cloud etc. In this tutorial, you will create a request to approve a position in the HR Planning Process. If the request gets approved then a position is created in the dedicated system. |
| 29 | + |
| 30 | +### Retrieve the project from store |
| 31 | + |
| 32 | +1. From the SAP Build Lobby, navigate to the store. |
| 33 | +2. Search for the sample project: **SAC HR Position Planning**. |
| 34 | +3. Choose **Create from Template** to retrieve the sample and save it as a new project in your lobby. |
| 35 | + |
| 36 | + <!-- border --> |
| 37 | + |
| 38 | +4. Choose **Create**. |
| 39 | + |
| 40 | + <!-- border --> |
| 41 | + |
| 42 | + Your project gets created in editable version. |
| 43 | + |
| 44 | +### Modify the process |
| 45 | + |
| 46 | +1. Choose the process **SAC HR Position Planning**. |
| 47 | + |
| 48 | + <!-- border --> |
| 49 | + |
| 50 | +2. Choose **Mail - Approved** and select **Open Mail Body Editor**. |
| 51 | + |
| 52 | + <!-- border --> |
| 53 | + |
| 54 | +3. Click on **SuccessFactors** in the mail body and choose **Edit**. |
| 55 | + |
| 56 | + <!-- border --> |
| 57 | + |
| 58 | +4. Replace the link and choose **Save**. |
| 59 | + |
| 60 | + <!-- border --> |
| 61 | + |
| 62 | +5. Click on **headcount plan** in the mail body and choose **Edit**. |
| 63 | + |
| 64 | + <!-- border --> |
| 65 | + |
| 66 | +6. Replace the link and choose **Save**. |
| 67 | + |
| 68 | + <!-- border --> |
| 69 | + |
| 70 | +7. Choose **Apply**. |
| 71 | + |
| 72 | + <!-- border --> |
| 73 | + |
| 74 | +8. Choose **Mail - Rejected** and select **Open Mail Body Editor**. |
| 75 | + |
| 76 | + <!-- border --> |
| 77 | + |
| 78 | +9. Click on **headcount plan** in the mail body and choose **Edit**. |
| 79 | + |
| 80 | + <!-- border --> |
| 81 | + |
| 82 | +10. Replace the link and choose **Save**. |
| 83 | + |
| 84 | + <!-- border --> |
| 85 | + |
| 86 | +11. Choose **Apply**. |
| 87 | + |
| 88 | + <!-- border --> |
| 89 | + |
| 90 | + |
| 91 | +### Configure destinations in SAP Build Process Automation |
| 92 | + |
| 93 | +1. In **SAP Build**, navigate to **Control Tower > Destinations**. |
| 94 | + |
| 95 | + <!-- border --> |
| 96 | + |
| 97 | +2. Choose **Open in BTP Cockpit**. |
| 98 | + |
| 99 | + > This Button is visible if you have a Process Automation Admin role. |
| 100 | +
|
| 101 | + <!-- border --> |
| 102 | + |
| 103 | + You will be navigated to the **Destinations** page of SAP Business Technology Platform. |
| 104 | + |
| 105 | +3. Choose **Create Destination**. |
| 106 | + |
| 107 | + <!-- border --> |
| 108 | + |
| 109 | +4. Add details by referring to the following and choose **Save**. |
| 110 | + |
| 111 | + > - For SAC destination, enter the details: refer to [SAC Base URL](https://help.sap.com/docs/SAP_ANALYTICS_CLOUD/14cac91febef464dbb1efce20e3f1613/3ccfab3348dd407db089accb66cff9a2.html) for URL of the destination. |
| 112 | + - For Success Factor destination, enter the details: refer to [Success Factor URL](https://help.sap.com/docs/SAP_SUCCESSFACTORS_PLATFORM/d599f15995d348a1b45ba5603e2aba9b/af2b8d5437494b12be88fe374eba75b6.html) |
| 113 | + - For URL of the destination: refer to [documentation](https://help.sap.com/docs/build-process-automation/sap-build-process-automation/testing-actions) to add necessary additional properties. |
| 114 | + |
| 115 | + <!-- border --> |
| 116 | + |
| 117 | + <!-- border --> |
| 118 | + |
| 119 | +6. In SAP Build Process Automation, navigate to **Control Tower > Destinations > Add**. |
| 120 | + |
| 121 | + <!-- border --> |
| 122 | + |
| 123 | + <!-- border --> |
| 124 | + |
| 125 | +7. Select the name of the destinations that you created in SAP BTP Cockpit and choose **OK**. |
| 126 | + |
| 127 | + <!-- border --> |
| 128 | + |
| 129 | + <!-- border --> |
| 130 | + |
| 131 | + The Destinations are successfully added to SAP Build Process Automation tenant. |
| 132 | + |
| 133 | +8. Go to the project to create the environment variables of type destination. |
| 134 | + |
| 135 | +9. Navigate to **Manage the project properties > Environment Variables > Create**. |
| 136 | + |
| 137 | + <!-- border --> |
| 138 | + |
| 139 | + <!-- border --> |
| 140 | + |
| 141 | +10. Create Environment Variables of type **Destination**. |
| 142 | + |
| 143 | + <!-- border --> |
| 144 | + |
| 145 | + <!-- border --> |
| 146 | + |
| 147 | + The destinations can be accessed successfully in your Business Process project. |
| 148 | + |
| 149 | +### Release and deploy the project |
| 150 | + |
| 151 | +1. Release the project. |
| 152 | + |
| 153 | + <!-- border --> |
| 154 | + |
| 155 | +2. From the released version of the Business Process project in the Process Builder, choose **Deploy**. |
| 156 | + |
| 157 | + <!-- border --> |
| 158 | + |
| 159 | +3. Choose an **Environment** and select **Deploy**. |
| 160 | + |
| 161 | + <!-- border --> |
| 162 | + |
| 163 | +4. Choose **Deploy**. |
| 164 | + |
| 165 | + <!-- border --> |
| 166 | + |
| 167 | +5. Define the variables by selecting the required destinations created previously and click **Deploy**. |
| 168 | + |
| 169 | + <!-- border --> |
| 170 | + |
| 171 | + You have successfully released and deployed the process and it is ready to consume via APIs. |
| 172 | + |
| 173 | + <!-- border --> |
| 174 | + |
| 175 | + |
| 176 | +### Retrieve information from API trigger |
| 177 | + |
| 178 | +Once you have successfully deployed the business process with an API trigger, you can view the API trigger in the Overview section under the tab Triggers. |
| 179 | + |
| 180 | +<!-- border --> |
| 181 | + |
| 182 | +1. To view the context of the workflow API, navigate to the Lobby by clicking on the SAP logo. |
| 183 | + |
| 184 | + <!-- border --> |
| 185 | + |
| 186 | +2. Choose **Control Tower** > **Environments**. |
| 187 | + |
| 188 | + <!-- border --> |
| 189 | + |
| 190 | +3. Choose the environment in which the project is deployed. |
| 191 | + |
| 192 | + <!-- border --> |
| 193 | + |
| 194 | +4. You can view the trigger in the **Unattended Triggers** tab. Click on **View**. |
| 195 | + |
| 196 | + <!-- border --> |
| 197 | + |
| 198 | + <!-- border --> |
| 199 | + |
| 200 | +--- |
0 commit comments