Real-Time Stock Information in ERP
Sana ERP Connector compatibility:
- Microsoft Dynamics 365 Business Central - [Sana ERP connector version 10.0.108 and higher]
- Microsoft Dynamics 365 for Finance and Operations - [Sana ERP connector version 10.0.108 and higher]
- Microsoft Dynamics NAV - [Sana ERP connector version 10.0.108 and higher]
- Microsoft Dynamics AX - [Sana ERP connector version 10.0.108 and higher]
- SAP S/4HANA - [Sana ERP connector version 134 and higher]
When customers add products to the shopping cart and proceed to checkout, Sana Commerce Cloud can show how many units of a product are physically available in stock. If customers need more than is currently available, Sana can display when the missing quantity will be replenished. This helps customers confidently plan their purchases, set clear expectations for estimated delivery dates, and ensure they never miss out on what they need.
Estimated delivery dates can be displayed in the Sana webstore based on the ATP (available-to-promise) / projected available balance inventory and lead time in the ERP system, ensuring the data is accurate and up-to-date.
-
The ATP inventory / projected available balance is used to show the date when the required product quantity will be available, if a customer needs more than what is currently in stock.
-
The Lead time is used to show an approximate date for when the required product quantity is expected to be available, if a customer needs more than what is currently in stock, though the date and quantity are subject to change. The following formula is used to calculate the date:
Current date + Lead time in ERP = Estimated delivery date
The ATP inventory / projected available balance information is the top priority. If it is available in ERP, it is used to show the dates. If ATP inventory is not available, the lead time is used to calculate the date when the product will be restocked and available again.
For more information about how to set up the ATP inventory and lead time in different ERP systems, read the information below.

Real-Time Stock Information Based on Projected Available Balance
The projected available balance is the calculated available inventory. It takes into account how many units of an item are physically available minus quantity on sales orders plus quantity that is planned to be delivered to the warehouse (calculated based on the data in the Item Availability table).
To see the projected available balance for an item, in Microsoft Dynamics NAV click: Sales & Marketing > Inventory & Pricing > Lists > Items. Open a necessary item and at the top of the window, click: Related Information > Item > Item Availability by > Period.
Real-Time Stock Information Based on Lead Time
The estimated delivery date is calculated based on the lead time in ERP using the following formula:
Current date + Lead time in ERP = Estimated delivery date
For example, the current date is September 19, and the lead time set in ERP is 3 days, as a result, the estimated delivery date shown on the product details page will be September 22.
In Microsoft Dynamics NAV click: Sales & Marketing > Inventory & Pricing > Lists > Items. Open a product and on the Replenishment FastTab, use the Lead Time Calculation field to set the lead time for a product. You should use the standard Microsoft Dynamics NAV date formulas in the Lead Time Calculation field. For more information about date formulas in Microsoft Dynamics NAV, see How to: Enter Dates and Times on the Microsoft website.

Real-Time Stock Information Based on Projected Available Balance
The projected available balance is the calculated available inventory. It takes into account how many units of an item are physically available minus quantity on sales orders plus quantity that is planned to be delivered to the warehouse (calculated based on the data in the Item Availability table).
To see the projected available balance inventory for an item, in Microsoft Dynamics 365 Business Central click on the search button and enter Items. Open a necessary item and click: Item > Item Availability by > Period.
Real-Time Stock Information Based on Lead Time
The estimated delivery date is calculated based on the lead time in ERP using the following formula:
Current date + Lead time in ERP = Estimated delivery date
For example, the current date is September 19, and the lead time set in ERP is 3 days, as a result, the estimated delivery date shown on the product details page will be September 22.
In Microsoft Dynamics 365 Business Central click on the search button and enter Items. Open a product and on the Replenishment FastTab, use the Lead Time Calculation field to set the lead time for a product. You should use the standard Microsoft Dynamics 365 Business Central date formulas in the Lead Time Calculation field. For more information about date formulas in Microsoft Dynamics 365 Business Central, see Use Date Formulas on the Microsoft website.

Real-Time Stock Information Based on ATP Inventory
ATP (available-to-promise) is the quantity of a product that is available and can be promised to a customer on a specific date. ATP allows companies to forecast the quantity of products that might be available on a certain date to fulfill the orders customers place.
To see the ATP inventory for a product, in Microsoft Dynamics AX open a necessary product, on the Sell tab, in the Sales order section, click ATP information. Select the site and at the top of the form, click Calculate ATP.
Real-Time Stock Information Based on Sales Lead Time
The estimated delivery date is calculated based on the sales lead time in ERP using the following formula:
Current date + Sales lead time in ERP = Estimated delivery date
For example, the current date is September 19, and the sales lead time set in ERP is 3 days, as a result, the estimated delivery date shown on the product details page will be September 22.
In Microsoft Dynamics AX it is possible to set up the default sales lead time, for a specific product and site.
Set Up a Default Sales Lead Time
In Microsoft Dynamics AX click: Accounts receivable > Setup > Accounts receivable parameters > Shipments. Set the value in the Sales lead time field.
Set Up a Sales Lead Time for a Product
In Microsoft Dynamics AX click: Product information management > Common > Released products. Open a product and at the top of the window click: Manage inventory > Default order settings. On the Sales order tab, select the Override sales lead time checkbox and enter the necessary value in the Sales lead time field.
Set Up Site Specific Sales Lead Time
In Microsoft Dynamics AX click: Product information management > Common > Released products. Open a product and at the top of the window click: Manage inventory > Site specific order settings. On the Sales order tab, select the Override checkbox and enter the necessary value in the Sales lead time field.

Real-Time Stock Information Based on ATP Inventory
ATP (available-to-promise) is the quantity of a product that is available and can be promised to a customer on a specific date. ATP allows companies to forecast the quantity of products that might be available on a certain date to fulfill the orders customers place.
To see the ATP inventory for a product, in Microsoft Dynamics 365 for Finance and Operation open a necessary product, on the Sell tab, in the Sales order section, click ATP information. Select the site and warehouse and at the top of the form, click Recalculate ATP quantity.
Real-Time Stock Information Based on Sales Lead Time
The estimated delivery date is calculated based on the sales lead time in ERP using the following formula:
Current date + Sales lead time in ERP = Estimated delivery date
For example, the current date is September 19, and the sales lead time set in ERP is 3 days, as a result, the estimated delivery date shown on the product details page will be September 22.
In Microsoft Dynamics 365 for Finance and Operations it is possible to set up the default sales lead time, for a specific product and site.
Set Up a Default Sales Lead Time
In Microsoft Dynamics 365 for Finance and Operations click: Accounts receivable > Setup > Accounts receivable parameters > Shipments. Set the value in the Sales lead time field on the Delivery control FastTab.
Set Up a Sales Lead Time for a Product and Site
In Microsoft Dynamics 365 for Finance and Operations click: Product information management > Products > Released products. Open a product and at the top of the window click: Manage inventory > Default order settings. On the Sales order FastTab, enable the option Override sales lead time and enter the necessary value in the Sales lead time field. It can be set for a specific site.

Real-Time Stock Information Based on Purchase / Production Orders (MRP 2)
Estimated delivery dates are displayed in the Sana webstore based on the open purchase and / or production orders in SAP S/4HANA depending on the procurement type of a material. You can configure it on the MRP 2 tab of a material.
The available procurement types are:
-
E: The material is produced in-house. Open production orders are considered to show the estimated delivery dates in the Sana webstore.
SAP S/4HANA identifies the earliest completion date as the estimated delivery date. The quantity available on this date in the open production orders is used as the available quantity.
-
F: The material is produced externally. Open purchase orders are considered to show the estimated delivery dates in the Sana webstore.
SAP S/4HANA selects the earliest delivery date as the estimated delivery date. The quantity available on this date in the open purchase orders is used as the available quantity.
-
Blank (No procurement) or Type X (Both procurement types): Both open purchase orders and production orders are considered to show the estimated delivery dates in the Sana webstore.
SAP S/4HANA selects the earliest delivery / completion date as the estimated delivery date. The quantity available on this date, combining both open purchase orders and production orders, is used as the available quantity.
Real-Time Stock Information Based on Total Replenishment Lead Time (MRP 3)
To calculate the estimated delivery date, you can use Total Replenishment Lead Time on the MRP 3 tab of a material.
The estimated delivery date is calculated using the following formula:
Current date + Total Replenishment Lead Time (MRP3) in SAP S/4HANA = Estimated delivery date
For example, the current date is September 19, and the total replenishment lead time set in ERP is 3 days, as a result, the estimated delivery date will be September 22.
You can show the replenishment dates for a specific plant. Otherwise, it will be taken for the first available plant entry. For more information, see Default Plant.
If the real-time stock information is not shown in shopping cart and checkout in the Sana webstore, it can happen due to the following reasons:
-
There is no connection between Sana and ERP.
-
The ATP / projected available balance information and lead time are not available for the product in ERP.
-
The settings Stock visibility on checkout and Availability date per product line in checkout are not configured in Sana Admin. For more information, see Display Real-Time Stock Information in Shopping Cart and Checkout.