Hi all,
I have a process schema with 2 levels of approvals. The first one is a dynamic one (created based on a tutorial that I found here in SCN) and the second one is a simple approval step, I have a third step that's the automatic approval if none of the previous steps are required.
When I go the SC creation page, I enter all the information and before saving it, I click on Display Agents, I could see that all the agents were obtained correctly.
For example 4 approvers obtained,
1-User1 (obtained from the first process level, dynamic one)
2-User2 (obtained from the first process level, dynamic one)
3-User3 (obtained from the first process level, dynamic one)
4-User4 (obtained from the second process level).
The problem comes after I save the order..I click on the Refresh button and go again to the "Display Agents" part and then I see that the first approver is not there, instead I see that it says "No agent was obtained with strategy Z...", so I have something like this:
1-"No agent was obtained with strategy Z..."
2-User2 (obtained from the first process level, dynamic one)
3-User3 (obtained from the first process level, dynamic one)
4-User4 (obtained from the second process level).
If I check the WF, it ends in error as it says it could not find the approver.
The same thing happens if the first process level (dynamic) returns 2 agents....the first one is removed after I save the SC.
And If that first process level returns anly one agent, it's also removed when I save the SC.
Could you please suggest where could I start looking into it?
I debugged a lot and found out that when I click on SAVE and the on REFRESH and go to see again the approvers, the method
/SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID is not being executed for that first user, just for the rest.
Why could this be happening?
Thanks in advance!
Matias