Importing a role Role in MWS

I have huge list of roles in External system.I’d like to import those roles into MWS.Is there a way to that?

I read in the MWS docs ,there is a way for importing from external systems(data bases).But my external sytem is not a data base.It is an SAP server.

Can any one please guide me ?