HI Harsha,
you can chec the substitute details in HRUS_D2 table, beofre agent taking action you see whether he is the approver for that work item under SWWUSERWI, if it is not there then he is the substitute also you can cross verify the substitute details in HRUS_D2.
i hope it is usefull
Regards,
Raghu