This blog post is directed towards the automatic creation of bar codes for product and product variants for each vendor. This blog includes the end to end setup of automatic bar codes creation.
Below are steps to create a bar code number sequence to automatically relate to a vendor.
Step 1: Set up the bar code Mask characters
Bar code mask characters are alphabetical characters that are replaced with numbers when Microsoft Dynamics AX uses a bar code mask to generate a bar code. Use different bar code mask characters to generate different types of bar codes, such as bar codes for products, customers, or employees. A single mask character, such as a mask character that represents the item number, can add several characters to the bar code.
Note: If the user creates all your bar codes manually, they do not have to set up mask characters or masks. If the user manually creates a bar code for a product or product variant for which a bar code mask is set up, mask validation is performed only for the check digit. If the check digit does not match the check digit in the bar code mask, you receive an error message that resembles the following message:
“Expecting check digit 8 but found 3.”
Retail >Setup>Bar codes and labels>Mask characters
a. Product = D (This is an example)
b. Size digit = L (This is an example)
Step 2: Set up the Bar Code Mask Setup for “Size”
Retail>Setup>Bar codes and labels>Bar code mask setup
NOTE: The total calculated length must be within the length limits of the Bar code setup mentioned in step 3 below. When using “Functions>Create bar codes from number sequence” in Step 11, because number sequences will be used to generate the bar code, this Bar code mask setup is not actually used. If you choose “Functions > Create/Update bar codes”, then this assigned bar code mask setup is used. Either way this MUST be assigned to the Bar codes in the next step otherwise general AX code will fail due to this field being blank.
Step 3: Set up the Bar codes:
Retail >Setup>Bar codes and labels>Bar code setup
NOTE: Any changes made to the linked Bar code mask setup will blank out the Mask ID on this form. You will need to open this form again and repopulate the field.
Step 4: Set up the Number Sequence:
Organization administration > Common > Number sequences > Number sequences
a. Create a new number sequence. (This will be tied with a Vendor account)
b. If you normally have a prefix for bar codes, then you would add a constant along with the alpha numeric auto-generated number.
NOTE: The total length of the number sequence segments must be 1 digit less than the maximum length of the bar code. This is due to a check digit being to the bar code after the number sequence during bar code creation.
In our scenario the Bar code length must be 13, so the total length of the number sequence segments must be 12.
2 + length of constant
10 + length of alphanumeric
12 = length of number sequence
1 + check digit
13 = total for bar code
Step 5: Create a new Size Group to auto-populate the dimensions:
Retail > Setup > Variant groups > Size groups
a. Select Auto number bar code
NOTE: If you are using product master then you must assign the Variant Groups prior to creating the Item. This is required during the number sequence bar code creation. You can add product dimensions directly to the product, but the bar code creation requires a variant group.
Step 6: Create a new color group to auto-populate the dimensions:
Retail>Setup>Variant groups>Color groups
a. Select Auto number bar code
Step 7: Add this to the ‘Retail product hierarchy’ for auto applying to product masters in a category
Retail>Setup>Category hierarchies>Retail product hierarchy
a. Select the category from the tree and in the details pane, expand the Retail product properties fast tab
b. In the Variant groups, add the necessary groups from the drop-down.
Step 8: Create a new item:
Retail>Common>Products>Released products by category or
Product information management>Common>Products>Released products
a. Product type: Item
b. Product sub-type: Product master
c. Product/Item Number is 10 digits long because of the Bar code Mask Setup and the Number Sequence configuration.
d. Retail category: This must be populated for the item to be available in Retail, select the category you chose in Step 6 to assign the size group.
e. Reference group: Select any value
Step 9: Assign the available “PRM” to the item.
a. Find the product we just created, select it, and click Edit.
b. Expand the Retail fast tab and note that the Size group is added automatically from the Retail product hierarchy. Select “PRM” in the Bar code setup field.
Step 10: In order for the Number Sequence to work, it must be assigned to a vendor.
Accounts Payable> Common> Vendors>All vendors
a. Select a vendor account and click Edit.
b. Expand the Retail fast tab
c. Select the created Bar code in the Bar code number sequence field.
d. Close the form.
Step 11: Create the Bar code
a. Go to back to the item:
Retail>Common>Products>Released products by category
b. On the Manage inventory menu under Warehouse, click Bar codes
An Infolog window may appear with errors/warnings; this can be ignored due to the next step.
c. Select the new record that was auto-created when the form opened and click Delete. Another Info log with error messages will appear, close this. We will create new lines for bar codes.
d. Click Functions> Create bar code from number sequences.
e. Select the Vendor you assigned the bar code number sequence.
f. Select “OK” to create bar codes
Bar codes are created, one for each variant using the sequence number.
11 is the constant, the alphanumeric next number and the check digit
NOTE: This will create bar codes for any variants under the product that do not have a bar code associated. You can also assign more than 1 bar code to a product, but if one exist a new one will not auto create based on the number sequence.
That is all, this is how you can setup and create bar codes for your product per vendor in a predefined number sequence.