You can do one of the following:
Create a routing record in SAP ERP and transfer it to SAP ME (see Transfer of Routing from SAP ERP to SAP ME)
Create a routing record in SAP ME and transfer it to SAP ERP (see Transfer of Routing from SAP ME to SAP ERP)