Please enable JavaScript to view this site.
From version 6.2.81 - This Exit Program will generate an SSCC (Serial Shipping Container Code), including the check digit, based on the supplied data and type of GTIN (Global Trade Item Number)requested.
The program will error under the following conditions:
•PARM1, PARM2, PARM3, PARM4 or PARM5 contain non numeric data or data length > (GTIN - 1).
•PARM6 is not a valid GTIN Type
•The combined data length <> to (GTIN - 1)
All errors will be written to the joblog.
Parameter |
In |
Len |
Out |
Len |
PARM1 |
Input Sting 1 |
Max 17 |
SSCC (including Check Digit) |
Max 18 |
PARM2 |
Input Sting 2 |
Max 17 |
Check Digit |
1 |
PARM3 |
Input Sting 3 |
Max 17 |
- |
|
PARM4 |
Input Sting 4 |
Max 17 |
- |
|
PARM5 |
Input Sting 5 |
Max 17 |
- |
|
PARM6 |
Type of GTIN Number required e.g. 8,12,13,14,17,18 |
2 |
- |
|
GTIN 18 Example
Parameter |
Input |
Output |
PARM1 |
3761 |
376104250021234569 |
PARM2 |
0425002123456 |
9 |
PARM3 |
||
PARM4 |
||
PARM5 |
||
PARM6 |
18 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
3 |
7 |
6 |
1 |
0 |
4 |
2 |
5 |
0 |
0 |
2 |
1 |
2 |
3 |
4 |
5 |
6 |
|
x3 |
x1 |
x3 |
x1 |
x3 |
x1 |
x3 |
x1 |
x3 |
x1 |
x3 |
x1 |
x3 |
x1 |
x3 |
x1 |
x3 |
|
9 |
7 |
18 |
1 |
0 |
4 |
6 |
5 |
0 |
0 |
6 |
1 |
6 |
3 |
12 |
5 |
18 |
=101 |
Subtract sum from nearest = or higher multiple of 10 (110) = check digit |
9 |
GTIN 12 Example
Parameter |
Input |
Output |
PARM1 |
37610425002 |
376104250024 |
PARM2 |
4 |
|
PARM3 |
||
PARM4 |
||
PARM5 |
||
PARM6 |
12 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
3 |
7 |
6 |
1 |
0 |
4 |
2 |
5 |
0 |
0 |
2 |
|||||||
x3 |
x1 |
x3 |
x1 |
x3 |
x1 |
x3 |
x1 |
x3 |
x1 |
x3 |
x1 |
x3 |
x1 |
x3 |
x1 |
x3 |
|
9 |
7 |
18 |
1 |
0 |
4 |
6 |
5 |
0 |
0 |
6 |
=56 |
||||||
Subtract sum from nearest = or higher multiple of 10 (60) = check digit |
4 |