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.

Similar Messages

  • 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???

  • 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
    Raju

    Hi,
    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.

  • 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,
    Max

    Hello,
    "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

  • Reg. Agent Determination Rules

    Hi Experts,
               Could you please let me know the Work Flow (Standard Work Flow) in which they have used the Agent Determination Rules. Also I need the steps that we need to follow after the creation of Rules that is How\where to Assign the it in Work Flow.
    Thanks in Advance.
    Regards,
    Senthil N S

    Hi Senthil,
    Check this link <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/95/ed94ee764c11d3b535006094b9c9b4/frameset.htm">Rules - Agent Determination</a>.
    Regards
    <i><b>Raja Sekhar</b></i>

  • SWI1_RULE - Agent Determination

    Hi Everyone,
    I have a problem where a workitem is not finding an Approver. After I run SWI1_RULE for the workitem then it is routed to the correct approver, which is fine. However I keep having to run SWI1_RULE each time for the same workflow problem to push the workitem through to the approver.
    Everything in the system is set up fine in terms of Org Data and the buffers are being refreshed fine - we've started refreshing after all changes and can rule the buffer out as a problem. The WF-BATCH user authorisations are all fine too.
    I'd be interested to know what you think of this problem and maybe you have an idea about the workflow cannot send the workitem to the approver and thus I keep needing to use SWI1_RULE each and every time.
    Many thanks for your time
    Kind Regards
    DK

    Hi,
    Is this problem happening for new workflow instance also?
    it looks like, you might be checking with old workitems ( which were created before any change to rule definition), because SW1_RULE is nothing but reexecuting the agent determination rule again, there should not be any difference when it is executed by Workflow runtime or by using SWI1_RULE.
    Regards
    Krishna Mohan

  • 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

  • Agent determination problem

    I have a workflow that has been in production for almost a year.  We are in the middle of integration testing for another rollout and I'm getting agent determination errors in this workflow.  There are three steps involved.  The first two use the exact same rule.  The first of these two works fine.  When it tries to run the rule again for the second step, it gets no agent found.  If I test the rule it works.  If I restart the workflow, it works.  When it moves on to the third work item using a different rule, it errors out no agent found.  When I test this rule, it works.  When I restart at this step, it also works.
    This is a new integration client that was copied from production.  I've performed the standard workflow customization like I always do.  I've run several other workflows and only notice the agent determination problems in this one.  The workflow hasn't changed in months although there have been some user security changes...I'm not sure how that could really affect the agent determination during the creation of work items. 
    One thing that might be important...userA created the first workitem and the agent determination resolves to userB.  When userB executes the first work item and completes, the second work item should also resolve to userB using the exact same rule.  This fails.  I restarted it using my account and it resolves to userB.  UserB executes work item #2 and work item #3 should resolve to userC but the agent determation fails again.  I don't know whether the work item agent is "used" to perform the creation of the next workitem or not but this is the only difference between the first two work items and one works while the other does not.
    It's almost like userA can perform the agent determination but userB cannot.  I can't manually execute the agent determination as userB so I ran se37 as myself in debug and changed SYST-UNAME to userB and it worked fine and returned userB as the agent.  That would seem to eliminate security as an issue with the agent determination.

    Hi,
    Are you absolutely sure that it is not an authorisation issue? Can you give SAP_ALL (and the possible structural authorisations) to all the users that are involved in the process? (I don't think that changing sy-uname in debug mode to another user really is a correct way to try to prove whether this is an authorisation issue.)
    The agent determination of the following step is executed by the previous WF agent, if there is no background steps between. So if the previous agent doesn't have enought authorisations, the agent determination will fail.
    Regards,
    Karri

  • 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,
    Him

    Hi 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

  • Problem in agent determination for custom wf of contracts

    Hi
    I've copied standard wf for contracts i.e. 20000079. In my custom wf the step for release contract I've maintained the standard rule 20000029. bcos this rule is assigned for standard one with task 20000172. Am I correct in agent assignment??bcos my agent determination fails and wf goes into error. But if I simulate the rule separately it works fine. So there is no prob in rule,also i've properly binded it with task passing purchasingContract and releasecode.
    Could u pls help me.
    Thanks

    Check that the binding between the workflow and rule are OK. Maybe your workflow is not delivering all the needed parameters for the rule (the same parameters that you are using while simulating the rule).
    Another thing that you should check is that make sure that this is not an authorisation problem. It is possible that the rule is executed by the dialog user (not WF-BATCH) that doesn't have enough authorisations to do all the necessary rule logic. Just give remporarily SAP_ALL to the user who is executing the test.
    Regards,
    Karri

  • Error in resolution of rule ... for step - Agent determination failed

    Dear All,
    In SRM 7.0 CS, i am having a problem in the area of work flow. In general, the workflow is working fine, but at times the work item does not get delivered to the approver.
    As per the analysis from SWI2_DIAG, the error is the following for the concerned shopping carts:
    Error handling for work item 000000056146
    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 000000056156
    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 000000056155: Object FLOWITEM method EXECUTE cannot be executed
    Error handling for work item 000000056154
    Error when processing node '0000000293' (ParForEach index 000000)
    Does anyone have an idea on the root cause of this error?
    Thank you very much.

    Hi Masa,
    thank you very much for the reply.
    Yes, rolewise the approver is having the manager role in SRM and also on the portal. But what do you mean by "manager position in PPOSA_BBP"?
    The user is hanging in his node together with the other users. Is there any specific "manager position", where the approvers have to be put in PPOMA? I mean, the other approvers, for whom the workflow is working normal, are hangig in their nodes just like the approver who is not getting the work item.
    Moreover, if i drag the users (the requestor and the approver) into an other node (for another plant of another company code for example), than the work flow is working fine.
    Can there be any other reason for such an error?
    Thank you very much.

  • 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.

  • 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

  • Problem in Org determination rule

    hi all,
    i have postal codes assigned to the org model as attributes,(ie) the org unit is responsible for that postal code only, i have created org determination rule by selecting the postal code as an attribute, i have created bp in which i have mentioned one of the postal code which is in the org model,
    when i run transaction i need only the org unit to be picked and shown based on the postal code mentioned in the BP , now it is showing all the orgunits which i dont need,
    please suggest me what setting i have to do.
    its urgent

    Hi shalini,
    while simulating the rule in pfac, i am able to get the correct org unit for the pincode, while running the transaction my problem is still the same getting all org units in the pop up, i am sure i have correct org rule assigned to org profile and profile to transaction.
    to be clear, my requirement is, for a transaction type, i have defined prt functions "customer" and 'employee responsible' in UI interface setting of prt detr procedure. here the employee responsible should not be the user creating the transaction. this should be the org unit "sales group" which is having certain pincodes assigned in org model, the same value which is populated in sales group field should be populated in 'Emp responsilbe' field in UI of transaction type.
    here my first problem is i am getting all the org units for the selection when running the transaction, where user doesnt know which org unit should be selected for the customer belonging to the particular pincode.
    if i get value sales group field how can i get this value populated to Employee responsible field in UI
    suggest me how can i achieve this.
    ITS URGENT

  • FM/Code to retrieve agent from Rule (Agent Determination: Responsibitlites)

    Hi All,
    I have a requirement to pick agents from a Rule (Agent Determination: Responsibitlites).
    I would like to select the agent, for the respective conditions (as defined in its Container). If there is NO RESULT (no user assigned), I would like to add in WF admin rather than returning NO AGENT.
    I am looking for any FM or some code which will help me search this rule and picks the relevant agents.
    If there is no agent determined I will then determine WF admins and add to it.
    (This way I can send the workitem to WF admin than  to allow the rule terminate in error -  when there is NO Result)
    (Terminate If Rule Resolution Without Result is checked)
    Kindly guide me on this.
    Thanks
    VJ

    Check this code
    Here DOCUMENT_STATUS is Container Element name in Rule and doc_stat is its value
    data:I_ACTOR_TAB like SWHACTOR occurs 10,
    I_ACTOR_CONTAINER LIKE SWCONT OCCURS 10.
    PERFORM SET_ACTOR_CONTAINER USING 'DOCUMENT_STATUS' doc_stat.
    FORM SET_ACTOR_CONTAINER  USING    P_NAME
                                        P_VALUE.
    DATA: L_WA_ACTOR_CONTAINER LIKE SWCONT.
    Set the container element to pass to the RH_GET_ACTORS function module
    CLEAR L_WA_ACTOR_CONTAINER.
    L_WA_ACTOR_CONTAINER-ELEMENT = P_NAME.
    L_WA_ACTOR_CONTAINER-VALUE = P_VALUE.
    APPEND L_WA_ACTOR_CONTAINER TO I_ACTOR_CONTAINER.
    ENDFORM.                    " SET_ACTOR_CONTAINER
    CALL FUNCTION 'RH_GET_ACTORS'
      EXPORTING
        act_object                      = L_act_object
      ACT_TASK                        =
      ACT_WI_ID                       =
      ACT_PLVAR                       =
      SEARCH_DATE                     = SY-DATUM
      ACTOR_CONTAINER_OO              =
      tables
       ACTOR_CONTAINER                 = I_ACTOR_CONTAINER
      EXCLUDED_AGENTS                 =
        actor_tab                       = I_ACTOR_TAB
      ERROR_TAB                       =
    EXCEPTIONS
       NO_ACTIVE_PLVAR                 = 1
       NO_ACTOR_FOUND                  = 2
       EXCEPTION_OF_ROLE_RAISED        = 3
       NO_VALID_AGENT_DETERMINED       = 4
       NO_CONTAINER                    = 5
       OTHERS                          = 6
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    thanks
    Arghadip

Maybe you are looking for

  • Problem with iTunes in Win XP

    Hi. I have a problem with my iTunes. I have downloade the game Asphalt 4: Elite Racing to my pc. But when I want to sync with the iPod touch, it give me this failure: The program Asphalt 4 was not installed on the iPod touch, because you do not have

  • I would like to report a user.

    Hello, as I said in the title I would like to report a user for ddosing my friends and threatening to shut down my friends and my routers. Here is his name and some quotes. [4:18:57 AM] ∆яɪsᴛ: Don't say those words little boy. [4:19:01 AM] ∆яɪsᴛ: Som

  • Freight is not updated in R/3 in the Extended Classic scenario

    Friends, Freight is not updated in R/3 in the Extended Classic scenario. Once a PO is ordered, if a freight condition in SRM is applied, it does not get updated in R/3. We have created a condition for Freight (Value and Percentage)in Create Payment C

  • Is it possible to move the local CD database from Windows to Mac?

    I have/had iTunes installed on a Windows box. Windows knows all my CD and track titles (some customised from those in the online CDDB). There are more than 250 CDs, so it is a lot of data (if I have to retype it all...) I have recently moved to a Mac

  • Script to enable WOL for list of computers in CSV format

    We are looking to enable Wake On LAN in our environment of 30,000+ workstations. I have been successful in getting the workstation to wake up, but I had to manually a) change the BIOS setting to enable WOL and b) change the Adapter setting enabling p