SFC - Code numbers with company code¶
The general SFC code (not the country-specific SFC code) of the manufacturer or supplier is to be used for products that are sold worldwide.
Original PDF:
SFC.pdf (SN 01050)
Identification¶
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | 1 | 2 | 3 | 4 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | N | A | N | N | N | N | N | N | N | N | * | A N | A N |
Validation¶
As a requesting service, I want to get information if one or more strings I have sent are following the SFC syntax, that I can ensure to proceed/persist only correct product numbers.
The validation should only be executed for identified numbers.
The return string is called Normbyte and is two characters long. The Normbyte is there to encode validation and classification results.
RegEx (https://regex101.com/r/thQshK/1/)
^[A-Z]{2}[A-Z2-9][.:][\w\W]{1,21}$
Classification¶
As a requesting service, I want to get information about the state of the number if it is validated as correct, that I have more details about the product number.
The classification should only be executed for valid numbers.
The return string is called Normbyte and is max. two characters long. The Normbyte is there to encode validation and classification results.
Normbytes for SFC:
NB | Description |
---|---|
IZ | SFC with : at position 4 |
IB | SFC with . at position 4 |
Formatting¶
As a requesting service, I want to format my product numbers in two different output formats which are following the numbering standards, that I can ensure my numbers are structured everytime the same.
SORT¶
Remove all blanks between position 5 and 25 except if number has .
at position 4
PRINT¶
Remove all blanks between position 5 and 25 except if number has .
at position 4