Crystal Reports in SAP Business One is the tool that separates companies that report from those that actually inform. If your management still receives screenshots from the Query Manager or unformatted spreadsheets exported to Excel, you are losing credibility with directors, banks, and auditors. Consequently, this tutorial will guide you step by step to create your first professional report: from the database connection to importing the report into the ERP.
The good news is that you don't need to be a programmer. However, you do need to understand three things: how to connect to the database, how to feed the report with a well-constructed query, and how to integrate it into the SAP Business One menu. Next, we will cover all three.
Why you need Crystal Reports in SAP Business One
The Query Manager is great for quick queries. However, it has an obvious ceiling: it doesn't handle corporate headers, visual groupings, charts, or PDF export with controlled design. Therefore, when the recipient of the report is a general manager, a board of directors, or a client, the format matters as much as the data.
Crystal Reports solves exactly that. Furthermore, it comes included with the SAP Business One license (SAP Crystal Reports for SAP Business One version), integrates natively into the ERP menu, and respects user authorizations. As a result, the same report can serve operations, finance, and management without duplicating effort.
In my experience leading implementations, the impact is direct: a well-designed report reduces meetings to clarify figures. This way, the management conversation shifts from arguing whether the number is correct to deciding what to do with it.
Prerequisites before starting
Before opening the tool, verify the following. First, you need SAP Crystal Reports for SAP Business One installed (it comes in the client installation package, Packages folder). Second, the integration add-in (Crystal Reports Integration Package) must be active in your installation. In addition, you require a user with read permissions on the database: SQL Server or SAP HANA depending on your platform.
Finally, be clear about the business question. A report without a purpose is decoration. For this tutorial, we will use a universal case: the report of invoiced sales by customer and item within a date range.
Step-by-step tutorial: your first report
Step 1: Create the database connection
Open Crystal Reports and select the blank report option. Next, in the Database Expert, expand the option to create a new connection. If you are working on SQL Server, choose OLE DB (ADO) and the SQL Server Native Client provider. Conversely, if your SAP Business One runs on HANA, use the ODBC connection with the HDBODBC driver.
Enter the server and credentials, and select your company's database (for example, SBODEMOCL). Then click Finish. This way, Crystal can now see all the ERP tables.
Step 2: Use a Command instead of dragging tables
Here is the advice that separates an amateur report from a professional one. Although Crystal allows you to drag tables and join them visually, that path generates slow and hard-to-maintain reports. Instead, use the Add Command option: you hand Crystal an already optimized SQL query and the report just takes care of the formatting.
This is the base query for our sales report. As always, I am including both versions depending on your platform.
SQL Server
-- Billed sales by customer and item (SQL Server)
SELECT
T0.DocNum AS 'Invoice',
T0.DocDate AS 'Date',
T2.CardCode AS 'Customer Code',
T2.CardName AS 'Customer',
T1.ItemCode AS 'Item',
T3.ItemName AS 'Description',
T1.Quantity AS 'Quantity',
T1.LineTotal AS 'Line Total'
FROM OINV T0
INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode
INNER JOIN OITM T3 ON T1.ItemCode = T3.ItemCode
WHERE T0.CANCELED = 'N'
AND T0.DocDate >= '20260101'
AND T0.DocDate <= '20261231'
ORDER BY T2.CardName, T0.DocDate
SAP HANA
-- Invoiced sales by customer and item (SAP HANA)
SELECT
T0."DocNum" AS "Invoice",
T0."DocDate" AS "Date",
T2."CardCode" AS "Customer Code",
T2."CardName" AS "Customer",
T1."ItemCode" AS "Item",
T3."ItemName" AS "Description",
T1."Quantity" AS "Quantity",
T1."LineTotal" AS "Line Total"
FROM "OINV" T0
INNER JOIN "INV1" T1 ON T0."DocEntry" = T1."DocEntry"
INNER JOIN "OCRD" T2 ON T0."CardCode" = T2."CardCode"
INNER JOIN "OITM" T3 ON T1."ItemCode" = T3."ItemCode"
WHERE T0."CANCELED" = 'N'
AND T0."DocDate" >= '2026-01-01'
AND T0."DocDate" <= '2026-12-31'
ORDER BY T2."CardName", T0."DocDate"

Step 3: Design the report layout
With the created Command, the fields appear in the Field Explorer. Now drag each field to the Details section. Next, organize the visual structure: in the Report Header, place your company logo and the title; in the Page Header, the column labels; and in the Report Footer, the grand totals.
Then create a group by customer: Insert menu, Group option, and select the Customer field. In this way, the report will show sales grouped by each customer with their subtotal. Also, add a summary field (Insert, Summary) on Line Total to calculate the sum per group. As a result, you get automatic subtotals without writing a single formula.
Step 4: Add dynamic parameters
A report with fixed dates is born obsolete. Therefore, the next level is to incorporate parameters that the user fills in when executing it. In the Command panel, create two parameters: DateFrom and DateTo, both of type date. Afterward, modify the WHERE clause of your query to use them.
SQL Server
-- Filter with Crystal parameters (SQL Server)
WHERE T0.CANCELED = 'N'
AND T0.DocDate >= {?FechaDesde}
AND T0.DocDate <= {?FechaHasta}
SAP HANA
-- Filter with Crystal parameters (SAP HANA)
WHERE T0."CANCELED" = 'N'
AND T0."DocDate" >= {?FechaDesde}
AND T0."DocDate" <= {?FechaHasta}
An important detail: if the report is going to be executed inside SAP Business One, you can use special tokens like DocKey@ for document reports (for example, an invoice layout). However, for analytical reports like this one, standard date parameters work perfectly and the ERP will prompt for them in a native window.
Step 5: Import the report into SAP Business One
This step is the one that turns your .rpt file into a corporate tool. Inside SAP Business One, go to Administration, Custom Reports (or use the Report and Layout Manager under Administration, Setup, General). Next, press the Import button, select your .rpt file, and assign the menu where you want it to appear.
As a result, any authorized user will be able to run the report from the ERP main menu, complete the date parameters, and export it to PDF or Excel with the formatting intact. In this way, the knowledge no longer resides on the analyst's computer and becomes a company asset.

Variations and use cases
Once the workflow is mastered, applications multiply. For example, you can create a custom invoice format that replaces the standard layout, with highlighted payment terms and barcodes. Likewise, a commission report that the sales manager runs at the end of each month. Or, a project status report that combines sales order, delivery, and invoicing data into a single view.
Additionally, Crystal allows subreports: embedding one report inside another. Consequently, you can build a customer profile that shows their master data, current account, and latest purchases all on a single page. That type of integrated view is impossible in the Query Manager.
Best practices and common mistakes
First, always use Command with native SQL instead of joining tables visually. Performance and maintainability will thank you for it. Second, always filter out canceled documents (CANCELED = ‘N’); it is the most frequent mistake and distorts all totals. Third, test your queries in the Query Manager or SQL Server Management Studio before taking them to Crystal: debugging SQL inside Crystal is slow.
On the other hand, avoid the mistake of designing based on production during working hours with heavy, unfiltered queries. Also, document each report: name, purpose, owner, and date of last modification. Finally, version your .rpt files in a controlled folder; an overwritten report without a backup is a real loss of knowledge.
Official SAP Resources
To go deeper, SAP maintains official documentation: the guide How to Work with SAP Crystal Reports in SAP Business One available on the SAP Help Portal (help.sap.com), the courses on the SAP Business One Academy YouTube channel, and the SAP Community (community.sap.com), where real integration and performance cases are discussed.
Conclusion: from data to the decisive report
Crystal Reports in SAP Business One is not a cosmetic topic: it is the difference between delivering data and delivering packaged decisions. In this tutorial you built the connection, the dual query for SQL Server and HANA, the layout with groups and subtotals, the dynamic parameters, and the import into the ERP. Therefore, you already have the complete end-to-end workflow.
The next step is yours: choose the report that hurts your management the most today and build it this week. If this content brought you value, share the article with your team and join the Strategic Circle at hectorpincheira.com, where every week I publish practical SAP Business One tutorials with ready-to-use code.




