Ranbaxy implemented an SAP ERP system to integrate its various legacy systems and departments. Previously, departments like finance and inventory management used separate systems that were not connected. This led to issues with information flow between departments. The SAP system divided processes into sub-processes and connected all departments. It helped Ranbaxy improve processes like planning, procurement, quality control and reduce costs.