You can use class item to use as plae holder in BOM and replace those class number by material number. You can go through step by step guide created on this topic in below link. Please rate the document & leave your comment.
Classes as place holders [Components in Super BOM]
Thanks
Ritesh