Skip to main content
Version: 1.00

Scenario 1: Goods Receipt PO Printed from SAP Business One

Printing a Goods Receipt Purchase Order (GRPO) in SAP Business One requires proper configuration of printer settings, templates, and mapping parameters. In this guide, we will walk through the step-by-step process to configure the system for printing GRPOs, ensuring that they are also saved as PDF files.


How-to: Step-by-Step Configuration

1. Configure Printer

SAP Business One supports saving labels as PDFs when using a Crystal printer type.

Sample Printer Configuration:

  • Printer Code: test1
  • Printer Type: Crystal
  • Printer Name: test1
  • Localization: CT

With the following parameters, define

  • SaveAsPdf: True
  • PhysicalName: Send to OneNote 16 (one of the printer's names available on this test server)
  • MaxCapacity: 75.

➡️ For more details, refer to the Printer Configuration documentation.

2. Define Label Template

To print GRPO labels, we need to define and assign a Label Template. The template used in this scenario is as follows:

TEMPLATE CODETEMPLATE NAMETEMPLATE DESCRIPTION
GRPOGRPOGRPO

➡️ For more information, see Printer Configuration.

3. Set Printing Rules

The following rules apply to GRPO printing:

  • Requester: SAP
  • Transaction: Goods Receipt PO
  • Employee/User/ItemGroup/Warehouse: All
  • Unit of Measurement: not checked
  • Header: Not checked
  • Template: GRPO

4. Place Label Report

Crystal Reports must be saved in the following directory:

C:\ProgramData\CompuTec\CT Label Printing\Reports\

Note: (Use the installation-specific path if the default wasn't selected.)

The Crystal Report file used in this scenario is as follows:

Crystal Report

Crystal Reports use parameters (e.g., StringPar, NumericPar) which are configured through Mapping.

5. Define Mapping Parameters

Mapping rules define how data is assigned to specific variables within the label layout. The mappings for this scenario are:

NameTypeValue
StringPar3ParameterItem Code (Item Code)
StringPar1ParameterItemName (ItemName)
StringPar4SqlSELECT @DistNumber FROM DUMMY
NumberofCopiesSqlSELECT 5 FROM DUMMY

ℹ️ NumberofCopies controls how many labels are printed. Make this dynamic by linking to a database field if needed.

➡️ More more about mappings: Mapping Parameters Configuration.

6. Set Event Triggers

Set up when the printing will occur using the Event Triggers View.

Event Triggers set up used in this scenario:

EmployeeEmployee DepartmentObject TypeSAPPDCWMSProcessForce
AllAllGoods Receipt POOnChangeNoActionNoActionNoAction

➡️ Learn more about Event Triggers.

7. Update Global Data

After configuring the settings, update the global data by navigating to Companies and selecting the Update Global Data option.

Global Settings

8. Assign Template to Printer

To complete the setup, assign GRPO to a specific printer with the following configuration:

INFONAMETEMPLATE CODEPRINTER CODEFILE
OKGRPOtest1GRPOtest1C:\Program Files (x86)\CompuTec\CompuTec LabelPrinting\Reports\LabelPrintingAyCrystalLayout.rpt

➡️ For assigning reports, refer to Label Reports Configuration.

9. Print the Label

Due to the OnChange trigger, the GRPO label will print automatically upon update.

We can also print a label manually at any time. To print labels manually:

  1. Open SAP Business One.

  2. Navigate to File > Print Labels in the upper menu.

  3. Select Crystal printer from the drop-down list.

  4. Click Print.

    Print Labels

Upon printing, the following message appears:

System Message

The label is printed and saved as a PDF in the default location: Local Disk (C:)\ProgramData\CompuTec\CT Label Printing\Reports\Crystal:

Printed Label