Workflow - Dynamic agent assignment

Hello!
I am doing Workflow development. I have a question about Workflow Agent Assignment.
I want to assign multiple agents ( 1 or 2 or more agents and It's not static. Each agents have task that processing independent. and next task is started after end of all multiple tasks.).
But I can't dynamic assignment('Adhoc agent assignment' is not that.)
Can you help me?(Is this possible?)
Best Regards,
Juhyun

Hi
If I have understood you correctly, you have a multiline container element with a number of agents (type wfsyst-agent) - and now you would like to send a workitem to each agent - and not just one workitem to all of your agent.
To achieve this you need to define the task (or sub workflow) as a multiline element. T
his is done in task implementation in the workflow builder. Switch to the tab <b>Other</b>, in here you add your multiline container element containing.
When you now go back to agent assignment, you will find two container elements for your multiline element, use the one with [&_WF_PARFOREACH_INDEX&].
The result will be that exactly one workitem is created for each entry in your multiline container element.
Regards
Morten Nielsen

Similar Messages

  • Held PO triggering workflow and agent assignment to myself

    Hi experts,
    Is there a way where I can prevent held documents from triggering my workflow?
    How can I achieve the following 2 scenarios for agent assignment:
    1) Create PO and workitem route back to myself
    2) Release PO and workitem route back to myself

    Lester,
    If you are a User01, then You started the process like if you are creating the PO, then the workflow is getting triggered. So now you are the initiator of the process, and in WF_inititor will be hold your user name user01.
    Thanks,
    Vijay.

  • Workflow Task Agent Assignment for PO Rel

    Hello;
    Can someone tell me how the system can be set to forward a work item for the person responsible for PO release, meaning based on the department who own the goods the system should find the person who's the approver of that department.
    Thanks
    Ibou

    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

  • Agent assignment in Workflows using Rules.

    what is Agent assignment in Workflows using Rules.

    Hi
    [Check this article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c6c6e7-3ede-2a10-deb8-8da2071fbaf0]
    Regards
    Pavan

  • RFQ Workflow: Agent assignment

    Dear All,
    We are working on the Release RFQ workflow.
    Per my understanding, the IMG settings determine the users/OUs who should be receiving mails
    to release the RFQ. This multilevel approval is in place.
    Now, I have created an RFQ, this triggered the workflow, but there is an error in the release activity.
    The error says "Purchase reqn number is not found".
    Do we need to explicitly mention the release rule 20000030 in the agent assignment section
    of the workflow? Why does the error abt purchase reqn appear?
    Does it look if the RFQ is created w.r.t Purchase reqn?
    As this is both MM/workflow related doubt, Iam posting it in both the forums
    Please help me.
    Thanks,
    nsp.

    Thanks for your response.
    These steps are already taken care of.
    Now, what I have done is, I have created an RFQ  with reference to a purchase requisition. In SWEL, I see workflow WS20000080 triggered. But I get an error saying "Element purchase order is not available in the container. Error in resolution of rule 'AC20000030' for step.  Agent determination failed"
    Can you advise me? Why does it look for purchase order ?
    Thanks,

  • Agent assignment to workflow task

    Hi all,
    1) I have assigned a workflow(sub workflow) in a activity step in main workflow and assigned workflow task no ws99900258 in that step.i have tried to assign agents as general task.
    i couldn't do it.its showing that please place the cursor..some thing.
    Kindly let me know how to assign to a workflowid.
    2) in another workflow i am facing the problem is "mandatory import element(workflow container object(z_plm_sbc) is not explicitly provided".
    Kindly let me know how to rectify this error.
    Regards,
    Ramesh.

    Hi Ramesh,
    1. Open the workflow ws99900258 in tcode PFTC,
         Menu options -- > additional data-->agent assignment --> maintain --> select your workflow (this is where you are missing)
         click on "atttributes' buttone..
         Make it as general.
    2. In your workflow some of the elements are mandatory,  pass the required value into that element.
    This is you have to mention in the Binding ..
    Regards,
    Murali Krishna,

  • Workflow agent assignment in Production system

    Hello Sap Gurus,
      Is there a way to maintain harcoded agents(not a general task..but putting in a user's name) on the tasks in the SAP production system without going to Change mode.
    I know we can do it for the Workflow templates in Dispaly mode but for the tasks, it wouldn't let us do without being in Change mode.
    Any suggestions is appreciated
    Thanks

    Hi Rachana,
    The agent assignment of a task is a PD infotype and therefore the question is do you have the authorisation do maintain in production?
    From what you have described, the short answer appears to be no.  But a longer answer is that, with sufficient access, you can open a workitem in change mode and forward to a new agent after using the Replace Manually option.
    Another option would be to go in throught the diagnosis tolls (SWUD) and use the option test environment.  You will see the steps of your workflow at the bottom of the page.  If there is a red football shaped object - this is agent assignment - you can click to maintain the assignments.
    A better question is why maintain by user ID here as it is a pain to maintain.
    Regards
    Gareth

  • Agent Assignment in Workflow

    If anyone had worked on customizing the WF for Changed Sub profile, WS1200124, please tell me how to configure the role for the standard task: 1200191, Abbreviation: PDVDispProfi .
    I need to use this task for two purposes, one to show to the owner of the profile and second to the manager of the owner of the profile.
    I tried giving the rules 01200025 for Employee and 01200024 for the manager in agent assignment for the tasks, but the workflow hangs at these tasks.
    If I hardcode the agent to some user, it works fine.
    Any suggestion on what would have gone wrong?
    Is something to be activated at the rule level?
    Thanks in Advance.
    Suryakiran

    Hi Mikko,
    I work on ECC5 system.
    Your answer solves half of my issue.
    I assign an Expression with &EMPLOYEE& as the agent to task and this sends the mail to the employee.
    the Work Item Subject says "Your Dev. Profile has been change".
    Now, I also need to send the same mail to the supervisor of the employee.
    Here, The workitem text should be "Dev. Profile has been changed for the Employee<b> XYZ</b>".
    So, I cloned the task TS01200191 to TS900001,
    changed the text accordingly and
    created a container element "PERSON"
    inserted this element as a variable in the text.
    I need to pass this PERSON to the task in the binding from workflow.
    This PERSON should be created in the workflow container and filled.
    Please confirm if this procedure works or if there is a better one.
    Thanks.

  • Workflow -  Issue in Agent Assignment

    Hi All,
    I have created a workflow in development Client.
    I has both Customizing as well as Workbench request.
    Customizing request contains all Agent assignment for task and Event assignments.
    I have transported both customizing as well as workbench request to Qualtiy client but the issue is that agent assignment does not happen is quality client.
    I have to login to  Quality cleint  and do the agent assignment maually then only it works properly.
    Is is that i have to tranport the workbench request first and then the customizing request or is there any other way to solve it .
    Kindly help me in finding the issues
    Thanks & regards,
    Chetan Sakunde

    not required

  • Agent assignment problem for activity in workflow

    Hi Experts,
    I have created an activity task for calling MM02 transaction in my workflow. I need to send this workitem to multiple people. I am using an expression in the place of agent assignment available in Control tab of the task. Now this assignment is not recognized by workflow, it shows error "Task TS90000070 has no agent assignment. Please suggest how to fix it, or if there is any other method available to send workitem to multiple people. Note: I am not using standard organizational management feature here.
    Thanks,
    Ashok

    Hi Ashok,
    It seems you have not assigned possible agent for this task. Please follow these steps.
    Execute PFTC transaction and take 90000070 in change mode.
    Now goto Additional Data -> Agent Assignment -> Maintain.
    This will take you to another screen where you can find the task 90000070. Click on the first button (Create Agent Assignment) on the application toolbar. This way you can assign an agent if you are using organizational management.
    If not, then make it as a general task. For this click on the 'Attributes' button and select the 'General task'.
    Hope this is helpful.
    Thanks
    Vinod

  • Dynamic roles in Agent Assignment

    Dear All
    I have a requirement of assigning dynamic roles which is stored in container element. When i select the role in the agent assignment of the task all the system roles come in the drop down. How to assign the role stored in the container element in agent assignment.
    Thanx in advance

    You can use a simple rule that returns the agents having that role FM PRGN_READ_USERS_FOR_ONE_AGR will do the trick.
    Or else I think you can just use a role as an expression (haven't done this myself). Just as you would pass in USUSERNAME, prefix it with AG. You may have an issue with data types though if the role name is longer than the standard HR object name, I haven't tried it for this very reason.

  • Workflow started, no agent assigned

    Hi.
    I am working on a treasury workflow (TrLoApprove) to approve the Bp's that will have been created. I have done all the release procedures as required in customisation. But when the workflow is processed it, it is processed in an error state. The error being that there is no agent assigned at the start of the workflow.
    Regards,
    Audrey

    Hi Audrey,
    Thsi problem is occuring because the workflow you are trying to execute does not have agents specified.
    To set the same go to t-code PFTC. Select 'Workflow Template' and go to Change mode. Go to menu path Additional data -> Agent Assignment -> Maintain -> Attribute -> select 'General Task'
    You you do not wish to set as general task then assign a particular set of users who could execute the workflow.
    Hope this helps!
    Regards,
    Saumya

  • Agent Assignment for MDG Workflow

    Hi,
    I have copied a standard wokflow of master data governance into a 'Z' copy of it. I will use that same workflow but for different agents in it. I have to assign agents in it but that agents are like users with different hierarchical levels.
    I am new to this. Plz can you help me in completing this workflow like how to create users/agents and how to assign that agents to workflow depending of their rights to perform activities.

    Hi,
    Take a look at the online help.
    [1] [Agent Assignment|http://help.sap.com/saphelp_nw73/helpdata/en/c5/e4b535453d11d189430000e829fbbd/frameset.htm]
    [2] [Rule resolution|http://help.sap.com/saphelp_nw73/helpdata/en/96/aef837aea75351e10000009b38f8cf/frameset.htm]
    Regards,
    Eddie

  • Workflow agent assignment problem

    Hi guys,
       I have small problem in workflow.
       we have an task for user decision.
       i want to do agent assignment for that task.
       we have one position for one user. like that we have three positions.but job is same. i want do agent assignment for these users, the three users are same level hierarchy.
    how i can do agent assignment for this task?
    can i give directly job number because job is same for three positions.
    please let me reply.
    Thanks
    Sankar.

    Hi,
    If you`ve users attached to the Job you can address the job in the agent assignment.
    Regards

  • Agent assignment & Attribute for workflow template level.

    Hi Friends;
    As per my understanding we maintain Agent assignment at WF template level to provide security to WF task level so that the possible agents maintained there are only authorized for that task,
    and if we maintain it as general task then every one is able to execute it.
    But my concern is wht will happen if we wont do agent assignment at WF level and also not make it general task.
    Regards
    Dev
    Edited by: Dev on Jan 15, 2010 10:47 AM
    Edited by: Dev on Jan 15, 2010 10:51 AM

    Hi Dev,
    If you do not maintain the agent assignment at WF task level ( for the task which are not general task ), those users will not receive any work item.
    For example user XXX is determined by some rule but he will not receive  the work item until user XXX maintained at WF task level.
    Thanks
    Sanjay

Maybe you are looking for

  • Unable to locate the LMS's API Implementation-Error in Content Player

    Dear Guys, when I am playing the content in content player of Authering environment we get the following error "Unable to locate the LMS's API Implementation" , Should any API be implemented explicitly? How can we resolve this error? Regards, Shamila

  • Question about using scrollRectToVisible?

    hello all: From the java doc, it says that "void scrollRectToVisible(Rectangle) (in JComponent) If the component is in a container that supports scrolling, such as a scroll pane, then calling this method scrolls the scroll pane such that the specifie

  • Logic Pro X moving automation-Bug or not?

    Having this issue on my side, perhaps if some of you can confirm if this a bug or is this only happening on my side. Create a group of chanels. You know that feature where you group name and when you move one they all move. After that turn on automat

  • Slow Modem Speed Graphite Base w/Dial Up

    I've had a graphite base station for a couple of months now. At first, the connection speed was comparable to the v 90 modem in the computer, but recently it started connecting at a rate so slow pages end up not loading, and mail gives me errors when

  • Moving trash frozen

    I have moved a copied DVD to trash but it was taking hours to move and when I tried to stop the process, now the stopping is taking forever (we are talking days) It seems like it maybe frozen. The computer will not allow me to shut it down because it