Hi,
ABAP AS does not support time for role assignment. So you have to use other system that supports time. I am not sure how hard would be to implement this in some IdM solution. If you want to stay on ABAP AS you will have to capture time restriction somewhere and then periodically run a job that will remove roles from users.
Cheers