SAP Crystal Reports: Step-by-Step Guide - How to Create an Invoice

Read this Step-by-Step Guide: Create a report for invoicing (or modify to create statements, shipping documents, etc.) (PDF). Download the Document

PUBLICStep-by-Step Guide:How to Create an InvoiceWith SAP Crystal ReportsSAP Crystal SolutionsSAP Crystal Reports and SAP Crystal Server
© 2025 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 2 / 9Table of Contents1 Create an Invoice with SAP Crystal Reports ......................................................................................................... 32 Connect to the Desired Data Source ........................................................................................................................ 43 Select Desired Report Records .................................................................................................................................. 44 Specify Fields for the Details Section ...................................................................................................................... 45 Create Groups.................................................................................................................................................................... 56 Format and Adjust Report Sections ......................................................................................................................... 67 Build the Invoice Header ............................................................................................................................................... 68 Adjust the Order Header ............................................................................................................................................... 89 Finish the Invoice Footer ............................................................................................................................................... 8
© 2025 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 3 / 91 Create an Invoice with SAP Crystal ReportsOne of the many benefits of a “pixel perfect” reporting tool, such as SAP Crystal Reports, is completefreedom to create a document to your exacting needs. Since it’s so critical to your organization’s bottom line,a custom invoice is the perfect use for Crystal Reports.Using the Blank Report option is the best starting place for an invoice. This document outlines steps to createan invoice using the Ridin Round.xls sample data source. This may be downloaded from https://crystal-reports-downloads.s3.amazonaws.com/Ridin-Round.xlsNote: Steps to create an invoice with your own data source will vary significantly, as specific report designsteps are largely based on the organization of the specific data source.Final Result
© 2025 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 4 / 92 Connect to the Desired Data SourceConnect to the desired data source using steps outlined in the Connecting to a Data Source white paperfound here: https://crystal-reports-downloads.s3.amazonaws.com/Ridin-Round.xlsUsing the Ridin Round.xls sample data source, tables are added and joined as follows (standard inner joinsare used):3 Select Desired Report RecordsFor the Ridin’ Round data source, a record selection formula is added to include only orders placed duringthe last full month (if the report is run anytime on or after the first day of the month, all orders from theprevious month will be included).1. Choose Report à Selection Formulas à Record from the drop-down menus.2. Enter the following formula: {Orders_.Order Date} In LastFullMonth4 Specify Fields for the Details SectionFields from several Ridin Round.xls tables are included in the Details section. These fields refer to individualorder line items within an order.1. Drag the following fields into the Details section from the Field Explorer: OrdersDetail_.Quantity Product_.Product Name OrdersDetail_.Unit Price2. Create a formula to calculate the extended price. Right-click on the Formula Fields section in the FieldExplorer and choose New from the context menu.
© 2025 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 5 / 93. Name the formula Extended Price and type in the following formula text:{OrdersDetail_.Quantity} * {OrdersDetail_.Unit Price}4. Drag the Extended Price formula to the Details section to the right of Unit Price.5. Format Details fields to be more readable:a. Select Quantity and reduce decimal places to zero by clicking in the toolbar twice.b. Select Product Name and widen the field with the sizing handle to avoid truncation of long productnames.c. Add a leading dollar sign to Extended Price by selecting it and clicking the toolbar button6. Save the report. Continue to save the updated report at regular intervals.5 Create GroupsCreate two report groups to organize order details into Customer à Order Number hierarchy.1. Click the Insert Group toolbar button. Choose Customer ID as the group field (choosing a uniquenumeric value, rather than customer name, will separate two customers that may have the same nameinto unique groups).2. Specify the following options on the Insert Group dialog box Options tab to display the CustomerName instead of Customer ID in the group header, and to repeat the customer group header onsubsequent pages if a customer’s orders exceed one page:3. Click the Insert Group toolbar button. Choose Order ID as the group field.4. Click the Insert Group dialog box Options tab. Check Repeat Group Header On Each Page to repeatthe order group header on subsequent pages if a single order exceeds one page.5. Add a subtotal for Extended Price in Group Footer #1 by selecting Extended Price in the Detailssection and clicking the Insert Summary toolbar button. Select Group #1 Customer as theSummary Location.6. Select the just-created subtotal. Add a dollar sign by clicking the toolbar button.