Items with no price in a price list
Sales items that have a zero price in the chosen price list.
Tool
SELECT T0.ItemCode, T0.ItemName, T2.ListName, T1.Price FROM OITM T0 INNER JOIN ITM1 T1 ON T0.ItemCode = T1.ItemCode INNER JOIN OPLN T2 ON T1.PriceList = T2.ListNum WHERE T0.SellItem = 'Y' AND T0.frozenFor = 'N' AND T1.PriceList = [%0] AND ISNULL(T1.Price, 0) = 0 ORDER BY T0.ItemCode
SELECT T0."ItemCode", T0."ItemName", T2."ListName", T1."Price" FROM OITM T0 INNER JOIN ITM1 T1 ON T0."ItemCode" = T1."ItemCode" INNER JOIN OPLN T2 ON T1."PriceList" = T2."ListNum" WHERE T0."SellItem" = 'Y' AND T0."frozenFor" = 'N' AND T1."PriceList" = [%0] AND IFNULL(T1."Price", 0) = 0 ORDER BY T0."ItemCode"
What this query answers
Before launching a new price list or loading new items, the pricing team wants to catch items that would quote at zero. Running this for the list a sales team uses stops a quotation from going out with a missing price.
Sample output
Illustrative demo values. Your columns are the same; the numbers come from your company.
| ItemCode | ItemName | ListName | Price |
|---|---|---|---|
| A00058 | Monitor Arm Single | Retail Price | 0 |
| A00061 | Docking Station USB-C | Retail Price | 0 |
| A00067 | Headset Wireless | Retail Price | 0 |
SQL Server vs SAP HANA
ISNULL(T1.Price, 0) becomes IFNULL(T1."Price", 0). The parameter [%0] stays without quotes because the price list number is numeric, and the lower-case column must be written "frozenFor" exactly.
Common errors and fixes
- Conversion or invalid column error after entering the parameter: Enter the price list number (ListNum, for example 1), not its name. The parameter is unquoted and compared with ITM1.PriceList, which is numeric.
- Inactive items appear in the list: frozenFor = 'N' excludes items set to Inactive, but an item can also be limited with an Active/Inactive date range. Check validFor and the date fields if you use them.
Need this report built into SAP Business One?
A saved query answers the question once. We build Shopify and WooCommerce integration for SAP Business One: items, stock and prices go to the shop, orders and payments come back through the Service Layer. Or hire a remote SAP Business One developer for the whole job, fixed price per phase.
Related queries
Table reference: OITM table (Items (item master data)) · ITM1 table (Item Prices (per price list)) · OPLN table (Price Lists)
Three steps, no signup
Copy the right version
Use the SQL Server tab for MS SQL databases and the HANA tab for SAP B1 on HANA.
Open Query Generator
In SAP Business One go to Tools → Queries → Query Generator, paste and click Execute.
Save and share
Click Save, pick a category and give the query a name. Your team can run it from Query Manager.
Questions about this tool
How do I run the items with no price in a price list query in SAP Business One?
Copy the version that matches your database, open Tools → Queries → Query Generator, paste it in the SQL box and click Execute. Save it to reuse it later.
Which tables does this query use?
It reads OITM, ITM1, OPLN from the standard SAP Business One schema. No user-defined fields are needed.
What should I enter when the selection window opens?
This query uses parameters: [%0] = price list number. SAP B1 shows a selection window for each one when you run it.
Can this be turned into a dashboard or alert?
Yes. We turn queries into Crystal reports, Excel reports that refresh themselves, SAP B1 alerts or WhatsApp messages for managers.
Built for SAP Business One teams
Need this inside SAP Business One?
We build add-ons, reports and integrations for SAP B1 on SQL Server and HANA. Tell us what you need and get a fixed price, usually within 24 hours.
