Agent determination for workflow

Hi everyone,
I have a classic issue: I'm trying to assign a workflow task to an agent. The agent should be determined from the container element "APPROVER". In the task I've entered the expression &APPROVER&; however, I'm receiving error "Agent determintaion for step 4 failed..." "Result of agent determination does not agree with agents of task". And, yes, I've made sure the APPROVER element is of type Import and has a proper value.
I don't get this; I thought setting the agent to the value of the container element should do the job? After all, the container element "APPROVER" comes up in the F4 search help under the Decision tab of the task... what's wrong here?
The WF works fine if I set the "WF_Initiator" as the agent, however. But, this is a bit limiting in the long run...
Regards,
Trond

Hi Ravi,
this is what I actually did... but I found another post, with a reply from Ramki Maley, advising me to make the APPROVER of type SWHACTOR. That helped!
Thanks anyway,
Trond

Similar Messages

  • Agent determination for step 0000000081 failed error in workflow

    Hello All,
         I am doing employment verification from ESS portal. In the workflow step I have selected RULE to determine the agent. To configure rule, I double click on rule, on next screen selected "Agent determination - responsibilties" to determine the agent. I configured responsibilties with the valid value ranges and everything but the workflow is going into error! I did research and not sure what I am doing wrong. I checked the workflow container in workflow log and all the values that are supposed to pass to rule container are showing up fine.I keep getting the error:
    Agent determination for step 0000000081 failed
    Result og agent resolution does not agree with agents of task.
    Any feedback you could provide would be greatly appreciated.
    Thanks.
    Mithun

    1. In Transaction PFTC, select Task Type = Standard Task and Task = 01000076
    2. display the task details.
    3. Now go to Additional data ->Agents Assignment->Maintain
    4. Select the task here and click Attributes in the application tool bar.
    5. Select the General Task radio button and hit transfer.
    -- You have made your task general.
    To Synchronise the runtime buffer ,simply excute T-Code SWU_OBUF and hit the Start Synchronization button.

  • 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

  • User exit for workflow WS20000075  agent determination for PO

    Hi,
    I have requirement to determine agents for workflow WS20000075 for PO from Ztable entry.  Is that customer exit EXIT_SAPLEBNF_005 will work ?

    Hi ,
    Try assigning a new Agent Rule in the Task TS20000166.
    You will have to create a custom rule using transaction PFAC. Choose option "F - Agent dertermination function to be executed" and assign a new Z function module which will determine your agent.
    You can refer to function module ME_REL_GET_RESPONSIBLE while creating your own function module.
    Cheers!!!
    Gautam

  • Need help with agent determination for release workflow

    Hi,
    I am trying to perform a release in the contract(FS-contract management) by using the framework for principle of dual control. When i create a contract, i get a message that says contract created, not yet released. But i am not able to get the work item in my inbox to release the contract. The SWI1 transaction shows 'no agent' for the triggered workflow. I am using the template WS50100021 as there is only one release step. By default there is a rule '50100017' given for the template. But in the customizing settings i have the section called 'assign rule to release steps'. Do i need to assign a rule here for agent determination. If so, what about the rule in the WS50100021 template? Which one should i use? I am able to execute the method 'release' of object BUSISB001 from SWO1 and release or reject the contract creation. But i am not able to get the workitem in my inbox in SBWP transaction

    Hi Suhas,
    The rule used in workflow template WS50100021 is a standard one. So try to find out that on what basis it is fetching the agents. It could be the case that the logic specified in the rule does not fulfill your requirement.
    The other reason could be that you have not specified the task as general. Please check if the agents tab is activated(green) in the task or not. If it is not you need to set the task as general.
    SOLUTION : if you want to get the workitem in your own SAP Inbox for testing purpose, you can set the WFINITIATOR as agent instead of that standard rule. This setting will send the workitem in your own SAP Inbox.
    Regards,
    Guddan

  • 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

  • Agent Determination for Service Entry

    Hi Guys,
    I created a workflow based on BO BUS2901 to send approval notification to an approver and I am having an issue with the agent determination. I am using the cost centre owner from the PR associated with the PO for the service entry as the approver.
    I am using the following code in the FM of the rule I created for determining the agent:
    FUNCTION ZME_REL_GET_RESPONSIBLE.
    *"*"Local Interface:
    *"  TABLES
    *"      ACTOR_TAB STRUCTURE  SWHACTOR
    *"      AC_CONTAINER STRUCTURE  SWCONT
    *"  EXCEPTIONS
    *"      NOBODY_FOUND
      INCLUDE <cntain>.
      TABLES: eban, essr_rel, essr, ekpo, ebkn, csks.
      DATA: object TYPE swc_object.
      DATA: BEGIN OF essrkey,
               lblni LIKE essr-lblni,
               ebeln LIKE essr-ebeln,
            END OF essrkey.
      DATA: verak_user TYPE csks-verak_user, kostl TYPE ebkn-kostl.
      REFRESH actor_tab.
      CLEAR actor_tab.
      swc_get_element ac_container 'ServiceEntry' object.
      IF sy-subrc EQ space.
        essrkey-lblni = object-objkey(10).
        essrkey-ebeln = object-objkey+10(10).
          select * from ekpo where ebeln = essrkey-ebeln.
            select single * from ebkn where banfn = ekpo-banfn.
              kostl = ebkn-kostl.
          endselect.
        select * from csks where kostl = kostl.
          verak_user = csks-verak_user.
        endselect.
        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 'ServiceEntry' object.
    What could be the problem?
    Thanks
    Regards

    Hi Sarvesh, T
    This thread was already answered some time ago.  Please open a new Discussion marked as a question.  If the thread you originally posted to has material related to your question, include a link.  Your content is attached below to make it easy for you to simply paste it into the new Discussion.  It is recommended to read the Rules of Engagement and other documents in the Getting Started link at the top right.   If you have any questions, feel free to respond to this DM (Direct Message) and I will be happy to try to assist.
    Rgds,
    Jocelyn (SCN moderator)

  • Agent Determination in Workflow

    Hi,
    I am implementing a workflow for change in basic pay, the problem is i am not clear how to go about agent determination,  i need to follow my organizational structure but not completely like its not like the complete hierarchy. I need ideas, and some what how to go about it.
    Thanks.
    Khusro Habib

    Hi,
    Do you know who should be notified of the change in Basic Pay? is it the Employee's supervisor? If it is the Supervisor.. create a method.. In the method start off with the Employee's PERNR.. Grab the position from infotype 0001.. look up HRP1001 subty B002 to see who this position reports to.. you will now have the supervisor's position in HRP1001-SOBID.. do another look up on HRP1001 SUBTY A008 to get the pernr of the supervisor in HRP1001-SOBID.. got infotype 0105 SUBTY 0001 to obtain the User id of the supervisor.. notify the supervisor of the chnage in Basic Pay...
    Hope this helps..
    Suresh Datti

  • 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

  • Agent determination for another task

    Hi Experts,
        I have assigned agent as US for a task. One custom FM is called for an approval screen and that FM is called from the method . That method is assigned to that task. The approval screen should have the approver name.
        How to pass the agent assigned for the task to the FM assigned in the method.
    Reagrds
    Sathish

    hi,
    plese find my sugestion.
    1. In any of the previous steps, find the approver name.Pass that approver name from the 'METHOD' to TASK container.from TASK Container to the WORKFLOW Container
    2. Then in the current step, Bind the 'APPROVER_NAME' to the TASK, and then to the 'METHOD'.
    3. now u can use the APPROVER_NAME inside the method.
    hope u r clear, if not pls lets know.
    Regards
    Anversha

  • Agent determination for SRM WF

    Hi All,
    I have developed a custom WF i.e. copy of 2 step Invoice approval WF.
    For agent determination, I have put in logic for Adhoc agent, which is working fine.
    My query is that I can have multiple agents for a particular step, which I am able to see when referring to approval preview.
    However when i try to change one of the entries for agent , system replaces <i>all entries</i> with changed entry for an agent.It does not change the one particular agent out of these multiple agents.
    Wanted to know is it the std behaviour that at the time of changing the agent, evenif we have multiple agents , it will be chaged to only one agent - which is being replaced ?
    Awaiting your inputs.
    Regds,
    Akshay

    Hello Abraham,
    To understand what's happened, you will need to debug /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_AREA_TO_ITEM_MAP and /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID methods from /SAPSRM/CL_IM_WF_RR_PGRP_SC implementing class (interface for BAdI definition /SAPSRM/BD_WF_RESP_RESOLVER from enhancement spot /SAPSRM/BD_WF_AGENTS )
    If mapping between area and item is correct, see why purchasers from purchasing group(s) are not correctly found by debbuging /SAPSRM/IF_WF_AREA~GET_RESPONSIBLE_APPROVERS method from implementation /SAPSRM/CL_WF_AREA_PURCH_GRP.
    Regards.
    Laurent.

  • Agent determination for RFQ

    Hi All,
    My requirement is like this.
    When an RFQ is created in ME41, the workflow has to trigger and based upon some conditions, i have to find the approver from a ztable.
    When i create a RFQ the workflow is getting triggered and my flow is going good, but my issue is at the point of release.
    Issue
    When the approver receives the workitem, he can make any one this discission 1. Release 2. Reject
    When the approver goes for Release option, i am calling the method "SingleRelease" of the business object BUS2010, and i am assinging the agent as an expression in the activity creation screen of SWDD.
    But when i checked the log it says "No selected agents". I don't why it happens like this, and how to correct it. Kindly help me to solve it. So that i can learn.
    Thanks and Regards
    Balaji K.

    HI,
    As IA was mentioning, pl check if you have the task as either "general task" or maintaining possible agents.
    THis is a typical error. Sometimes, during transport, the agent assignment is lost in the target system. Look into OOCR txn or do it manually in the target system(you don't need to be in the Change mode of SWDD or PFTC to kinda..activate the linkage of this agent assignment to the task).
    Hope this helps
    venu

  • Agent Determination for SOFM-Compose

    Hi All,
    can anyone tell me how can i pre-define the recipients for the method COMPOSE of Business object SOFM?
    I want to pre-define the user name (Recipient Name) in the recipient list?
    How can i hardcode it?
    Regards,
    Raj

    hI,
    I have tried hardcoding it. But i m getting the message proposed recipient no longer exist.
    My second i want to pass the value of the agent name that is determined by a rule.
    How can i do it?

  • Workflow Agent  (HR Position) left vacant, no agent determine by workflow

    Hi,
    We are using PR release workflow WS00000038 and the procesing agent tie to the Release code is Position (created in SAP HR organisition structure). Currently workflow flow to the Personal number/user ID that assigned under the Position, however our organisation very frequent a Position is left vacant when the person is transfered to other department/resigned (HR module), and the position left vacant for a month or so.
    PR release workflow can't identified the processing agent to approve the PR during that period, because the position is vacant, we have a lot of this cases.  How to handle this scenario for the PR release workflow ?

    > PR release workflow can't identified the processing agent to approve the PR during that period, because the position is vacant, we have a lot of this cases.
    > How to handle this scenario for the PR release  workflow ?
    >
    Don't - at least not unless the business has told you how they should be handled. When the business tells you how they should be handled, change the functionality for selecting agents accordingly.
    Question to functional consultant: who is the alternative agent when the first choice position is vacant?

  • Agent Determination For Alerts

    I want to trigger SMS and Notification alerts when PO is created ,sales order is created like this.I configured alerts in ALRTCATDEF TXn .   i want to trigger a alert  to vendor in PO. how to pick the agents for the alerts

    I think you have an attribute Vendor in Business Object BUS2012 which you can use. You can use the Macro SWC_GET_OBJECT_Key to retrieve the actual Vendor number.
    Thanks
    Arghadip

Maybe you are looking for

  • Installed Airport Ext, computer won't work

    Bought a "new" airport extreme card for my G4 desktop (1.25 proc, 770mg ram) and installed per instructions in the G4 manual. Went in fine. The manual (and apple web site) said that I could use the Airp Extr card. Booted up computer, and computer wou

  • Vendor Master Record: Tax Number 1 Field

    Hi Everyone, For some reason, when you enter XK01 or XK02 for creation or change of vendor master record, Tax Number 1 within the Control Tab is visible and able to be input.  However, when displaying the vendor master record through XK03, the field

  • Micro sd card

    I just got a nokia lumia 520 when I entered my sd card it didnt even acknowledge it and when I went searching for my music that is on the memory card couldnt find it anywhere ? Can someone tell me how to fix it??

  • How to checkout file on SCM from Java code ???

    Hi friends, I am developing application for test and trackking project . And I want to checkout my old files and then download. I found scm ide but I couldn't find any sample about it. So I am in stuck!! any body know, how to use it?? or any sample,

  • ChipObject and VC++

    i have a problem in compiling an RLP example program /* ChipObject and DIO 96 example program */ and i think its a linker error... do i need dll or something to work this out or files in my project are incorrect? Files included in my VC++ project: di