Apply a Simple Promotion with SAP Omnichannel Promotion Pricing
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.
Use the Calculation service of SAP Omnichannel Promotion Pricing in your sales channel applications to calculate effective sales prices by applying promotional rules. These rules can be applied to single products, product combinations and transactions. With this, you can drive a seamless buying experience because you provide the same calculation based on the same promotion and price data across all sales channels.
Business goal: You want to promote the product sunglasses (material number: CHA2111010) in your Heidelberg store (business unit ID: FC01) to free up space for the next season. You have created the following promotion: Buy sunglasses and get 40% off.
The regular sales price for the sunglasses is 10 Euro.
Your promotion is valid from January 1st, 2021 until January 7th, 2021.
Your customer put sunglasses in the shopping cart.
You call the Calculation service with the shopping cart information (store, product, date, time).
The Calculation service calculates the effective sales price (regular sales price minus promotional discount) for the sunglasses.
Step 2Create environments in SAP Business Accelerator Hub
+
With the service instances and corresponding credentials that you set up (as described in Set Up SAP Omnichannel Promotion Pricing ), you can set up the environments in the SAP Business Accelerator Hub for each SAP Omnichannel Promotion Pricing service.
In the following screen, enter the information from the table below:
Field Name
Value
Display Name
Enter any name, for example OPPS trial data upload.
Starting URL
https://data-upload.api.ap21.opps-trial.cloud.sap
Resulting URL
(prefilled)
Authentication Type
OAuth 2.0 Application Flow
Client ID
your clientid **
Client Secret
your clientsecret **
Token URL
(prefilled)
Identityzone
your identityzone **
Region
ap21
Save for future sessions
Make sure that this is selected.
Apply this environment to all non-configured APIs in this package
Make sure that this is NOT selected.
Choose Configure.
** 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.Service Key
You have now created the trial environment for the Data Upload service in the SAP Business Accelerator Hub. Repeat the sub-steps 1-5 for the Data Access service and the Calculation service, using the credentials from their respective service keys.
Step 3Upload master data
+
Having created the trial environments in the SAP Business Accelerator Hub, you can now start uploading the master data with the Data Upload service. The uploaded master data serves as the basis for calculating the effective sales price in step 5 of this tutorial.
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.
For Environment, select the trial environment you have just created for the Data Upload service.
On the left-hand side, choose Upload Promotions Using OAuth2.
Open the POST request /idocinbound.
Copy the following raw data and paste it into the Body section:
XML
<?xml version="1.0" encoding="UTF-8"?><_-ROP_-PROMOTION02><IDOCBEGIN="1"><EDI_DC40SEGMENT="1"><IDOCTYP>/ROP/PROMOTION02</IDOCTYP></EDI_DC40><_-ROP_-E1_PROMOTIONSEGMENT="1"><CHANGED_ON>20200717080000</CHANGED_ON><CHANGE_INDICATOR>U</CHANGE_INDICATOR><EFFECTIVE_DATE>20210101000000</EFFECTIVE_DATE><EXPIRY_DATE>20210107235959</EXPIRY_DATE><EXTERN_PROMO_ID>000000000000000000000000000000000006</EXTERN_PROMO_ID><LOGSYS>ABCCLNT999</LOGSYS><MIN_PPS_RELEASE>0</MIN_PPS_RELEASE><OFFER_ID>6CAE8B74B1721EE5AD8B6CF0A5B310A9</OFFER_ID><ORIGIN>01</ORIGIN><PROMOTION_ID>1429</PROMOTION_ID><PROMOTION_TYPE>01</PROMOTION_TYPE><STATUS_TCD>AC</STATUS_TCD><_-ROP_-E1_PROMOTION_BUSEGMENT="1"><BU_ID>FC01</BU_ID><BU_TYPE>1040</BU_TYPE></_-ROP_-E1_PROMOTION_BU><_-ROP_-E1_PROMOTION_RULESEGMENT="1"><ELIGIBILITY_ID>1180547</ELIGIBILITY_ID><PRICE_RULE_ID>1180547</PRICE_RULE_ID><PROMO_RULE_ID>1180547</PROMO_RULE_ID><RESOLUTION>0</RESOLUTION><SALE_RETURN_TCD>00</SALE_RETURN_TCD><SEQUENCE>10</SEQUENCE><_-ROP_-E1_ELIGIBILITYSEGMENT="1"><EFFECTIVE_DATE>20210101000000</EFFECTIVE_DATE><ELIGIBILITY_ID>1180547</ELIGIBILITY_ID><EXPIRY_DATE>20210107235959</EXPIRY_DATE><INTERVAL_AMT>0.00000</INTERVAL_AMT><INTERVAL_QTY>1.000</INTERVAL_QTY><ITEM_ID>CHA2111010</ITEM_ID><LIMIT_AMT>0.00000</LIMIT_AMT><LIMIT_QTY>9999999999.000</LIMIT_QTY><MERCH_SET_ID>0</MERCH_SET_ID><PARENT_ELIGIB_ID>1180547</PARENT_ELIGIB_ID><PROMO_RULE_ID>1180547</PROMO_RULE_ID><ROOT_ELIGIB_ID>1180547</ROOT_ELIGIB_ID><STATUS_TCD>AC</STATUS_TCD><THRESHOLD_AMT>0.00000</THRESHOLD_AMT><THRESHOLD_QTY>1.000</THRESHOLD_QTY><THRESHOLD_TCD>QUTI</THRESHOLD_TCD><TRANS_TOTAL_AMT>0.00000</TRANS_TOTAL_AMT><TYPE_CODE>ITEM</TYPE_CODE><UOM_ISO_CODE>PCE</UOM_ISO_CODE></_-ROP_-E1_ELIGIBILITY><_-ROP_-E1_PRICE_RULESEGMENT="1"><CALCULATION_BASE>00</CALCULATION_BASE><CALC_BASE_SEQUENCE>1-</CALC_BASE_SEQUENCE><CONSIDER_PREVIOUS_RULES>X</CONSIDER_PREVIOUS_RULES><COUPON_VALIDITY>0</COUPON_VALIDITY><CURRENCY_ISO_CODE>EUR</CURRENCY_ISO_CODE><DISC_METHOD_TCD>00</DISC_METHOD_TCD><EX_PRICE_RULE_ID>0000000000000000000</EX_PRICE_RULE_ID><ITEM_METHOD>00</ITEM_METHOD><MAM_LIMIT_CNT>0.000</MAM_LIMIT_CNT><NEW_PRICE_AMT>0.00000</NEW_PRICE_AMT><NEW_SET_PRCE_AMT>0.00000</NEW_SET_PRCE_AMT><PRICE_MODIF_AMT>0.00000</PRICE_MODIF_AMT><PRICE_MODIF_CODE>RP</PRICE_MODIF_CODE><PRICE_MODIF_PERC>40.000</PRICE_MODIF_PERC><PRICE_RULE_ID>1180547</PRICE_RULE_ID><ROUNDING_METHOD>00</ROUNDING_METHOD><ROUND_DECIMALS>2</ROUND_DECIMALS><ROUND_DESTINATION>1</ROUND_DESTINATION><RULE_CTRL_CODE>PO</RULE_CTRL_CODE><STATUS_TCD>AC</STATUS_TCD><TYPE_CODE>RB</TYPE_CODE></_-ROP_-E1_PRICE_RULE></_-ROP_-E1_PROMOTION_RULE><_-ROP_-E1_PROMOTION_TEXTSEGMENT="1"><DESCRIPTION>Buy product sunglasses for 40% off.</DESCRIPTION><NAME>CHA_EXAMPLE1</NAME><SPRAS_ISO>EN</SPRAS_ISO></_-ROP_-E1_PROMOTION_TEXT></_-ROP_-E1_PROMOTION></IDOC></_-ROP_-PROMOTION02>
Below the body, choose XML as the content type.
Choose Run.
Make sure you get the HTTP response 200.
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.
Step 4Check uploaded master data
+
You can use the Data Access service for checking your uploaded data.
You can now calculate the effective sales price based on the data you have uploaded in the previous steps.
Scenario: A customer has one pair of sunglasses (material number: CHA2111010) in the shopping cart. The customer wants to purchase it on January 5th, 2021 in the Heidelberg store (business unit ID: FC01).
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”.
Share feedback on this tutorial or join the conversation in SAP Community.
Submit detailed feedbackDiscuss in Community
Steps
Step 1 of 8
1. Get to know the business scenario2. Create environments in SAP Business Accelerator Hub3. Upload master data4. Check uploaded master data5. Check uploaded promotional rule6. Calculate the effective sales price7. What to do next8. Additional information
Joule
AI Notice
Joule is an AI assistant. Generative AI may produce inaccurate, incomplete, or biased information. Always verify important details before acting on them.
Conversations are sent to SAP-hosted large language models for processing. Do not include personal data, credentials, or confidential information in your messages.
Joule's responses are based on the SAP tutorial catalog and may not reflect the latest product changes. For authoritative guidance, consult the linked tutorials and official SAP documentation.