Hi,
Please check F1 help for the field - allowed characters for first level is 5. Maintain the first level as B0001, save it and then try for the second level. If you need a different behavior, refer the note: 927249 - FAQ: Different problems with product hierarchy
Regards,
AKPT