Production order for BOM sub items in Microsoft dynamics Axapta MSDAX

If you are creating production order for bom items and items bom level is more than 2 or 3 then it may be possible to system will take more time to create production order or it will hang  . I have face this problem and tried to debug following classes.

BOMHierarchyCheckscanupBOM
BOMHierarchyCheckserchdownbom
Prodtabletype

I found there is problem due to inventdimid and number sequence creation problem I tried to reassign number sequence for particular inventory dimension.

Finally it got resolved..Thank God.