we have standard one step approval process based on approval limit.
the SC goes to manager in the org unit with sufficient approval limit.
The manager is determined by a function module "WF_SC_GET_APPROVER"
we have made some changes in the logic of the module where in if a "MANAGER" himself creates a SC , it does not go to other managers with approval limit lower than the creator.
it first seeks out a manager in the same org unit who has a approval limit greater than or equal to the creator.
when we execute the function module , it gives correct result.
but when we create a SC for a manager , the approver is not determined correctly.
i.e there is a disconnect between the approver we see in function module execution and actual approver that we see in the browser.
any idea why this could be happening?
How are the approvers determined , are they determined by the using the function module or are there some other methods.
we have not implemented workflow approval badi