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.  
Microsoft Dynamics Ax,AIF,Axapta, Enterprise portal,,Microsoft , United State,U.S., SharePoint , BI Tools, Performance Tuning, SSRS,Business Logic,Ax ERP Errors and solution,Dynamics 365 Errors Solution,Business software .