Solution : https://service.sap.com/sap/support/notes/1338353 (SAP Service marketplace login required)
Key words : 
/virsa/saplre abap program, abap runtime error, apply snote correction, enterprise role management, terms access control, program error, access control, /virsa/re_bapi_create_role, generate role, symptom unable
Related Notes : 
       
| 1542113 | The Button 'Apply to existing Roles' is greyed out in ERM | 
| 1502953 | Function Module not found |