If you have ever opened an invoice and the price did not match what you agreed upon with the customer, you already know the problem. In SAP Business One, the special prices They exist precisely to eliminate that risk: they allow setting individual prices per customer and per item, with validity dates and without depending on emails, Excel, or verbal agreements.
However, many companies do not configure them. They work with a single price list for all customers, manage exceptions manually, and only discover errors after the customer has already complained. Consequently, commercial control stays outside the system and within individuals.
In this tutorial you will learn how to configure SAP Business One special prices from scratch: price lists, customer-specific prices, discount groups, and—most valuable of all—four SQL queries to audit your pricing structure in SQL Server and SAP HANA.
Why special prices are a strategic decision
The pricing logic in SAP B1 is more sophisticated than it seems. For example, the same item can have five different prices depending on the customer, purchase volume, validity period, or sales channel. However, if it is not configured correctly, that control migrates to external tools without traceability.
Special pricing directly impacts: the contribution margin per customer, consistency between quotes and invoices, tax audits, and the customer's perception when they receive a price different from the agreed one. Therefore, mastering this configuration is not just a technical matter: it is a business decision.

Prerequisites
Before starting, you need: administrator access to SAP Business One (version 9.x or higher), access to the Query Manager or the database, at least one configured base price list, and items with prices in the item master data.
Pricing structure in SAP B1: The three levels
To correctly configure SAP Business One special prices, you must first understand how the system prioritizes prices. There are three levels that apply in a cascade:
Level 1: Price Lists
They are the basis of the system. Each item can have a different price in each list. They are configured in Inventory → Price Lists. Lists are assigned to customers, customer groups, or set as the default list. A list can be based on another list with a multiplier factor—for example, a list of distributors at 85% from the general list.
Level 2: Business Partner Special Pricing
They are price exceptions for a specific customer, above (or below) their assigned list. They are configured from the customer profile in Payment Terms → Special Prices, or massively from Inventory → Special Prices → Update Special Prices. They allow defining a fixed price or discount with an effective date.
Level 3: Discount Groups
They allow applying percentage discounts by item groups or brands to customer segments. They are the most scalable way to manage commercial discounts when you have many items and customers.
When SAP B1 calculates the price in a sales document, it applies this priority order: first it looks for a special price for that customer and item; if it does not exist, it applies the customer's price list; and if there is a discount group, it applies the percentage over the list price. In this way, the system automatically resolves the correct price without manual intervention.
Step by step: Set up Price Lists
Access Inventory → Price Lists. Create or edit lists with explicit names—for example: «Retail CLP RRP», «National Distributor USD», «FOB Export». Avoid generic names like «List 1» or «List 2», as they cause confusion with staff turnover.
Each list has a currency and can be based on another list with a factor. Next, assign the correct list to each customer from Business Partners → Customers → Payment Terms → Price List. This step is critical: if the customer is left with the default list, they may receive incorrect prices without anyone noticing.
Step by step: Set up special pricing by customer
For a client who negotiated special terms, you have two options:
Individual option: Open the customer profile → Payment Terms → button Special Prices. Add item by item with price or discount and, optionally, validity dates (from / to).
Bulk option: Go Inventory → Special Prices → Update Special Prices for Business Partners. This option allows batch pricing uploads for multiple customers and items — ideal for annual contracts or seasonal campaigns.
However, the greatest risk of special pricing lies in its lifecycle: agreements expire, but the system does not alert you automatically. That is why the audit queries you will see below are essential.

SQL queries to audit your pricing structure
This is where SAP B1 shows its real potential. With these four queries you can build reports that the standard interface does not offer. The key tables are: OPLN price lists, ITM1 (prices per item and list), SPP1 (special prices per customer) and OCRD (business partners).
All prices of an item across all price lists
This query allows you to see, at a glance, how much an item is worth in each list in the system. It is essential for detecting outdated lists or items without an assigned price.
SQL Server
-- Prices for an item across all price lists
-- Replace [%0] with the item code or use as an interactive query
SELECT
T2.ListNum AS [List No.],
T2.ListName AS [List Name],
T1.ItemCode AS [Item],
T0.ItemName AS [Description],
T1.Price AS [Price],
T2.Currency AS [Currency],
CASE WHEN T1.Price = 0 OR T1.Price IS NULL
THEN 'NO PRICE'
ELSE 'OK'
END AS [Status]
FROM OITM T0
INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN OPLN T2 ON T1.PriceList = T2.ListNum
WHERE T1.ItemCode = '[%0]'
ORDER BY T2.ListNum
SAP HANA
-- Prices for an item in all price lists (SAP HANA)
SELECT
T2."ListNum" AS "List No.",
T2."ListName" AS "List Name",
T1."ItemCode" AS "Item",
T0."ItemName" AS "Description",
T1."Price" AS "Price",
T2."Currency" AS "Currency",
CASE WHEN T1."Price" = 0 OR T1."Price" IS NULL
THEN 'NO PRICE'
ELSE 'OK'
END AS "Status"
FROM OITM T0
INNER JOIN ITM1 T1 ON T0."ItemCode" = T1."ItemCode"
INNER JOIN OPLN T2 ON T1."PriceList" = T2."ListNum"
WHERE T1."ItemCode" = '[%0]'
ORDER BY T2."ListNum""
Query 2: Customers with special prices — including validity status
This query shows you all the special prices in the system along with their validity status. First, it allows you to identify expired agreements that are still being applied without anyone noticing.
SQL Server
-- Special prices for customers with active status
SELECT
T0.CardCode AS [Customer Code],
T0.CardName AS [Customer Name],
T1.ItemCode AS [Item],
T2.ItemName AS [Description],
T1.Price AS [Special Price],
T3.Price AS [Base List Price],
CASE
WHEN T3.Price > 0
THEN CAST(((T3.Price - T1.Price) / T3.Price * 100) AS DECIMAL(10,2))
ELSE 0
END AS [% Actual Discount],
T1.DateFrom AS [Effective From],
T1.DateTo AS [Effective To],
CASE
WHEN T1.DateTo IS NULL THEN 'Permanent'
WHEN T1.DateTo < GETDATE() THEN 'EXPIRED ⚠'
ELSE 'Valid'
END AS [Status]
FROM OCRD T0
INNER JOIN SPP1 T1 ON T0.CardCode = T1.CardCode
INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode
LEFT JOIN ITM1 T3 ON T1.ItemCode = T3.ItemCode
AND T3.PriceList = 1
ORDER BY T0.CardName, T1.ItemCode
SAP HANA
-- Special prices by active customer (SAP HANA)
SELECT
T0."CardCode" AS "Customer Code",
T0."CardName" AS "Customer Name",
T1."ItemCode" AS "Item",
T2."ItemName" AS "Description",
T1."Price" AS "Special Price",
T3."Price" AS "Base List Price",
CASE
WHEN T3."Price" > 0
THEN CAST(((T3."Price" - T1."Price") / T3."Price" * 100) AS DECIMAL(10,2))
ELSE 0
END AS "% Cash Discount",
T1."DateFrom" AS "Effective From",
T1."DateTo" AS "Effective To",
CASE
WHEN T1."DateTo" IS NULL THEN 'Permanent'
WHEN T1."DateTo" < CURRENT_DATE THEN 'EXPIRED'
ELSE 'Valid'
END AS "Status"
FROM OCRD T0
INNER JOIN SPP1 T1 ON T0."CardCode" = T1."CardCode"
INNER JOIN OITM T2 ON T1."ItemCode" = T2."ItemCode"
LEFT JOIN ITM1 T3 ON T1."ItemCode" = T3."ItemCode"
AND T3."PriceList" = 1
ORDER BY T0."CardName", T1."ItemCode""
Query 3: Items for sale without a price in a specific list
One of the most frequent errors: a new item is activated, its price is loaded only in the main list, and it is left without a price in the distributor or export lists. As a result, invoices can come out with a zero price without anyone detecting it until the client calls.
SQL Server
-- Active items without a price or with a zero price in a list
-- Modify AND T1.PriceList = 1 with the price list number you want to audit
SELECT
T0.ItemCode AS [Code],
T0.ItemName AS [Description],
T0.ItmsGrpCod AS [Group],
ISNULL(T1.Price,0) AS [List Price],
CASE
WHEN T1.Price IS NULL THEN 'NO PRICE — does not exist in list'
WHEN T1.Price = 0 THEN 'ZERO PRICE'
END AS [Issue]
FROM OITM T0
LEFT JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode
AND T1.PriceList = 1
WHERE T0.SellItem = 'Y'
AND T0.Canceled = 'N'
AND (T1.Price IS NULL OR T1.Price = 0)
ORDER BY T0.ItmsGrpCod, T0.ItemCode
SAP HANA
-- Active items with no price or a price of zero in a list (SAP HANA)
SELECT
T0."ItemCode" AS "Code",
T0."ItemName" AS "Description",
T0."ItmsGrpCod" AS "Group",
IFNULL(T1."Price", 0) AS "List Price",
CASE
WHEN T1."Price" IS NULL THEN 'NO PRICE — not listed'
WHEN T1."Price" = 0 THEN 'PRICE ZERO'
END AS "Issue"
FROM OITM T0
LEFT JOIN ITM1 T1 ON T0."ItemCode" = T1."ItemCode"
AND T1."PriceList" = 1
WHERE T0."SellItem" = 'Y'
AND T0."Canceled" = 'N'
AND (T1."Price" IS NULL OR T1."Price" = 0)
ORDER BY T0."ItmsGrpCod", T0."ItemCode""
Query 4: Billed Price vs. List Price Audit
This is the most strategic query. It shows recent invoices where the applied price differs from the price on the price list assigned to the customer. However, the differences are not always errors—they can be legitimate special prices or authorized discounts—but all must have a documented explanation.
SQL Server
-- Auditoría: precio facturado vs precio de lista del cliente
-- Filtra facturas del último mes con diferencias superiores a 0.01
SELECT
T0.DocDate AS [Fecha],
T0.DocNum AS [N Factura],
T0.CardCode AS [Cliente],
T0.CardName AS [Nombre],
T1.ItemCode AS [Artículo],
T1.ItemName AS [Descripción],
T1.Quantity AS [Cantidad],
T1.Price AS [Precio Facturado],
T2.Price AS [Precio de Lista],
T1.DiscPrcnt AS [% Dto Aplicado],
CASE
WHEN T2.Price > 0
THEN CAST(((T2.Price - T1.Price) / T2.Price * 100) AS DECIMAL(10,2))
ELSE 0
END AS [Diferencia %],
CASE
WHEN T1.Price > T2.Price * 1.10 THEN 'REVISAR: más de 10% sobre lista'
ELSE 'Normal'
END AS [Estado]
FROM OINV T0
INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN OCRD T3 ON T0.CardCode = T3.CardCode
LEFT JOIN ITM1 T2 ON T1.ItemCode = T2.ItemCode
AND T2.PriceList = T3.ListNum
WHERE T0.DocDate >= DATEADD(MONTH, -1, GETDATE())
AND T0.CANCELED = 'N'
AND T2.Price > 0
AND ABS(T1.Price - T2.Price) > 0.01
ORDER BY T0.DocDate DESC,
ABS(T1.Price - T2.Price) / NULLIF(T2.Price, 0) DESC
SAP HANA
-- Auditoría: precio facturado vs precio de lista del cliente (SAP HANA)
SELECT
T0."DocDate" AS "Fecha",
T0."DocNum" AS "N Factura",
T0."CardCode" AS "Cliente",
T0."CardName" AS "Nombre",
T1."ItemCode" AS "Artículo",
T1."ItemName" AS "Descripción",
T1."Quantity" AS "Cantidad",
T1."Price" AS "Precio Facturado",
T2."Price" AS "Precio de Lista",
T1."DiscPrcnt" AS "% Dto Aplicado",
CASE
WHEN T2."Price" > 0
THEN CAST(((T2."Price" - T1."Price") / T2."Price" * 100) AS DECIMAL(10,2))
ELSE 0
END AS "Diferencia %",
CASE
WHEN T1."Price" > T2."Price" * 1.10 THEN 'REVISAR: más de 10% sobre lista'
ELSE 'Normal'
END AS "Estado"
FROM OINV T0
INNER JOIN INV1 T1 ON T0."DocEntry" = T1."DocEntry"
INNER JOIN OCRD T3 ON T0."CardCode" = T3."CardCode"
LEFT JOIN ITM1 T2 ON T1."ItemCode" = T2."ItemCode"
AND T2."PriceList" = T3."ListNum"
WHERE T0."DocDate" >= ADD_MONTHS(CURRENT_DATE, -1)
AND T0."CANCELED" = 'N'
AND T2."Price" > 0
AND ABS(T1."Price" - T2."Price") > 0.01
ORDER BY T0."DocDate" DESC

Advanced variations and use cases
In addition to the basic configuration, SAP B1 offers variations worth knowing:
Prices effective as of: When setting up a special price, you can define a date range. This is ideal for temporary agreements or pricing campaigns. However, SAP does not alert when a price expires — hence the importance of Query 2 with the EXPIRED filter.
Prices in a different currency: Each price list has its own currency. If your company sells in multiple currencies, you can create specific lists or let SAP convert based on the daily exchange rate. However, the second option can generate discrepancies if the exchange rate fluctuates significantly.
Prices by unit of measure: If you use multiple UoMs (box, unit, pallet), you can define different prices for each one in the same list, which avoids manual conversions and quoting errors.
Bulk price update: For CPI adjustments or list increases, use Inventory → Update Item Prices. You can apply an increase percentage to an entire list or groups of items, without having to edit them one by one.
Best practices and common mistakes
After multiple implementations, these are the most frequent errors:
Error 1 — Price list not assigned to the customer. The client ends up with the default price list, even though they should have the wholesale list. As a result, they receive incorrect prices without anyone noticing until the complaint is made.
Error 2 — Expired special prices still active. Agreements with an expiration date from 6 months ago, but that are still in effect because SAP does not notify of their expiration. Run Query 2 filtered by EXPIRED status at least once a month.
Error 3 — New items without a price in all lists. The item is created, the price is loaded into the main list, and it remains without a price in the secondary lists. Execute Query 3 before activating any new item as a mandatory step in the onboarding process.
Error 4 — Unclear nomenclature in lists. Names like «Lista 1», «Lista 2», «Especial» communicate nothing. When there is staff turnover, no one knows which list corresponds to which channel. Use descriptive names from the beginning: «PVP Retail CLP», «Distribuidor Norte USD».
Best practice — Monthly price audit: Run Query 4 during the first few days of the month for the previous period. Any invoice with a variance greater than 10% must be supported by documented justification. This way, you turn price control into a systematic process.
Best practice — Item activation checklist: Include Query 3 in the new item activation process. Before enabling an item for sales, verify that it has a price in all active price lists. This check prevents the most costly error: invoices with a zero price.
Official SAP resources
To delve deeper into the configuration, see the SAP Business One Help Center in the «Price Lists» section of the Inventory module. SAP Note 1138824 is also useful, as it documents the behavior of special prices in sales documents when multiple conditions exist simultaneously.
Conclusion
SAP Business One special prices are not a configuration detail: they are the backbone of commercial control. When properly configured, the system applies the correct price to every customer, in every document, without manual exceptions or emails saying «I'll send you the price outside the system.».
As a result of implementing these four queries in your monthly routine, you will have real visibility into your pricing structure: which customers have special conditions, whether those conditions are still in effect, which items have missing prices, and whether the invoiced prices match what was agreed upon.
That level of control is what separates companies that trust their ERP from those that use it merely as a ledger. If you want to go further—with automatic alerts for out-of-range prices and customer margin control dashboards—that content is available to members of the Strategic Circle at hectorpincheira.com.




