You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- description --> Use SAP Omnichannel Promotion Pricing to calculate the effective sales price for a product in a specific location by applying promotional rules on top of the regular sales price.
11
11
12
12
## Prerequisites
13
-
- You have registered for a trial account on [SAP BTP](hcp-create-trial-account).
13
+
- You have registered for a trial account on [SAP BTP](hcp-create-trial-account) in the Singapore - Azure region.
14
14
- You should be familiar with the SAP BTP trial landscape and terminology (see [Take a Tour of SAP BTP Trial](cp-trial-quick-onboarding)).
15
15
- You have a subaccount in the Cloud Foundry environment, with Microsoft Azure as provider and the Singapore region (AP21).
16
16
- You have set up SAP Omnichannel Promotion Pricing as described in [Set Up SAP Omnichannel Promotion Pricing](opps-manual-setup)
- How to create a calculation request to determine the effective sales price
25
25
26
-
## Intro
27
-
>This tutorial includes steps and screenshots based on the classic design of the SAP API Business Hub. To use the classic design, navigate to the upper right corner and disable the **New SAP API Business Hub** option.
28
-
<!-- border -->
29
-
30
-
---
31
26
32
27
### Get to know the business scenario
33
28
@@ -62,39 +57,38 @@ For step-by-step instructions, go to the tutorial [Set Up SAP Omnichannel Promot
62
57
<!-- Now that you have created the service instances and corresponding credentials, you can set up the environments in the SAP API Business Hub for each SAP Omnichannel Promotion Pricing service. -->
63
58
With the service instances and corresponding credentials that you set up (as described in [Set Up SAP Omnichannel Promotion Pricing](opps-manual-setup) ), you can set up the environments in the SAP API Business Hub for each SAP Omnichannel Promotion Pricing service.
64
59
65
-
###Data Upload service
60
+
## Data Upload service
66
61
1. Navigate to [SAP Omnichannel Promotion Pricing on SAP API Business Hub](https://api.sap.com/package/OPPS/overview). Log on with the same login information you use for your SAP BTP account.
67
62
68
63
2. Select **Data Upload**.
69
64
70
-
<!-- border -->
71
-
72
-
3. Choose the **Configure Environment** icon.
65
+
<!-- border -->
| Display Name for Environments | Enter any name, for example **`OPPS trial data upload`**.
89
-
| Authentication Type | **`Application Flow`**
90
-
| Client Id | **`clientid`****
91
-
| Secret | **`clientsecret`****
92
-
| Identity Zone | **`identityzone`****
93
-
| region | **`ap21`**
94
-
| Apply this environment to all APIs in this package that are not yet configured |Please make sure that this is NOT selected.
95
-
96
-
* Select **Save this environment for future sessions**.
97
-
* Choose **Save**.
81
+
| Resulting URL | (prefilled)
82
+
| Authentication Type | **`OAuth 2.0 Application Flow`**
83
+
| Client ID | **`your clientid`****
84
+
| Client Secret | **`your clientsecret`****
85
+
| Token URL | (prefilled)
86
+
| Identityzone | **`your identityzone`****
87
+
| Region | **`ap21`**
88
+
| Apply this environment to all APIs in this package that are not yet configured | Make sure that this is NOT selected.
89
+
| Save this environment for future sessions | Make sure that this is selected.
90
+
91
+
* Choose **Configure**.
98
92
99
93
>** From the service key that you have created for the Data Upload service in your SAP BTP account. For a detailed description, go to step 4 in the tutorial [Set Up SAP Omnichannel Promotion Pricing](opps-manual-setup).
100
94

@@ -111,17 +105,16 @@ Having created the trial environments in the SAP API Business Hub, you can now s
111
105
112
106
Navigate to the [Data Upload service of SAP Omnichannel Promotion Pricing on SAP API Business Hub](https://api.sap.com/api/DataUpload/resource). Log on with the same login information that you use for your SAP BTP account.
With this, you uploaded the regular sales price of **10 Euro** for the product **sunglasses** (material number: `CHA2111010`) for the **Heidelberg** store (business unit ID: `FC01`) and the validity period **September 8th, 2020 to September 10th, 2021**.
1.For **API Environment**, select the trial environment you have just created for the Data Upload service.
168
-
2.On the left-hand side, choose **Upload promotions using OAuth2**.
169
-
3.Open the **POST** request `/idocinbound`.
170
-
4.Choose **Try Out**.
171
-
5. For the **Request body**, choose `application/xml`.
172
-
6. Copy the following raw data and paste it into the body:
158
+
1.Navigate to the **Try Out** section.
159
+
2.For **Environment**, select the trial environment you have just created for the Data Upload service.
160
+
3.On the left-hand side, choose **Upload Promotions Using OAuth2**.
161
+
4.Open the **POST** request `/idocinbound`.
162
+
5. For the **Content Type**, choose `XML`.
163
+
6. Copy the following raw data and paste it into the **Body** section:
173
164
```XML
174
165
<?xml version="1.0" encoding="UTF-8"?>
175
166
<_-ROP_-PROMOTION02>
@@ -255,7 +246,7 @@ With this, you uploaded the regular sales price of **10 Euro** for the product *
255
246
</IDOC>
256
247
</_-ROP_-PROMOTION02>
257
248
```
258
-
7. Choose **Execute**.
249
+
7. Choose **Run**.
259
250
8. Make sure you get the HTTP response **200**.
260
251
261
252
With this you uploaded the promotional rule "Buy sunglasses and get 40% off" (promotion ID: `1429`) for the **Heidelberg** store (business unit ID: `FC01`) and the validity period **January 1st, 2021 to January 7th, 2021**.
@@ -266,35 +257,33 @@ With this you uploaded the promotional rule "Buy sunglasses and get 40% off" (pr
266
257
267
258
You can use the **Data Access** service for checking your uploaded data.
268
259
269
-
Navigate to the [Data Access service of SAP Omnichannel Promotion Pricing on the SAP API business Hub](https://api.sap.com/api/OData/resource).
260
+
Navigate to the [Data Access service of SAP Omnichannel Promotion Pricing on the SAP API Business Hub](https://api.sap.com/api/OData/resource).
270
261
271
-
###Check uploaded regular sales price ###
262
+
## Check uploaded regular sales price
272
263
273
-
<!-- border -->
264
+
<!-- border -->
274
265
275
-
<!-- border -->
276
-
277
-
1. For **API Environment**, select your trial environment for the Data Access service.
278
-
2. On the left-hand side, choose `Regular Prices` to read the list of regular sales prices.
279
-
3. Select **Try Out**.
280
-
4. Choose **Execute**.
281
-
5. Make sure you get the HTTP response **200**.
282
-
6. Check the data in the **Response Body**. For this, scroll down in the response body until you find the respective entry.
266
+
1. Navigate to the **Try Out** section.
267
+
2. For **Environment**, select your trial environment you have created for the Data Access service.
268
+
3. On the left-hand side, choose `Regular Price`.
269
+
4. Open the GET request `/BasePrices` to read the list of regular sales prices.
270
+
5. Choose **Run**.
271
+
6. Make sure you get the HTTP response **200**.
272
+
7. Check the data in the **Response Body**. For this, scroll down in the response body until you find the respective entry.
283
273
284
274
<!-- border -->
285
275
286
-
### Check uploaded promotional rule ###
287
-
288
-
<!-- border -->
276
+
### Check uploaded promotional rule
289
277
290
-
<!-- border -->
278
+
<!-- border -->
291
279
292
-
1. For **API Environment**, select your trial environment for the Data Access service.
293
-
2. On the left-hand side, choose `PromotionTexts`.
294
-
3. Select **Try Out**.
295
-
4. Choose **Execute**.
296
-
5. Make sure you get the HTTP response **200**.
297
-
6. Check the data in the **Response Body**. For this, scroll down in the response body until you find the respective entry.
280
+
1. Navigate to the **Try Out** section.
281
+
2. For **Environment**, select your trial environment for the Data Access service.
282
+
3. On the left-hand side, choose `Promotion Texts`.
283
+
4. Open the GET request `/PromotionTexts`.
284
+
5. Choose **Run**.
285
+
6. Make sure you get the HTTP response **200**.
286
+
7. Check the data in the **Response Body**. For this, scroll down in the response body until you find the respective entry.
298
287
299
288
<!-- border -->
300
289
@@ -308,20 +297,19 @@ You can now calculate the effective sales price based on the data you have uploa
308
297
309
298
**Desired Result**: The effective sales price for the sunglasses should be **6 Euro**: 10 Euro (regular sales price) minus 40% discount, as the customer is eligible for the promotion "Buy sunglasses and get 40% off".
310
299
311
-
Let's check if this is the case:
300
+
Let's check if this is the case. Navigate to the [Calculation service on the SAP API Business Hub](https://api.sap.com/api/PriceCalculation/resource).
@@ -351,8 +339,8 @@ Let's check if this is the case:
351
339
</PriceCalculateBody>
352
340
</PriceCalculate>
353
341
```
354
-
355
-
Make sure you get the HTTP response **200**.
342
+
7. Choose **Run**.
343
+
8.Make sure you get the HTTP response **200**.
356
344
357
345
The response should look similar to this:
358
346
```JSON
@@ -527,16 +515,16 @@ The response should look similar to this:
527
515
528
516
529
517
530
-
###What to Do Next ###
518
+
## What to Do Next
531
519
532
520
Navigate to the intermediate group [Set up Complex Promotions with SAP Omnichannel Promotion Pricing](group.opps-complex-promotion) and continue with the next tutorial [Apply Mix-and-Match Promotion with SAP Omnichannel Promotion Pricing](opps-advanced-scenario-mixandmatch).
*[SAP Omnichannel Promotion Pricing on the SAP API Business hub](https://help.sap.com/viewer/0c145d124b784b548b618cda8a5b2aba/Cloud/en-US/67a9da084cf84e058cb3a3911971bdd0.html)
*[SAP Omnichannel Promotion Pricing on the SAP API Business Hub](https://help.sap.com/docs/OPP/7c87270e23c64c2aa922ce297a6df23d/67a9da084cf84e058cb3a3911971bdd0.html?version=Cloud)
540
528
*[Video: SAP Omnichannel Promotion Pricing in a nutshell](https://www.sap.com/assetdetail/2020/07/9060b3a5-a67d-0010-87a3-c30de2ffd8ff.html)
0 commit comments