I am beginner in workflow. I was trying to apply custom rules in my workflow design. I did the following steps :
1. have created a custom rule through the transaction PFAC_INS.
2. There I have used a function module for the determination of agent. The custom function module will give me the superior name for an employee.I have used ztables to store the name of the employee and their superiors.
3. The Rule has been successfully created and has been tested. It is working as required. I have tested it in PFAC itself by using Simulation button.
The problem I am facing is
When I am trying to use this Rule in the workflow at the User decision Step it is not working. I have given the Rule number in the Agent section of the User decision step.
According to my Workflow design the email should go to the Superior of the employee but instead it is coming to my Inbox.
Please suggent me what to do.
Thanks in advance.
Points will be rewarded for good suggestions.
Thanks & Regards.