Difficulties when implementing an ERP system