
See section Creating your own device type before you continue.
You must define a printer control for the type of bar code you want to print. Define the printer controls in your newly created device type (e.g. ZSAPWIN).
To print bar codes, use the new printer control in your ABAP program or SAPscript.
Here we define a new printer control to print the bar code;
| Printer control |
Typ |
Hex |
Def |
Value |
|
Bar code controls |
See below |
|||
|
ESCAP |
1 |
X |
1B |
|
|
SUFFX |
1 |
| Printer control |
Typ |
Hex |
Def |
Value |
|
BC25I |
5 |
bC=25I,P=1,D= |
| Printer control |
Typ |
Hex |
Def |
Value |
|
BC25L |
5 |
bC=25L,P=1,D= |
| Printer control |
Typ |
Hex |
Def |
Value |
|
BC25L |
5 |
bC=25L,P=0,D= |
| Printer control |
Typ |
Hex |
Def |
Value |
|
BC25M |
5 |
bC=25M,P=1,D= |
Note: Extended Code 39 is automatically used.
| Printer control |
Typ |
Hex |
Def |
Value |
|
BC39 |
5 |
bC=39,P=1,D= |
Note: Extended Code 39 is automatically used.
| Printer control |
Typ |
Hex |
Def |
Value |
|
BC39 |
5 |
bC=39,P=0,D= |
| Printer control |
Typ |
Hex |
Def |
Value |
|
BC39E |
5 |
bC=39E,P=0,D= |
Note: Extended Code 93 is automatically used.
| Printer control |
Typ |
Hex |
Def |
Value |
|
BC93 |
5 |
bC=93,P=1,D= |
| Printer control |
Typ |
Hex |
Def |
Value |
|
BC93E |
5 |
bC=93E,P=1,D= |
| Printer control |
Typ |
Hex |
Def |
Value |
|
BCODA |
5 |
bC=CODA,P=0,D= |
See also EAN-128.
| Printer control |
Typ |
Hex |
Def |
Value |
|
BC128 |
5 |
bC=128B,P=1,D= |
See EAN-128.
| Printer control |
Typ |
Hex |
Def |
Value |
|
BCE28 |
5 |
bC=E128,P=0,D= |
For complete details of the EAN-128 standard, you should obtain; 'Application Standard for Shipping Container Codes', published by; UNIFORM CODE COUNCIL, INC. 8163 Old Yankee Road, Suite J, Dayton, OH 45458 USA.
In brief, the format of EAN-128 is;
FNC1 ( AI ) Content ( AI ) Content
AI means Application Identifier - a numeric code that identifies the content that follows the AI.
FNC1 is a special character. FNC1 is automatically inserted at the start to identify Code 128 as UCC/EAN-128. FNC1 is also used at the end of variable length AI.
| AI |
Content |
Format |
Note |
|
10 |
Batch or Lot Number |
n2+n14 |
Fixed length |
|
... |
... |
... |
... |
|
400 |
Customer's Purchase Order Number |
n3+an..30 |
Variable length |
|
... |
... |
... |
... |
Example: If the Customer's Purchase Order Number is
G3627 and Batch or Lot Number is 0000000000072. The correct bar code should be;FNC1 ( 400 ) G3627 FNC1 ( 10 ) 0000000000072
Your data should not include '(' or ')' characters around any AI. Use % character in your data to insert FNC1 at the end of variable length AI.
400G3627
%1072Use separate text print command to print the human readable text;
(400) G3627 (10) 0000000000072
SSCC-18
Only this to print bar codes containing a single SSCC-18. If the bar code contains SSCC-18 plus other data, you should use EAN-128.
| Printer control |
Typ |
Hex |
Def |
Value |
|
BCS18 |
5 |
bC=SSCC18,P=1,D= |
Use PSN5 for 5 digits. Use PSN9 for 9 digits.
| Printer control |
Typ |
Hex |
Def |
Value |
|
BCPN5 |
5 |
bC=PSN5,P=1,D= |
||
|
BCPN9 |
5 |
bC=PSN9,P=1,D= |
Note: Use D=12 digits. Example: D=012345678912
| Printer control |
Typ |
Hex |
Def |
Value |
|
BCE3 |
5 |
bC=E13,P=1,D= |
Note: Use D=12 digits then 5 digits. Example: D=01234567891212
| Printer control |
Typ |
Hex |
Def |
Value |
|
BCE32 |
5 |
bC=E13+2,P=1,D= |
Note: Use D=12 digits then 5 digits. Example: D=01234567891212345
| Printer control |
Typ |
Hex |
Def |
Value |
|
BCE35 |
5 |
bC=E13+5,P=1,D= |
Note: Use D=7 digits. Example: D=1234567
| Printer control |
Typ |
Hex |
Def |
Value |
|
BCE8 |
5 |
bC=E8,P=1,D= |
Note: Use D=7 digits then 2 digits. Example: D=123456712
| Printer control |
Typ |
Hex |
Def |
Value |
|
BCE82 |
5 |
bC=E8+2,P=1,D= |
Note: Use D=7 digits then 5 digits. Example: D=123456712345
| Printer control |
Typ |
Hex |
Def |
Value |
|
BCE85 |
5 |
bC=E8+5,P=1,D= |
Note: Use D=11 digits. Example: D=01234567891
| Printer control |
Typ |
Hex |
Def |
Value |
|
BCUA |
5 |
bC=UA,P=1,D= |
Note: Use D=11 digits then 5 digits. Example: D=0123456789112
| Printer control |
Typ |
Hex |
Def |
Value |
|
BCUA2 |
5 |
bC=UA+2,P=1,D= |
Note: Use D=11 digits then 5 digits. Example: D=0123456789112345
| Printer control |
Typ |
Hex |
Def |
Value |
|
BCUA5 |
5 |
bC=UA+5,P=1,D= |
Note: Use D=6 digits. Example: D=123456
| Printer control |
Typ |
Hex |
Def |
Value |
|
BCUE |
5 |
bC=UCE,P=1,D= |
Note: Use D=6 digits then 2 digits. Example: D=12345612
| Printer control |
Typ |
Hex |
Def |
Value |
|
BCUE2 |
5 |
bC=UCE+2,P=1,D= |
Note: Use D=6 digits then 5 digits. Example: D=12345612345
| Printer control |
Typ |
Hex |
Def |
Value |
|
BCUE5 |
5 |
bC=UCE+5,P=1,D= |
|
Copyright © 2000 CIA (BAR CODES) UK. All rights reserved. Reproduction prohibited. |