Skip to main content
Version: 1.00

Scenario 1: Goods Receipt PO Printed from SAP Business One

In this step-by-step manual, we will manually configure the application to print Goods Receipt Purchase Order from SAP Business One. Additionally, we want to save the prints to PDF.


Printer Settings

Only the Crystal printer type allows to save to PDF. Therefore, we will use this option in this scenario.

We will use the following 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.

Click here to find out more about printer configuration.

Label Template

We have to create a Label Template to which settings will be assigned and which itself will be assigned to a specific printer.

A Label Template used in this scenario:

TEMPLATE CODETEMPLATE NAMETEMPLATE DESCRIPTION
GRPOGRPOGRPO

Click here to find out more about printer configuration.

Printing Rules

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

Label Report

Crystal Report

Crystal report used in this scenario:

Crystal Report

In Crystal Reports, different variables are used, e.g., StringPar, and NumericPar. It is possible to attach to each of its specific data in the next step: mapping.

CompuTec Labels Localization

Crystal reports used by CompuTec Labels have to be located in the following locations:

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

(or the corresponding installation directory if the default one was not chosen).

Mapping

Next, we must define mapping parameters: what data is assigned to a specific variable from a label layout.

Mapping rules used in this scenario:

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

Click here to find out more about mapping parameters configuration.

Event Triggers

The next thing is to define what action printing will occur.

Event Triggers set up used in this scenario:

EmployeeEmployee DepartmentObject TypeSAPPDCWMSPF
AllAllGoods Receipt POOnChangeNoActionNoActionNoAction

Click here to find out more about event trigger configuration.

Data Update

After setting up all the settings, go to Companies and choose Update Global Data option:

Global Settings

Template Assigning

Next, we have to assign the template, GRPO, in this case, to a specific printer and choose the following:

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

Click here to find out more about Template and report file assigning.

Printing

We defined the printing trigger as OnChange, which means that, in our case, a printing occurs on an updating a Goods Receipt PO document.

We can also print a label manually at any time. To do this in SAP Business One, go to the upper menu > File > Print Labels. Choose Crystal printer from a drop-down list and click Print.

Print Labels

A system message will appear:

System Message

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

Printed Label