SAP Business One – Inventory Counting Templates and Import Process

This document explains how to enable and use import templates for Inventory Counting transactions in SAP Business One, as well as how to create counting sheets, capture physical count quantities in Excel, and import the results back into SAP B1.

Creating an Inventory Counting Import Template

Step 1: Open the Inventory Counting Window

Navigate to: Main Menu > Inventory > Inventory Transactions > Inventory Counting Transactions > Inventory Counting

Step 2: Create a New Import Template

Click the Add Item button and select Import Items.

Step 1 and 2

Step 3: Prepare Your Excel Template

Your source file must begin with the ItemCode field, which is mandatory.

If you are unsure which columns to include or the order in which they should appear, you can use the sample layout below as a reference.

Prepare Template

Important Requirements

Before the file can be imported into SAP Business One:

Save as TXT

Step 4: Save the Template

Once you are satisfied with the template structure, save it for future use.

Save Template

If you maintain multiple import templates, you can later select the desired template by clicking Use Data Template and choosing the appropriate one.

Select Template

Creating Counting Sheets and Preparing Import Files

For organizations that do not use a Warehouse Management System (WMS) or mobile devices directly connected to SAP Business One, Excel-based counting sheets can simplify the physical inventory count process.

Pro Tip: Get Our Custom Counting Script

Would you like to streamline your counts? We can share the custom SQL query script referenced here for free with our clients and prospects.

To request your copy, please email us at sales@b1smartclient.com and include your contact information and company name.

A custom query report can be used to generate a counting sheet. Your counting team can then enter the physically counted quantities in the Counted Qty column.

Counting Sheet

Exporting the Query Results

You can export the query results to Excel by:

Option 1 – Export to Excel: Click the Excel icon within SAP Business One.

Excel Export Icon

Option 2 – Copy the Table: Right-click anywhere within the query results and select Copy Table. Then paste the data into Excel.

Copy Table

Handling Inventory Discrepancies and Missing Batches

If physical inventory exists but is not fully represented in SAP Business One, you may need to add additional rows to the spreadsheet.

Example: Suppose Item "AAAA" physically contains Batch "XXXX" with 10 cases, but SAP Business One only contains quantities for Batches "MMMM" and "NNNN". In this scenario, add a new row to the spreadsheet for the missing batch information so it can be included in the inventory count.

Finalizing the Import File

After physical counts have been entered:

Your inventory counting file is now ready for import.

Finalizing File
Ready for Upload

Importing the Counted Quantities into SAP Business One

Step 1: Open Inventory Counting
Navigate to: Main Menu > Inventory > Inventory Transactions > Inventory Counting Transactions > Inventory Counting

Step 2: Select Import Items
Click the Add Item button and choose Import Items.

Import Steps

Step 3: Select the Import Template
Choose the template you previously created.

Select Template

Step 4: Select the File to Import
Click File to Import and browse to your prepared .TXT file.

Select File

Step 5: Execute the Import
Click Import. If the import is successful, you will receive a green confirmation message.

Execute Import
Success Message

Common Import Error

You may encounter the following message:

"Line 1; item code 'IAAAAA' in warehouse 'XX' bin location 'YYYYYY' already added to other open inventory counting documents."

Error Message

What This Means: The item, warehouse, bin, and batch combination already exists in another open Inventory Counting document. In this situation, verify whether the existing counting document is valid.

← Back to Community Cases