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

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.

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

  • Enhanced Interface Determination - does not work!

    Hi guys,
    well i have a scenario where i have done a multi mapping where MT_TYPSCH is generated for each new value which occurs in one special source field.
    <NO>1</NO>
    <NO>2</NO>
    <NO>3</NO>
    ..so three MT will be generated.
    Now i would like these messages devided to different Business Services where each one has on FTP-CC to write a file with a certain filename, e.g. File1.txt, File2.txt, File3.txt.
    Therefore i thought i use different receivers in Receiver Determination with using Conditions and pointing to a value in field with XPATH. So depending on field <NO> the message should be routed to the given receiver targets.
    I surely use the enhanced Interface Determination because i use multi mapping.
    But when i run test, i receive 3 files with different names but same content. For me the receiver determination is not working that good.
    Can someone help me on this?!
    source:
    <ZBC0>
    <IDOC BEGIN="">
    <EDI_DC40 SEGMENT="">
    <ZBC0 SEGMENT=""> 0...9999
    <NO>1</NO>
    <TYPE>1B20-6</TYPE>
    <SPEC>152J</SPEC>
    </ZBC0>
    <ZBC0 SEGMENT="1">
    <NO>2</NO>
    <TYPE>1B20-6</TYPE>
    <SPEC>152J</SPEC>
    </IDOC>
    </ZBC0>
    target:
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_TYPSCH> 1..1
    <TYPSCHRecordSet> 1..1
    <TYPSCHDetailsStruc> 1..unbounded
    <FELD1/> {represents content of <No>}
    <FELD2/>
    <FELD3/>
    </TYPSCHDetailsStruc>
    </TYPSCHRecordSet>
    </MT_TYPSCH>

    Hi Mario,
    ok here is my requirement.
    We get ONE IDoc in which several items are listed. These have one field <NO> which can have the values 1,2 and 3. Depending on this value the items should be collected and written to different files on FTP.
    My approach is that i divide all the items in mapping in different Message Types. This MT should be routet to different business services which has one CC to write on FTP.
    To get the items with e.g. <NO>1</NO> i took condition in reciever determination using xpath. ((/ZBC21/IDOC/ZBC21/NO = 1).
    So depending on the mapping everything runs - in my point of view but the different messages are not routed to the different services to write them to different files.
    Source
    <ZBC0>
    <IDOC BEGIN="">
    <EDI_DC40 SEGMENT="">
    <ZBC0 SEGMENT=""> 0...9999
    <NO>1</NO>
    <TYPE>1B20-6</TYPE>
    <SPEC>152J</SPEC>
    </ZBC0>
    <ZBC0 SEGMENT="1">
    <NO>2</NO>
    <TYPE>1B20-6</TYPE>
    <SPEC>152J</SPEC>
    </IDOC>
    </ZBC0>
    target:
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_TYPSCH> 1..1
    <TYPSCHRecordSet> 1..1
    <TYPSCHDetailsStruc> 1..unbounded
    <FELD1/> {represents content of <NO>}
    <FELD2/>
    <FELD3/>
    </TYPSCHDetailsStruc>
    </TYPSCHRecordSet>
    </MT_TYPSCH>
    The output should be files with content of items depending on field <NO>.
    file1.txt (all items with <NO>1</NO>)
    file2.txt
    file3.txt
    I hope i made it clearer!
    br

  • Infopath form load rule not working in browser forms but works on Client

    Hi
    I am working on an Infopath form and there are rules on form load. The form load checks for a value in a list, if the username() matches the one in the list, then the form would change its view.
    It works when I open it on client, but on the browser it fails.
    Have anyone encountered such an issue.

    Check below:
    http://stackoverflow.com/questions/16222681/infopath-rule-is-not-running-when-checking-sharepoint-list-field-value
    Ensure that "Include data for the active form only" was checked (I had to separate this field into another data connection because that box could not be checked for another field I was using), and
    Ensure that in the rule I was selecting from the "dataFields" folder under the data connection instead of "queryFields"
    http://sharepoint.stackexchange.com/questions/28554/infopath-form-load-rules-not-working
    if I edit the Infopath form on Infopath 2007, it seems that the rules for the load form will be visible if created.
    This look like a bug. Here are the steps below that will lead you to the bug:
    Step 1: Open the infopath form in Infopath 2010 and create 6 rules for Form Load and Save it as a file.
    Step 2: Open that infopath form that you created in Step 1 in InfoPath 2010 and go to the
    Form Load section. You will only see the first 5 rules. The 6th rules that you created for Step 1 will just "vanish". Now, close that infopath form.
    Step 3: Open that infopath form that you created in step 1 in InfoPath 2007 and select Tools > Form Option. In the
    Open and Save category, click the Rules button and add a new rule in it and save it.
    Step 4: Open that infopath form that you modify as describe in Step 3 in InfoPath 2010. That 6th rule will be visible.
    Therefore, there might be a bug in InfoPath 2010 that restrict Rules to a max of 5 in Form Load and thus if anyone open that form in SharePoint, only the first 5 rules will be executed.
    If this helped you resolve your issue, please mark it Answered

  • Defaulting Rules Not Working for Repair Orders in OM?

    Hi,
    Defaulting Rules have been setup for return line & standard line based on few conditions and it is working fine if we create a sales order directly from OM (Manual SO)?
    But in our project we are using  Depot Repair(Repair Orders), we tried to create a service request and then converted to a sales order here defaulting rules not working for repair orders?
    Please help me to solve this issue ASAP.
    Thanks,
    Kishor

    Hi,
    You have like this:
    1. Price list
    2.OE_DEFAULT_PVT.Get_SOB_Currency_Code
    You have to make
    1. XXOE_DEFAULT_PVT.custom_code
    2. Price list
    3.OE_DEFAULT_PVT.Get_SOB_Currency_Code
    Did you made own custom code to pick currency?
    Regards,
    Luko

  • Rule not working in workflow but works in simulation mode

    Hi guys
    i have one more strange issue. I have a rule assigned to one of my task to dtermine the agnet based on a z table which is executed by a z function module in the rule. The rule works fine and gets the desired agent when run in the simulation mode. But when we test it from the workflow it dosent seems to be working. When i check the workflow log it says no agent for this task. any idea what am i missing?
    thanks in advance.

    Hi
    yes both the workflow and the dialog step( in our case a decision step)  is categorized as General task. I also have used the SWU_OBUF to refresh the buffer but still the same results. Rule works fine in simulation but when it is run in a workflow the workflow log says no agent found. any more suggestions? the workflow to rule binding is fine as well. The rule requires 3 parameters and in the binding i am pasing all the 3 elemts to the rule containers. so i am not sure why its not working?

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

  • Alert Rule - not working. Wild Card character issue

    Hi All,
           I have a requirement where I need to trigger alerts for mapping failures
    of all the interfaces whose namespace is urn:abc.com:odna* or urn:abc.com.odna*.     (in the first instance, there is dot before odna and int he second instance, a colon before odna )
    So to suit both the cases, I gave urn:abc.comodna in the Alert Rule.
    It worked before. But now its not working.
    Then when i changed it to urn:abc.com:odna* it works again. i really dont understand how it worked before and why it fails now.
    What is the reason for the unpredicatable behaviour of WildCard Character based Alert Rules?
    Should Wild Card Characters be avoided completely?

    Hey
    Just create two separate alert rules for the same alert category
    one for urn:abc.com:odna* and another for urn:abc.com.odna*.
    but before that please make sure that "Suppress multiple alerts of this rule" box is unchecked.
    Also please check SAP Note 913858
    Thanx
    Aamir
    Edited by: Aamir Suhail on May 20, 2009 9:16 AM

  • Substitution rule not working

    Hi
    The substitution rule for getting the desired Business place and Section code is not working in Transaction code MRIS, whereas this substitution rule is working in all other Transaction codes.
    Please suggest.
    Regards
    Prakash

    Bhanu,
    Subsitution rule works when you are posting in Financial Accounting tables: BSEG and BKPF. FB60 and MIRO do that.
    The report doesn't make post in mentioned tables to get substitution done. Please make sure if there is a existing call transaction or only a planning are being assigned.
    regards    

  • Receiver Determination-Condition not working

    Hi all,
    It is simple iDoc to File scenario.  I have two receivers based on a condition in the receiver determination.  I am getting all data into both receivers without executing the condition. 
    Below is the condition.  Any idea why this is not being executed?  Thanks for your help.
    (/ZGENERIC_OUTBOUND01/IDOC/Z1GENERIC_SDATA/SDATA = '1C')
    (/ZGENERIC_OUTBOUND01/IDOC/Z1GENERIC_SDATA/SDATA = '1B')

    >   <?xml version="1.0" encoding="UTF-8" ?>
    > - <ZGENERIC_OUTBOUND01>
    > - <IDOC BEGIN="1">
    > - <EDI_DC40 SEGMENT="1">
    >   <TABNAM>EDI_DC40</TABNAM>
    >  ......
    >  ......
    >   </EDI_DC40>
    > - <Z1GENERIC_SDATA SEGMENT="1">
    >        <SDATA>1C</SDATA>
    >   </Z1GENERIC_SDATA>
    > - <Z1GENERIC_SDATA SEGMENT="1">
    >        <SDATA>1C</SDATA>
    >   </Z1GENERIC_SDATA>
    > - <Z1GENERIC_SDATA SEGMENT="1">
    >        <SDATA>1B</SDATA>
    >   </Z1GENERIC_SDATA>
    >   </IDOC>
    >   </ZGENERIC_OUTBOUND01>
    You cannot have both the conditions in same IDOC at the same time. Like here in the above example you have 1C & 1B both, so in this situation it will not work.
    Just for testing either remove 1C or 1B and then test. I am sure it will work.
    You cannot send the same payload at the same time based on two different conditions to 2 different receivers except you put 'OR' in your conditon for 1C & 1B. But in this situation message will go to both of the receivers which you don't want here.
    Regards,
    Sarvesh

  • Delete rule not working

    I subscribe to a mailing list using a particular email address (not my primary account), all mail for which is redirected into a mailbox. I only want to keep messages from the last five days. I have a Rule which is set as follows:
    If ALL of the following conditions are met:
    Account = <the account>
    Date Received is Greater Than 5 days old
    Perform the following actions:
    Delete Message
    This rule does does not work. It is the first rule in my list of Rules. And it simply does nothing. Why?

    Maxplanar,
    Mail rules only run when the item is first processed. So you are in effect going to delete things only when they are received in an "old" state.
    I would set up a smart mailbox or two. One to only show the 5 days of mail you want to pay attention to. Optionally make another smart mailbox to contain messages older than 5 days. You can just refer to the first mailbox and only see the messages you want. The other mailbox will be there for once a month when you select all the messages and delete them.
    Most macs can handle 5 to 10 thousand messages without even starting to slow down. Perhaps once you have a managable folder that shows you the messages you care to see, you can live with manually cleaning up much less often?

  • Derivation Rules Not Working for other company codes

    Hi,
    I have 5 Company codes and only for one FM was activated. now i want to activate FM for all 5 company codes. for which i have assigned the FM area to all 5 company codes. I have also assigned the derivation strategy to all 5 company codes as well. now when i post a transaction for any other company code derivation rules is not being process hence no commitment item or fund center is derived. however for the original company code for which FM was activated in the first derivation rule are working fine means system is deriving commitment item and fund center. can any one tell me why derivation rules are not working for other company codes? do i have to add Company code in source field of derivation strategy? could this be the reason? because in beginning there was no other company code so we did not included any company code field in the first place.
    Regards,

    Faizan,
    Go to  Funds Management Government> Actual and Commitment Update/Integration> Activate/Deactivate Funds Management.
    In the screen create an entry for each Company Code and Funds Management Area combination.
    Activate the AA Derivtn flag if you want the derivation to be called and the Update flag if you want to update commitments and actuals in FM.
    Thanks
    Shyam

  • Copa derivation rule not working for Discount GL

    Hi All,
    Kindly note that I have a distribution rule where company & plant combination is used where condtion is that customer group 3 should be 018 and then replace distribution channel to 03.However the rule is not working for discount GL posted in the billing document.
    I tried testing it in FB50 but then it does not allows me to enter plant and because of that derivation rule fails. However in my billing doc I do see a plant  against discount GL and still the rule is not getting picked.
    I had raised this issue earlier but the reply where not as expected and so I have rephraised my question.
    Kindly help me on this.
    Regards
    Pranay

    Hi Pranay
    I could not understand your req to a great detail, following are my observations
    1. There should be derivation rule in place 1st of all to derive customer group from billing doc...
    Check if Cust Group is populated in your COPA doc or not.. For this cust group should be a segment level char in KEQ3
    2. Create a derivation rule using method "Derivation".
    Source fields would be Cust Group, Plant and Company code ( I guess you want to change dist channel with this combination)
    Target field would be VTWEG (Dist Channel)....Click on the magnifying lens beside VTWEG and choose relevant radio button "Overwrite if ......."
    CLick on RULE VALUES and maintain the required Values there
    This should work...
    Regards
    Ajay M

Maybe you are looking for

  • Question on "Master Detail page using ADF" sample

    I downloaded the "Master Detail page using ADF" sample application. I modified editDepartment.jsp page to include the Commit button as follows: <html:submit property="event_Commit">Save and Commit</html:submit> When I go to edit a department record a

  • Websites not showing up in iWeb

    I have some websites that were created in an earlier version of iWeb that show up in the Sites folder on the MobileMe website, but they DO NOT show up in iWeb. I cannot figure out how to "sync" my local iWeb with what is on MobileMe. Any Suggestions?

  • IPhone 4 soundis very low when headphones are used

    my iPhone volume is extremely low when i plug headphones in when listening to Netflix, Pandora, etc. When i unplug the headphones, the volume is normal when coming from the speakers in the phone- this only happens when we use headphones. We took the

  • HT201401 My Iphone is on silent and i cannot get it off

    My I Phone is on silent mode i  cannot get it turned off

  • Apache ColdFusion 10 Process .HTML Files Containing CFML

    I am on Mac Mountain Lion, but that shouldn't make a difference. This is for a clients website, so I need to get this working ASAP. Any advice on how to get CF 10 working with this setup, only serving .html files that contain CFML? So far I have trie