Hello Hilary,
I am sorry my mistake. Field 18 is Product Type. It can be 01,02,03... to 10. Each product Type has their own different Product number. That's why if Product Type is equal 01, than "Product Number" must be "max product number for 01" I mean i have 10 different Product Type and all of them have different ...