Agent Determination using a Rule
Hi All,
I tried finding related threads, but was not able to find anything that exactly matches this issue.
I have an Activity type task to which I have assigne a rule for agent determination. I am assigning the SAP userid to the actor_tab in the function module. This is the code I am using:
ACTOR_TAB-OTYPE = 'US'.
ACTOR_TAB-OBJID = 'AJOHN'.
APPEND ACTOR_TAB.
But, when I try to simulate the rule in PFAC, it says "no agent found". What am I doing wrong?
I created a function module called ztest_rule in se37 and put your exact code. I then created a rule called ztest_rule in PFAC and chose Agent Determination: Function to be executed and entered ztest_rule as my function module. When I hit the little abacus and then the wrench in PFAC to test, it returns US AJOHN.
Similar Messages
-
Purchase Requistion - Agent Determination using responsibilities - Issue
Hi Everyone,
I am new to workflow. I am having an issue wrt Purchase Requistion - Agent Determination using responsibilities.
Created some 30 to 40 resposibilities with combination of inputs - R1, P1 & Cost Center
Checked rule with responsibilities in Simulation mode and for the given inputs shows correct output.
Same config is present both in DEV and ACP. Simulation works fine in both systems.
But when I created Purchase Req. in DEV and save it. Workitem is generated for the correct agent. But when I do the same test in Quality, it fails and created Workitems for several agents.
Checked container info. in both systems,no.of agents is the ONLY difference (i.e. 1 in DEV and 30+ agents in Quality).
Put shred some light on this issue.
Workflow Used: BUS2009
Task : TS00007986
Thanks a ton in advance.
Regards,
KrishnaHi,
Open the workflow (WS*******) with SWDD and see the bindings for the rule in the approval step (using TS00007986). Do they look the same in both environments? Are you passing the same parameters for the rule?
Another thing that you should check is a possible authorisation error. Maybe the users are not authorised to execute the needed functions for finding the agent inside the rule (common problem).
Also try to read the technical workflow log (Start a workflow, open SWI1 and drill-down to the workflow log). Can you see some error messages there? You will probably find a message saying that "cannot execute agent rule" or something like that. It is WF behaviour that if it cannot find an agent it will send the work item to all possible agents (unless otherwise configured).
Regards,
Karri -
PARTNER DETERMINATION USING STANDARD RULE ORGUNIT EMPLOYEE
HELLO FRIENDS,
We are using a standard (orgunit employee) rule for partner determination. the description is as follows:
hierarchy:
CIRCLE -> BRANCHES
the employee stated above comes under the circle but creates leads for all the branches.
The PDP goes as follows:
user (employee stated above) enters branch -> branch determines circle through responsibility rules and the employee automatically determines the employee.
the PDP works fine for users of earlier created circles but now we are creating new circles and new position for these employees in a similar manner and the PDP gives the error enter employee (even though the circle is determined).
Please let me know if there are some parameters that we are missing or some technical issues that need to be taken care of while using the standard (orgunit employee) rule.
Thanks and regards
Nitin SehgalHello Nitin,
Did you create an employee record for the User. If you create an employee did you assign the user id for that employee.
Check this assignment.
Thanks
Raja Pamireddy
CRM Marketing Forum Moderator. -
Agent determination using attribute
Hi all,
My scenario is to find agent from a z table which has organisational unit number with prefix O.
I created a attribute in business object and programed accordingly that it finds the correct org number for the key field. I had done a self test and it is able find correctly.
Now i have called the attribute to workflow and event container using the same type it is able to get the value, i have done the bindings also. Using expression in the agent assignment i used this variable directly likes this &org_U& here the value now would be O 5981001 which has a business partner under and user below business partner... my problem is if the business partner is not there my workflow works if the orgunit has a business partner then it is not passing the work item....
Thanks
AnnamalaiIn the table HRP1001 you retrieve all the agent that is assigned to the Organization unit and append the SAP User ID concatenated with US to a container element. You then use this container elementas an Expression. This will surely work.
<b>Reward points if useful</b> -
Agents determination using Organization chart
Hi,
I have a Organization chart.
and I assigned a Job in that Organization chart to the Agents assignment in TASK.
Job Is assigned to a user ( US.....)
I am not knowing how to get that agents So as to start the task.
I am taking about the AGENTS field in the control tab of the ACTIVITY
RegardsHi,
In my Scenario I have an Org Object.
In my Org Object there are two positions.
1 Manager
2 Admin
Both the positions are assined a Job and User each.
Now I want the person in the Manager position must be Doing the activity,
Your Questions
You tell me who are the possible agents? -
> the person in Position assigned ( Manager in this case )
Whats their Position? -
> The position which is assigned( Manager in this case)
How you identify them?----> This is what I am asking you
To whom you need to send the workitem?-------> Manager in my case
Regards -
SRM Contract alert management Workflow - WS10400022 Agents determination
Hi Experts,
I am trying to implement Alert management for SRM Contracts that are expired/ or the threshold is exceeded.
All the necessary configs are done and the event linkage is also done for the workflow Template WS10400022.
The task used in this workflow TS10407926, for agent determination, used the expression &Agents_0001.Agents&
This container value is neither passed from the event linkage binding.
Can anyone explain how this agent determination is done for this workflow?
Your replies are very much appreciated
Cheers,
Prem.Hello,
OK, i did not see the event linkage between event and workflow...
Currently, &Agents_0001.Agents& is not populated with data coming from the event:
Event is managed by BBP_EV_API_EVENTS_SAVE function modul, and inside this FM by CL_BBP_EVENTS class.
Maybe you should open an OSS message and check all OSS notes dealing with BBP_CONTRACT_CHECK report.
Regards.
Laurent. -
Agent Determination Rule using Function Module
Hi all,
I am trying to create a custom agent determination rule using function module. But my rule is not getting invoked when the workflow is executed.
I created a custom rule and linked my function module (with proper signature).
FUNCTION 'ZRULEXXX''
""Local Interface:
*" TABLES
*" AC_CONTAINER STRUCTURE SWCONT
*" ACTOR_TAB STRUCTURE SWHACTOR
*" EXCEPTIONS
*" NOBODY_FOUND
And I am hard coding some values into table ACTOR_TAB
REFRESH ACTOR_TAB.
CLEAR ACTOR_TAB.
IF SY-SUBRC NE 0.
RAISE NOBODY_FOUND.
ELSE.
ACTOR_TAB-OTYPE = 'US'.
ACTOR_TAB-OBJID = 'XXXX'.
APPEND ACTOR_TAB.
ACTOR_TAB-OTYPE = 'US'.
ACTOR_TAB-OBJID = 'XXXXXX'.
APPEND ACTOR_TAB.
ENDIF.
But a worklist item is not being created for the users appended to ACTOR_TAB.
Is there anything am missing. Please let me know.
Thanks in advance
Regards
RajuHi,
Change it to following code. It will work.
REFRESH ACTOR_TAB.
CLEAR ACTOR_TAB.
*IF SY-SUBRC NE 0.
*RAISE NOBODY_FOUND.
*ELSE.
ACTOR_TAB-OTYPE = 'US'.
ACTOR_TAB-OBJID = 'XXXX'.
APPEND ACTOR_TAB.
ACTOR_TAB-OTYPE = 'US'.
ACTOR_TAB-OBJID = 'XXXXXX'.
APPEND ACTOR_TAB.
*ENDIF.
Regards,
Vaishali. -
Error in resolution of rule ... for step - Agent determination for failed
Dear Experts,
in SRM 7.0 CS, i have come accross the following workflow error:
I have extended my existing organizational plan for a new site (new CoCo, Plant, Purch Org and Purch Gr). But when i use my test users with this site, i receive a workflow error, that has the following wording in SWI2_DIAG:
Error handling for work item 000000055347
No links corresponding to the specified data could be determined
Error in resolution of rule 'AC40000138' for step '0000000293'
Agent determination for step '0000000293' failed
Error during result processing of work item 000000055357
Error when processing node '0000000293' (ParForEach index 000000)
Error when creating a component of type 'Step'
Error when creating a work item
Error when processing node '0000000293' (ParForEach index 000000)
Work item 000000055356: Object FLOWITEM method EXECUTE cannot be executed
Error handling for work item 000000055355
Can you maybe help me understand, what this error means and how to resolve it?
Thank you very much!
P.S. my test users work fine if i drag them to another location in my organizational plan. And also if i take other test user from locations where everything works fine and drag them to this "problem" location, than the same workflow error occures.Remove the user from the PPOMA node and add him again.. Sometimes this will solve the issue..
Thanks!!
Bharath -
Responsibility rules : Agent determination only works after restarting the WF
Hi Experts,
We are facing a very strange issue related to agent determination in one of our custom workflow:
For agent determination we are using a responsibility rule with two parameters "Company code" and "Plant".
The responsibility rule works well and returns the agents for all the company code.
Recently I have added few company codes to this responsibility rule in the same way we used to maintain and simulate it . It returns the correct agent for newly added company codes but at run time the agent determination is getting failed and the WF goes into an error because of it. However when i restart the WF via SWPR it works well and the agent determination works well either.
This is only happening for newly added company codes the old ones agent determination work well at the run-time.
Pls suggest what could cause this problem. If there is a problem in responsibility rule then why it works after restarting from SWPR.
Thanks in advance. The helpful/correct answers will be rewarded.
Regards,
HimHi Rick,
Thanks for replying.
1. Can you replicate this problem in the test system?
Yes I could replicate this issue in test system and it works fine there.
2. Is this a true responsibility rule or does e.g. a function module get called?
We have a responsibility where several responsibilities have been added with two parameters "company codes" and "plant". Every responsibility has a POSITION assigned into it and this position contains the related users.
This responsibility rule is getting called in one other rule with FM. Here in this another rule we are calling the responsibility rule by using the standard FM RH_GET_ACTORS to fill the ACTOR_TAB.
I have tried to simulate both the rules and it returned correct agents but failing at run time.
Regards,
Him -
Agent determination issue with no error, cant use SWPR?
Hello gurus.
We currently have 81 invoices that have workflow status "in process". However, the last line of this status is "agent determination issue". I've assigned the appropriate user in PFOM and i want to restart the workflow item, but i cannot use SWPR.
Normally it should be in error and you can use SWPR, and that fixes everything- however why is the workflow still "in process" and not in error? and how can i complete the workflow item now that the agent has been assigned? do i just create a new workflow using SWUE and delete the old one? Many thanks.Hi,
OK then try like this , as you said you do not have authorizations to SWI1_RULE right so do teh below steps,
1. Execute SE37 and execute the fucntion module ALINK_CALL_TRANSACTION.
2. Now mention the txn name as SWI1_RULE.
3. Now you should be able to see teh initial screen of the txn.
4. Now enter teh workitem ID which is in ready state not the top workitem ID, the workitem for which the agent is not assigned. Click F8.
5. Now choose that workitem ID and click CTRL + SHIFT + F11.
it should re evalutae the agents, if this is also not determing then make a note of the RULE ID from activity step and open the txn by using the above function module and try to simulate the rule or please let us know what is the rule type.
Regards
Pavan -
Agent Determination Rule Not Working
I have created an new agent determination rule in PFAC.
The category I used is "Agent Determination: Responsibilities".
I have also selected the "Terminate if Rule Resolution has no Result" option.
The container has one element in it which is NOT mandatory called "Clinic".
I have set up the responsibilities, where there is only one which catches all - In other words, I created a responsibility for Clinic "*". I have also assigned a position as a responsible agent. The position is linked to a person number, and the person has a user-name assigned - All are in the valid period.
If I test the rule, and do not enter anything for the Clinic, and click the test button, it returns my one agent, which is correct.
The problem is that in my workflow I have assigned the rule as a responsible agent. At runtime, the workflow falls over saying that the agent determination has failed. This does not make sense, since I have not passed anything in binding to the rule. As mentioned earlier, when testing it works fine. I have tried using the rule with and without binding but it wont work. If I change the step in the workflow to rather use position, it works.
Please let me know if you have any ideas - I am really battling with this strange problem.I tried deselecting "Terminate if Rule Resolution has no Result" in the rule definition.
Having done that, the workflow now works correctly - It actually DOES find an agent and the workflow goes on as expected.
This is really weird, because if the terminate option is selected, it falls over saying that no person was found. Now with the terminate option not selected, it finds the agent - Is this a bug, or am I misunderstanding something??? -
Function Module Interface for Agent Determination Rule without Tables Param
Hi,
I'm currently trying to create an agent determination rule using a custom function module. I know that the function module must have a certain interface consisting of two table parameters to be accepted by the system.
But since table parameters are obsolete for a few years, what's the solution for this?
As workaround, I just copied an old function module with the right interface but that's not an ideal solution for me.
Did anyone else come across this?
Thanks and regards,
MaxHello,
"I know that the function module must have a certain interface consisting of two table parameters to be accepted by the system."
So, you have to use tables. You can't use tables in a new function, but you can copy one that does.
What sort of "solution" did you have in mind?
regards
Rick Bakker
hanabi technology -
Agent determination rule problem
Hi all,
I have the same problem as the one posted below:
>Hi All,
>
>I have created a workflow,in which i am determining >agents by Rule.If we go to transaction 'pfac' and excute >the rule it gives me the required result but after using >the rule in workflow it is not at all giving me any >result ( i.e the workitem is send to all users )I even >tried sending it hardcode values.
>
>Thankx and Regards,
>Prajakta
None of the answers posted solved my problem.
Does any one (especially Mike and Prajakta) have a clear solution to this problem?
Thank you,
Adil.Hi PN!
Its very simple to check the binding between the workflow and the task.
Once you double click on the step (Approve travel request), click on the 'control' tab and check the task number. Whatever task number is mentioned here that task will be called. So you can double click on the task and see whether its the new task or not.
Also, on the same page you can check the binding out. Always do a syntax check on the binding to ensure everything is fine.
Inorder to check the binding between the WF and the role you will have to go on to the tab which shows the agent assignment. Just below that you can see the binding as well.
Let me know whether you need any more information.
Regards,
MA. -
HCM F&P:Agent determination without Rule 17900012 .
Hi experts,
I am doing TRANSFER process. In my workflow , I am using Rule 17900012 for agent determination . So the workflow is executing successfully.
Now I dont want to use that rule. Instead I tried to give the variable as the EXPRESSION for agent. But then that task is not appearing in Universal Worklist and I checked the Workflow Log, the Wok Item is in READY status. And it is not allowing to execute the item saying 'WORK item couldnt be found.
Is there any restriction like we should maintain the Rule 17900012 to get the task in the UWL?Hi
Try with
Expression = &_WF_INITIATOR&
Kind Regards,
Mukesh -
Agent Assignment using rule !!!
Hi,
am using standard Woerkflow template WS20000317(PM notifications).It has standard tasks TS20000544(Process notifications),TS20000545(Edit new notifications),TS20000546(Complete Notifications). In each of these tasks, the agent determination should be thru a standard rule AC00000171(std. role for maint. not.) (Function Module QQWF_RESPONSIBLE_FOR_NOTIF). But this rule is not picking up the person responsible/user responsible from the Notification header.The requirement is that when a person creates a notification thru iw21, he assigns a user responsible in notification header. Now the workflow shud start and send a mail to this user responsible.But its not happening. I dont want to assign explicitly the agents for the tasks but want that it shud pick up from notification header or tasks tab user responsible.
Regards,
SaurabhHi Saurabh,
Please check if the follwoing links help you:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70c6c6e7-3ede-2a10-deb8-8da2071fbaf0
https://forums.sdn.sap.com/click.jspa?searchID=18799375&messageID=3969921
http://****************/Tutorials/Workflow/adhocAgent/Assignment1.htm
http://****************/Tutorials/Workflow/Workflow.htm
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/workflow%252bscenario
/people/sapna.modi/blog/2007/02/19/workflows-for-dummies--introductionpart-i
Hope this helps!
Regards,
Saumya
Maybe you are looking for
-
My computer told me I had to download a new verison of itunes, the old one wasn't allowing me to put music on. So I went to itunes.com like it said and followed everything and downloaded it but now I cannot open it because it says it was downloaded i
-
Need code for mobile browser detection
So I've read there are several different ways to do this using HTML, JS, PHP, Cookies, etc... and found a discussion suggesting to search for "javascript detect mobile browser" which I did, and maybe since the forum is from 2010 the search results ar
-
My Smart Cover is causing the aluminum to wear off/ipad crashing
About two months ago, I noticed my Smart Cover started to wear the aluminum off. The spot is getting bigger and there are others areas now where it is wearing off. On an unrelated not, my iPad crashes apps ALL the time! Even after resetting it. My on
-
Move automation data at same time in differenct tracks?
hi , anyone here can give me some sugesstion ? I want to move the automation data in different track at same time but i cannot find how to make it . I have 7 tracks all written automation volumn data , and now I want to move them all 3 db down in som
-
LMS 4.2 not processing syslog messages
I have a new install of LMS 4.2 on a virtual appliance. No syslog messages are getting into LMS. They are being received by the server, but are showing up in /var/adm/CSCOpx/log/dmgtd.log, and aren't getting processed by SyslogAnalyser. Here's the