Pricing Calculation

WATCH THE VIDEO

To set up pricing conditions for the Sana webstore, open the Webstore Configuration Sana app in the SAP Fiori launchpad. Then, select the necessary webstore and click Edit. Open Pricing and Payment Settings.

Those pricing conditions which are configured on the Pricing Calculation tab are used to show product prices in the Sana webstore from SAP S/4HANA and calculate a shopping cart for a customer including discounts, taxes, extra charges, shipping and payment costs.

The product price and discounts are shown on the product details page using the Product price and Product discounts content elements.

The table below provides the description of the fields on the Pricing Calculation tab.

Field

Description

SANA Condition Class

This list represents the pricing logic which can be used from SAP S/4HANA in the Sana webstore. These can be product prices, discounts, taxes, service charges, etc. Select the Sana condition type and map it to the appropriate condition type in SAP S/4HANA.

SAP Condition Type

Select the appropriate condition type which is used in SAP S/4HANA to set up pricing elements, such as product prices, discounts, taxes, service charges, etc.

Default

NOTE

This option is applicable only to the payment and shipping costs, and discounts configured in Sana Admin.

Sana has its own payment methods, shipping methods and discount codes functionality. The payment and shipping costs, and discounts coming from the Sana webstore are stored in the pricing elements of the sales order header in SAP S/4HANA, on the Conditions tab. The payment and shipping costs, and discounts are stored in the pricing elements of the sales order header with the condition types configured in this table. The SAP condition types for the payment and shipping costs, and discounts coming from the Sana webstore are used as general ledger accounts. For payment costs, shipping costs and discounts coming from the Sana webstore you should define the appropriate SAP condition types and select the Default checkbox.

There are two ways to map condition types for Sana. You can use automated pricing mapping for which you need to map only the Sana-specific conditions that are used for shipping and payment costs, and discounts from Sana Admin, all other available prices and discounts will be automatically calculated by the SAP S/4HANA. Another way to configure pricing is to manually map the conditions between Sana and SAP S/4HANA, in this way only the prices and discounts you need will be calculated for Sana.

Automated Pricing Mapping

The pricing calculation logic in SAP is very flexible and everyone can configure it according to their business needs. Sana can use various condition types in SAP to show product prices in the Sana webstore and calculate a shopping cart for a customer including discounts, taxes, extra charges, shipping and payment costs.

Automated pricing mapping simplifies prices configuration for Sana. With automated pricing mapping, it is not necessary to map all price conditions between Sana and SAP, only the following 4 Sana-specific conditions should be mapped:

  • SANA Shipping Cost

  • SANA Payment Cost

  • SANA Percentage Discount

  • SANA Fixed Amount Discount

Take into consideration that you need to map these conditions only in case you are using them in the Sana webstore.

You can use the automated pricing mapping if:

  • Your pricing logic and structure in SAP are not very complex.

  • You want to use the standard logic of SAP to calculate and show all available prices, discounts, taxes, and extra charges.

If you don’t want to show some prices or discounts from SAP in your Sana webstore, then you shouldn’t use the automated pricing mapping and manually map only those price conditions that you want to use for Sana.

When you use automated pricing mapping, the strikethrough base price or sales price, discount percentage or discount amount are shown on the product details pages and product list pages, but not in the shopping cart. In the shopping cart the total price with already calculated discount is shown. So, if you need to show strikethrough prices, discount amount or discount percentage on all pages, then we recommend to use manual pricing mapping.

Manual Pricing Mapping

If you want to map all the necessary conditions manually, then Automated pricing mapping should be disabled.

When you manually configure pricing, you must correctly and logically map Sana condition classes to the SAP condition types as they are used to calculate and show all prices, discounts, taxes and charges in the Sana webstore.

You can set up as many condition types for pricing calculations as needed for your business.

Below you can see the description of the Sana condition classes and their usage in the Sana webstore.

Base Price

You can use it to show the standard price of a product in the Sana webstore. You can add several SAP condition types for a base price, but you cannot add the base price of a product to different Sana condition types for the same product.

Contract Line Discount

You can use it to calculate the discount, which customers will get, if they fulfill the conditions stated in the quantity contract. For more information, see Sales Agreements.

List Price Discount

You can use it to calculate the customer-specific discount. This discount is shown for a customer on the product list and product details pages in the Sana webstore.

Item Discount

You can use it to calculate a discount for a material. This discount is shown in the shopping cart in the Sana webstore.

SANA Fixed Amount and SANA Percentage Discount

You can use it to calculate a discount which a customer can get using a Sana discount code. In Sana Admin you can create discount codes that can be entered in the shopping cart and give either a percentage or a fixed amount discount on the total order amount. For more information, see Sana Discounts.

You must map SANA Fixed Amount Discount condition class only to the SAP Condition Type of the fixed amount type and the SANA Percentage Discount condition class must be mapped to the SAP condition type of the percentage type. If the Sana Condition Classes (SANA Fixed Amount Discount and SANA Percentage Discount) are mapped to the incorrect SAP Condition Types, then the discount will not work.

Payment Cost

You can use it to calculate payment costs coming from the Sana webstore. In Sana Admin you can set up payment costs for payment methods.

Shipping Cost

You can use it to calculate shipping costs coming from the Sana webstore. In Sana Admin you can set up shipping costs for shipping methods.

Tax

You can use it to calculate different types of taxes (for example domestic, export, departure / destination country taxes, etc.) in the Sana webstore.

See an example of the order details page in the Sana webstore with different prices calculated by SAP S/4HANA (material prices, discounts, freight charge, tax, shipping cost).

See an example of the pricing elements of the sales order in SAP S/4HANA.

Freight / Service Charge

You can use it to calculate the extra fee for some services related to the products purchased, for example for the delivery service or, if a product was packed, for the packaging. If you use service charges in SAP S/4HANA, then when a customer adds some products to the shopping cart in the Sana webstore, and the service charge is calculated in SAP S/4HANA, it will be shown to the customer in the shopping cart.

You can add several SAP Condition Types to the Freight/Service Charge Sana Condition Class on the Pricing Calculation tab, in the Webstore Configuration Sana app in SAP S/4HANA.

If you add two SAP Condition Types in SAP S/4HANA, then two service charges will be shown to the customer in the shopping cart, for example, one for the delivery service, another one for the packaging.

NOTE

It is possible to add multiple service charge conditions with different condition types.

For more information about pricing, see Prices and Discounts.