The invisible problem in your imports
When a company imports merchandise, the actual cost of each product does not end at the foreign supplier's price. Therefore, there is a set of additional expenses—international freight, insurance, customs duties, customs brokerage, and warehousing—that in many companies are simply recorded as period expenses and never end up impacting the actual cost of the inventory.
As a result, your profit margins are misleading. You sell thinking the product cost you X, when in reality it cost you X+15% or X+25%. However, you don’t notice this error at the time of sale: you notice it—if you notice it at all—when you analyze profitability and the numbers don’t add up.
SAP Business One has a specific functionality to solve this problem: the module of Import Costs (known in English as Landed CostsIn this SAP Business One import costs tutorial, you will learn how to configure and use it correctly, step by step.

Why import costs affect your actual profitability
When you do not correctly distribute the costs associated with an import, at least three concrete problems occur in your company.
First, the unit cost of each item is undervalued in inventory. This means that when you sell, the system calculates a margin that is not real, but artificial. Consequently, you could be making pricing decisions based on incorrect information.
Furthermore, the Income Statement is distorted: customs and freight expenses appear as period costs, instead of being absorbed into the cost of sales at the time the imported items are sold. Therefore, when the product is sold the following month—or the following year—the recorded cost does not reflect economic reality.
However, the greatest risk lies in decision-making. If your sales manager believes the margin on an imported product is 40% but it’s actually 22% once you factor in import costs, you’re likely pushing discounts and volumes that are destroying profitability without even realizing it.
Prerequisites before using the Import Costs module
Before starting, verify that you have the following configured in SAP Business One:
- Items with FIFO or Average Cost valuation methodthe Landed Costs module updates the inventory cost according to the method configured in the item master data.
- Registered service provideryou need the customs broker, shipping line, or other providers as a vendor in the system, since the import cost is associated with their invoice.
- Goods Receipt PO createdthe correct flow is Purchase Order → Goods Receipt → Import Cost. Without the receipt, you cannot distribute costs.
- Configured expense accountsen Administration > Settings > Purchasing > Import Costs You must define the general ledger accounts for each type of expense.
Step by step: how to record an import cost in SAP Business One
Step 1: Access the Import Costs module
First, navigate to the menu Purchases → Import Costs. If you do not see this option, verify that your user has the corresponding permissions in Administration > User Permissions. This module is available starting from SAP Business One version 8.82 and later.
Step 2: Select the service provider
Next, in the «Vendor» field, select the entity that issued the invoice for your import expenses—for example, the customs broker or the shipping line. This is the vendor you need to pay for the additional expenses, not the actual merchandise supplier.
Step 3: Link the merchandise receipt
At the bottom of the document, click «Copy from GRPO» and select the goods receipt containing the imported items. In this way, the system will know exactly which items will receive the additional cost distribution.

Step 4: Record additional costs
in the tab «Costs», enter each expense concept with its corresponding amount. The most common concepts are:
- International freightwhat the shipping company or courier charged
- Cargo insurancebefore the transport insurance premium
- Customs dutiescustoms duties applied at destination
- Customs broker fees: the customs broker's service
- Warehousing and handlinghandling and temporary storage costs
Step 5: Configure the distribution method
For each cost concept, SAP Business One allows you to choose how to distribute that expense among the items on the goods receipt. The available methods are as follows:
- By quantitydistribute in proportion to the number of units of each item
- By volumeuseful when items have different physical volumes
- By weight: distribute according to the declared weight of each item
- Pleasedistributes in proportion to the purchase price of each item
- Equalequal amounts for each line (less recommended)
- Manualyou assign specific amounts item by item
As a result of this configuration, SAP B1 will automatically calculate the additional cost that must be added to the unit cost of each item.
Step 6: Add the document
Once the layout is verified in the preview, click «Add». At that moment, the system updates the inventory cost of each item included in the receipt, records the corresponding accounting entries, and generates the Import Cost document ready to be linked to a Vendor Invoice.
SQL queries to check import costs in SAP Business One
Once the import cost is registered, it is essential to validate that the values were correctly distributed. Below you will find two queries to verify the landed costs applied to each item. In both cases, the key tables are OIPF Import Cost document header IPF1 (article lines with the assigned cost).
Import costs by receipt and item
SQL Server
-- SAP Business One Import Costs by Item (SQL Server)
SELECT
T0.DocNum AS [Import Cost No.],
T0.DocDate AS [Date],
T0.CardName AS [Service Provider],
T1.ItemCode AS [Item Code],
T1.Dscription AS [Description],
T1.Quantity AS [Quantity],
T1.Price AS [Original Unit Cost],
T1.LndCstCnt AS [Assigned Landed Cost],
(T1.Price + T1.LndCstCnt) AS [Total Unit Cost],
CASE WHEN T1.Price > 0
THEN ROUND((T1.LndCstCnt / T1.Price) * 100, 2)
ELSE 0 END AS [% Landed Cost]
FROM OIPF T0
INNER JOIN IPF1 T1 ON T0.DocEntry = T1.DocEntry
WHERE T0.DocDate >= DATEADD(MONTH, -3, GETDATE())
ORDER BY T0.DocDate DESC, T1.ItemCodeSAP HANA
-- SAP Business One Import Costs by Item (SAP HANA)
SELECT
T0."DocNum" AS "Import Cost No.",
T0."DocDate" AS "Date",
T0."CardName" AS "Service Provider",
T1."ItemCode" AS "Item Code",
T1."Description" AS "Description",
T1."Quantity" AS "Quantity",
T1."Price" AS "Original Unit Cost",
T1."LndCstCnt" AS "Assigned Landed Cost",
(T1."Price" + T1."LndCstCnt") AS "Total Unit Cost",
CASE WHEN T1."Price" > 0
THEN ROUND((T1."LndCstCnt" / T1."Price") * 100, 2)
ELSE 0 END AS "% Landed Cost"
FROM OIPF T0
INNER JOIN IPF1 T1 ON T0."DocEntry" = T1."DocEntry"
WHERE T0."DocDate" >= ADD_MONTHS(CURRENT_DATE, -3)
ORDER BY T0."DocDate" DESC, T1."ItemCode""Query 2: Cumulative impact of import costs by item (last 12 months)
SQL Server
-- Impact of landed costs on average cost per item - last 12 months (SQL Server)
SELECT
T0.ItemCode AS [Code],
T0.ItemName AS [Description],
T0.AvgPrice AS [Current Average Cost],
SUM(T1.LndCstCnt * T1.Quantity) AS [Cumulative Total Landed Costs],
SUM(T1.Quantity) AS [Units Received],
CASE WHEN SUM(T1.Quantity) > 0
THEN ROUND(SUM(T1.LndCstCnt * T1.Quantity) / SUM(T1.Quantity), 4)
ELSE 0 END AS [Average Landed Cost per Unit],
CASE WHEN T0.AvgPrice > 0
THEN ROUND(
(CASE WHEN SUM(T1.Quantity) > 0
THEN SUM(T1.LndCstCnt * T1.Quantity) / SUM(T1.Quantity)
ELSE 0 END / T0.AvgPrice) * 100, 2)
ELSE 0 END AS [% Landed Cost per Cost]
FROM OITM T0
INNER JOIN IPF1 T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN OIPF T2 ON T1.DocEntry = T2.DocEntry
WHERE T2.DocDate >= DATEADD(YEAR, -1, GETDATE())
AND T1.LndCstCnt > 0
GROUP BY T0.ItemCode, T0.ItemName, T0.AvgPrice
ORDER BY [% Landed Cost s/Costo] DESCSAP HANA
-- Impact of landed costs on average cost per item - last 12 months (SAP HANA)
SELECT
T0."ItemCode" AS "Code",
T0."ItemName" AS "Description",
T0."AvgPrice" AS "Current Average Cost",
SUM(T1."LndCstCnt" * T1."Quantity") AS "Cumulative Total Landed Costs",
SUM(T1."Quantity") AS "Units Received",
CASE WHEN SUM(T1."Quantity") > 0
THEN ROUND(SUM(T1."LndCstCnt" * T1."Quantity") / SUM(T1."Quantity"), 4)
ELSE 0 END AS "Estimated Landed Cost per Unit",
CASE WHEN T0."AvgPrice" > 0
THEN ROUND(
(CASE WHEN SUM(T1."Quantity") > 0
THEN SUM(T1."LndCstCnt" * T1."Quantity") / SUM(T1."Quantity")
ELSE 0 END / T0."AvgPrice") * 100, 2)
ELSE 0 END AS "% Landed Cost per Cost"
FROM OITM T0
INNER JOIN IPF1 T1 ON T0."ItemCode" = T1."ItemCode"
INNER JOIN OIPF T2 ON T1."DocEntry" = T2."DocEntry"
WHERE T2."DocDate" >= ADD_YEARS(CURRENT_DATE, -1)
AND T1."LndCstCnt" > 0
GROUP BY T0."ItemCode", T0."ItemName", T0."AvgPrice"
ORDER BY "% Landed Cost s/Costo" DESCThe first query shows you, document by document, how much landed cost was allocated to each item in each receipt and what percentage it represents of the original cost. The second one, however, gives you an accumulated strategic view: how much the import cost represents as a percentage of each item's current average cost, allowing you to identify which products have their margins most distorted by import expenses.

Variations and frequent use cases
Case 1: Import with multiple merchandise receipts
Sometimes, a single container—and therefore a single customs broker invoice—includes products that were received in two different GRPOs, for example, because the items were entered into different warehouses. In this case, in the «Copy from GRPO» section, you can select more than one receipt. This way, the import cost is distributed proportionally among all items from both receipts according to the method you have configured.
Case 2: Foreign currency import with local expenses
If your company imports in dollars or euros, the Purchase Order can be in foreign currency, but local customs expenses are normally in local currency. SAP B1 allows you to mix currencies within the import costs document. However, you must have the daily exchange rate correctly configured in the system before adding the document. Otherwise, the converted amounts can generate accounting differences that are difficult to track.
Case 3: Estimated import costs before receiving the invoice
There are situations where, at the time of receiving the merchandise, you still do not have the final invoice from the customs broker. In that case, you can record a provisional estimated cost. Later, when the actual invoice arrives, you create an adjustment note. However, this process requires close coordination between the purchasing and accounting departments to avoid generating cost differences that incorrectly impact inventory.
Best practices and common mistakes in Landed Costs
After implementing this module in various companies, I have identified the most frequent mistakes you must avoid.
Error 1: Record the landed costs after selling the items. If you have already sold some of the items from the receipt before recording the import cost, SAP B1 can generate accounting discrepancies or simply fail to update the cost of the items already sold. Therefore, the correct process is invariable: receive → record landed costs → sell.
Error 2: Use the «Equal» distribution method for all costs. Consequently, high-value items are undercosted and economical items are overcosted. The best practice is to use «By value» for international freight and «By weight» or «By volume» for warehousing and handling.
Error 3: Assign the import cost to the merchandise supplier. Some users make the mistake of using the same foreign supplier for the landed costs document. However, this is incorrect: the supplier must be the entity that charges you for the logistics service, not the one that sells you the product.
Best practice: create repeatable cost templates. If your imports are regular and the expense items are always the same—freight, insurance, customs, agent—you can prepare a baseline template for your purchasing team to replicate for each import. This not only reduces errors, but also speeds up the process and standardizes accounting.
Official SAP resources
To dive deeper into this module, you can consult the following resources:
- SAP Help Portal: search «Landed Costs» in help.sap.com/docs/SAP_BUSINESS_ONE for the complete technical documentation on the module.
- SAP Communityen community.sap.com you will find specific technical discussions about Landed Costs in SAP B1, including the OIPF and IPF1 tables with their most relevant fields.
- SAP Learning Hub: available to partners and customers with access to the Learning Hub, it includes courses on the Purchasing and Cost Management module in SAP Business One.
Conclusion: from ignored expense to real cost
The SAP Business One Import Costs module is not complex to use, but it does demand process discipline. First, the workflow must be followed without exceptions: receive the goods, record the import costs before selling, and then validate with queries that the values were correctly distributed.
As a result, you will have a valued inventory with the actual acquisition cost—not just the foreign supplier's price. This means your profit margins will reflect the reality of the business and your Income Statement will be clean: import expenses will go directly to the cost of goods sold when the items are sold, rather than distorting the period's operating result.
If you managed to integrate the Landed Costs module into your purchasing process, the natural next step is to build a product line profitability dashboard that includes these costs. That analysis—with its complete SQL queries and SAP B1 visualization—is available to members of the Strategic Circle at hectorpincheira.com.




