Hi Ketan,
Please try below procedure.
1. Create Z-Function module. Write processing logic to determine email recipients and sending mail to them.
2. Pass necessary parameters from workflow task container.
3. Call that FM in method inside task.
This procedure will work as per your requirement. Depending upon parameters passed from workflow, you would be able to fetch email ids from Z-table and you can send the mail from the same FM.
-
Ashutosh