Automatic assignment of articel numbers