create ISO6346 check digit(container number a)
Group |
This function calculates the container number with check digit of a container number (without or with check digit) according to ISO 6346 or EN13044.
Parameter Description
Parameter |
Description |
a |
The container number (according to ISO 6346 or EN13044). A value of length 10 or 11 is expected (without or with check digit). The first 4 characters must be letters. The fourth letter can only be U, J, Z, A, B, D, E or K. The remaining characters can only be digits. Special characters are not allowed. Lower case is allowed, spaces are ignored. Format errors result in a termination with error. |
Example
Parameter a |
Result |
CSQU305438 |
CSQU3054383 |
Csq u3054383 |
CSQU3054383 |
7SQU305438 |
Termination with error. |
7777777 |
Termination with error. |