Did you try working with the Account Privilege PRIV:<Repository>:ONLY:
If you created a new user in IdM, assign the user this account Privilege which will be available in the Privileges. This should trigger the user creation in ABAP. If you try and assign some other ABAP privilege initially (Technical role), this will not Create and assign the role in ABAP.
Why did you make a copy of the Hook Tasks and refer to the custom ones ? Did you have some requirement for that ?
Cheers,
Murali