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>

Similar Messages

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

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

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

  • 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

  • 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

  • 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

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

  • 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

  • How to evaluate workflow rule for agent determination

    Dear All:
    It seems there are several types of rules that can be used for agent determination. I am wondering how could I evaluate the rule in coding.
    I know for the rule described by a function module, it would be easy to evaluate it because you simply need to call the function module. However, for others, you might have to call the rule according to its definition. Is there a generic method/function to evaluate it?
    Thanks & Best Regards,
    Haifeng Hu

    Hello,
    fm RH_GET_ACTORS
    regards
    Rick Bakker
    hanabi technology

  • 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

  • Agent Determination for Service Entry (BO-BUS2091)

    HI,
    I am new to workflow and facing below issue.
    I have created a workflow for Service entry sheet approval (BO- BUS2901) and I am having an issue with the agent determination. I am using my own Ztable to determine the possible agents.
    I am using the following code in the FM of the rule I created for determining the agent:
    FUNCTION ZME_SRV_REL_GET_RESPONSIBLE.
    *"*"Local Interface:
    *"  TABLES
    *"      ACTOR_TAB STRUCTURE  SWHACTOR
    *"      AC_CONTAINER STRUCTURE  SWCONT
    *"  EXCEPTIONS
    *"      NOBODY_FOUND
    INCLUDE <cntain>.
    TABLES: essr_rel, essr,zmm_service_mail.
    DATA: object TYPE swc_object.
    DATA: BEGIN OF essrkey,
    lblni LIKE essr-lblni,
    END OF essrkey.
    DATA: verak_user TYPE csks-verak_user.
    REFRESH actor_tab.
    CLEAR actor_tab.
    swc_get_element ac_container 'service' object.
    if sy-subrc eq space.
    essrkey-lblni = object-objkey(10).
    select single * from essr where lblni = essrkey-lblni.
    select single * from zmm_service_mail
    where frggr = essr-frggr
    and frgsx = essr-frgsx.
    if essr-frgzu eq ' '.
    verak_user = zmm_service_mail-pernr1.
    elseif essr-frgzu eq 'x'.
    verak_user = zmm_service_mail-pernr2.
    endif.
    actor_tab-otype = 'us'.
    actor_tab-objid = verak_user.
    append actor_tab.
    endif.
    ENDFUNCTION.
    When I debug, sy-subrc = 8 at swc_get_element ac_container 'service' object.
    What could be the problem?
    Note- I have gone thru below thread but still I am unable to find the error.
    http://scn.sap.com/thread/2017416

    Hi,
    You should re-read the thread that you quoted above. The mighty Sue Keohan suggested a solution.
    Instead of trying to pass a service *object*, and then extracting the key, you can just pass the key itself.  It has type EESSR-LBLN1.
    swc_get_element ac_container 'service_key' lv_service_key.
    if sy-subrc eq 0.
      essrkey-lblni = lv_service_key.
    (etc)
    cheers
    Paul

Maybe you are looking for

  • Flash query, integrating.

    Hi, I hope this thread is in the right subject area! If not, thanks for reading. I've recently completed a Flash survey and I'm interested how it was developed. What seems to be clever is that you run through the questionnaire and the SWF clearly see

  • SO8 Debian Installation doesn`t work

    Hi Had someone intalles SO8 an a Debian system? Where can I find a installation guide for debian? Thanks

  • Thank you. I did not realize that there was a print center on my iPhone 5,I was sending it too many jobs back to back,

    Thank you for your response. My iPhone 5 is now air printing. I found out that there is a print center on my iPhone and I was overloading it by sending it too many jobs at once.

  • Go_item

    i have two blocks in one form master and detail when i am entering data in detail block first record data eneterd after this i press enter or tab it will go on second record what i want when the second or third or more records first item is null or b

  • Windows 10 TP Won't Install

    I'm trying to update from Windows 8.1 to Windows 10 Technical Preview. Windows Update is downloading build 9926 and gets to about 70% saying "Setting Up". My computer restarts and I get a small watermark at the bottom right of the screen saying evalu