All,
I have created a rule to determinate the agent for a task.
I have assigned it to a function to be executed,
The function module has the correct input parameters.
and before implementig the logic that determines the agent, I have assigned it to my user as shown below.
But its not working, every time that I create a trip ( with another user ) I do not receive messages in my inbox to approve the trip. I don't know if something is missing or if i have to refresh some buffers.
Thanks and Regards
Jon
Request clarification before answering.
Hi Jon,
are you a possible agent of the task? If in doubt, make it a general task and try again (Run SWU_OBUF first).
Regards,
Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jon,
please simulate the rule once and check the rule result by passing the required import parameters.
Thanks & Regards,
Pramodh.M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jon,
Kindly check your binding parameters first as this is important for your rule function module to return proper agent, to verify whether you code inside function module is proper or not you can pass the relevant values(based on the binding ) in PFAC and check the result by simulating the rule.
If you perform theses steps and yet the problem persists, do inform.
----BR----
Tapomay
Hi Jon ,
Yes agree , but your screen shot above shows your rule has binding !
Otherwise if there's no value passed to rule then binding is normally in white and withing brackets instead of exists it shows Does not exist.
Methodology is same for both, populate actor tab.
ANd also rule assigned in 90000004 whereas next screen it shows 90000003 ....
Kindly check this.
----BR----
Tapomay
Hello,
Did You set agent assignment for Your task?
"Control" tab in Your task -> Task Properties -> Agent assignment
You can check this also in WF log?
If there will be something wrong with the agent assignment You should get error message in detail technical log like "Result of agent resolution does not agree with agents of task".
br,
artur
Hi John,
Kindly show the step and rule in a screen shot
If agent assignment is done properly there should be a yellow icon .
Diagnosis :----
STEP A: Step(Task----) agent assignment properly done.
STEP B: Binding
STEP C: Business logic in Function module
Step B & C you have already verified
Another question :
If you are not receiving the work item then to whom the work item is forwarded to?
----BR----
Tapomay
Hi Jon,
My question was,
what you mean by passing my user name?
if you pass WF_INITIATOR then if you create the trip with other ID then your rule FM would return that user ID as AGENT instead of you.
If you want to receive the work item irrespective of any case, then try hard code your user ID(just for test) then create trip from other user ID then you should receive the work item.
hope I am clear
---BR---
Tapomay
Hi Jon,
The task TS20000131 determines its agent via role resolution as per documentation.
Kindly check the documentation:
Standard Task TS20000131 (Approve Trip Facts) - Archiving Application Data (FI) - SAP Library
This may be an issues, as the user you are using may not be a under you as per ORG structure,
in case both are same i.e. INITIATOR & approver it is working!! so need to check how this standard task behaves in custom workflow(which is the case here).
https://help.sap.com/saphelp_46c/helpdata/en/96/aef837aea75351e10000009b38f8cf/content.htm
Consider this as a possibility as you have already exhausted probable common pitfalls.
---BR----
Tapomay
Hi,
Before append to actor_tab, concatenete 'US' with wa_actor into wa_actor. Then append it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.