FAQ: TBarCode/SAPwin - SAP Barcode DLL
Insert a Data Matrix Barcode into Your SAP System
Insert a Data Matrix Barcode into Your SAP System
Here are the steps to insert a Data Matrix 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 Data Matrix System Bar Code
- Use Transaction SE73 – System Bar Codes (see manual 12.2.1 New System Barcode). Add a new system barcode (namespace Z... e.g. name = ZDATMAT) as conventional system barcode ("old" bar code technology).
Define Data Matrix Printer Barcode
- Enter Transaction SE73 – Printer barcodes. Follow the steps in the manual section "8 Define Printer Barcodes".
- Select ZDATMAT and add a new prefix for it (e.g. SBP90), as for the suffix you can use the existing suffix SBS01.
Edit the prefix (SBP90) and enter the control sequence: bC=DMX,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 Data Matrix 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 ZDATMAT as new available character format to your style.
- Edit the style you have assigned to your form and add ZDATMAT 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
DP Premium Address 22x22 Data Matrix:- Data provided in ASCII format (with escape sequences)
bC=DMX,M=423,DMB=1,DMS=7,E=1,D=
- Data provided in Hex format
bC=DMX,M=423,DMB=1,DMS=7,DH=
- Print control prefix
bC=DMX,M=508,DMF=1,E=1,D=
- Sample data: 0112345678901231101234567890\F11120727
\F encodes the FNC1 field terminator for variable length AI fields.