Hello All,
I have a client that requires us to create thousands of item numbers based on a intelligent number scope. I need a way to create all the combinations of item numbers based on these options.
Item Number = Type + Style + Color + Option
Type
1
2
3
Style
A01 -
A02
A03
A04
Color
L01
L02
T01
T02
V01
Option
S
F
0
** There are many more options per category, but I minimized this for the example.
So I would need write code to read each of these and combine them into new item numbers.
i.e.
1A01L01S
1A01L01F
1A01L010
1A01L02S
1A01L02F
1A01L020
And so on.
Any ideas?
Steve
0
Comments
You could use the code below. All you need to do is create a table for each component of the item number (type, style, color, option) and fill these tables with all the available elements (for example in the Style_Table: A01, A02, ..).
After that you create a CodeUnit or Report in which you put the code and run it. Ofcourse you might have to adjust the code depending on the types of fields you put in the new tables.
Hope this helps!