FAQ: TBarCode/SAPwin - SAP Barcode DLL
Insert a QR Code® into Your SAP System
Insert a QR Code® into Your SAP System
Here are the steps to insert a QR Code® 2D bar code into your SAP system.
Precautions
- Make sure you have a copy of a SAPWIN based device type (e.g. copy device type SWIN to ZSWIN – see our manual 6 Create a Device Type Copy).
- Assign this device type to a printer – see manual 7 Assign the Device Type to a Printer.
- You can test your TBarCode/SAPwin installation by printing the SAPSCRIPT- BARCODETEST (client 00) - see our manual 9 Test Barcode Printing. If this SAPscript document does not exist you can request it from our support.
Add QR Code System Bar Code
- Use Transaction SE73 – System Bar codes (see manual 12.2.1 New System Barcode). Add a new system bar code (name space Z... e.g. name = ZQRCODE) as conventional system bar code ("old" bar code technology).
Define QR Code Printer Barcode
- Enter Transaction SE73 – Printer bar codes. Follow the steps in the manual section "8 Define Printer Barcodes".
- Select ZQRCODE and add a new prefix for it (e.g. SBP91), as for the suffix you can use the existing suffix SBS01.
Edit the prefix (SBP91) and enter the control sequence: bC=QR2,M=508,D=
Make sure that the prefix Variant is set to 5, you can change that in transaction SPAD. The Printcontrol must be marked Extended (see manual 23.4.4 Wrong Variant of Print-Control Prefix).
Add QR Code Character Format (Style)
There are multiple ways to insert a barcode into your form (see manual 11 Using Barcodes in SAP). If you decided to use a bar code character format (preferred way), you have to add ZQRCODE as new available character format to your style.
- Edit the style you have assigned to your form and add ZQRCODE as new barcode character format.
- Use transaction SE72 for editing SAPscript styles.
- Use transaction SmartStyles for editing Smart Form styles (see manual 11.2.2)
More Printcontrols
- QR-Code with UTF-8 encoding (e.g. for Chinese characters):
bC=QRC,M=1016,CP=6,D=
Note: Needs TBarCode/SAPwin 10.1 in combination with SAPSprint 730 Patch 16 and/or SAPGUI 730 Patch 10 or newer. A device type with Unicode support (SWINCF or SWINCFC) must be used.