Hi AJ,
Configuration parameter 2024 can be enabled to check if there is a prerequisite for the role.
You have to implement badi GRAC_TRG_VERIF using transaction SE19. You will have to create a class implementing interface IF_GRAC_TRG_VERIF and implement method 'VERIFY'.
In this method you will get details about role and request based on which you can write your logic.
Please check the below blog for more details.
Details on Training and verification System
Regards,
Madhu.