In the process of introducing an ERP system, many people focus on functional modules or reports, but ignore the most basic and critical task—Coding Rules. A code is like the ID number of enterprise data. If the rules are not set well, future queries, statistics, and even system integration will face great difficulties. A good coding rule must be "unique," "extensible," "readable," and "consistent." Below are practical suggestions for the two most commonly used types of codes: customers/suppliers, and goods/raw materials/semi-finished products.
Customers and suppliers are external partners. It is recommended to use "serial numbers" or "classified serial numbers." To ensure system stability and report consistency, it is recommended that the code length not exceed 10 characters.
Goods coding is the most complex part of the ERP system. To be compatible with international barcode standards, it is recommended that the code length not exceed 26 characters. In practice, the coding of goods, semi-finished products, and materials usually incorporates three key attributes: "size," "color," and "main material" to allow "knowing the item by its code."
In practice, we often see enterprises making serious mistakes in product coding for convenience. Some companies stuff all attributes like size, color, and supplier into the item number, resulting in a 20-30 character code. Frontline staff cannot remember such long numbers, and reports often truncate the key information at the end. On the contrary, if all products only use serial numbers, sales and warehouse staff cannot distinguish what the item is when looking at reports, and can only rely on names or descriptions.
In fact, identical products from different suppliers only need one shared item number. The correct approach is to establish a "Supplier Item Number Mapping Table" to link supplier part numbers with internal item numbers, avoiding infinite expansion of codes.
Another issue is the uniform use of serial numbers for documents. If invoices, receipts, and payment vouchers all share the same 0001, 0002 serial numbers, not only is it impossible to tell what type of document it is, but when these documents are posted to the general ledger, duplicate numbers will cause data to overwrite each other, leading to chaotic financial accounts. Enterprises must set specific prefixes for different document types.
About the Author (Andy Tam): Senior Consultant at Key Champion Computer Limited. Over 40 years of experience in ERP development and IT infrastructure planning.