Multiple workitems in workflow

Hi, I've created a multiline element in a workflow container which contains n amount of users.  I have a workflow activity which uses a task which sends the workitem out to all the agents specified in the multiline element.  So far so good.  However as soon as one of the agents executes the work item it is removed from the inbox of the other agents.  I need all agents to execute the same work item or else it will be processed by deadline monitoring.  This must be possible.  Does anyone know how to ensure that 1 work item distributed to 'n' agents is executed by all agents, not just the first?
Thanks in advance,
Kevin

Define the multiline container element to the activity under OTHER tab "Dynamic parallel processing with a multiline container element". Also read the multielement description written in Other tab.
In the Binding from task container to Workflow container
If the task container does't has multiline container element then do the binding as follow
TASk Cont<----
WORKFLOW
Approver----
&AUTHORIZERS<b>()</b>&
In that case SAP will send separate workitem to all agents and system will not execute next workitem unless all agents approve it.
Regards
Aman
Message was edited by: Amandeep  Singh
Message was edited by: Amandeep  Singh

Similar Messages

  • PO workflow sends multiple workitem

    Dear Experts,
                       I have created a PO workflow, which triggered on change and releasestepcreated events. This workflow has four level apprval.
    It is working fine except, after each approval it sends the multiple workitems to 1st level approver. but there should be not more than one workitem in 1st level when workflow is triggered.
    Thanks and Regards,
    Sohail

    Hi Sohail
    "it sends the multiple workitems to 1st level approver"
    I am assuming that it's same approval, but different work item ID.
    Check SWEL (ensure it's on using SWELS) when PO is changed - see if two events are triggered for the PO (one for BUS2012 and other for FREBUS2012). These may be creating two workflow instances instead of one..... if that is the case, solution is in the following thread: http://scn.sap.com/message/15027373#15027373
    Regards,
    Modak

  • Re : Multiple Workitem Execution

    Hi ,
           I'm using sap 4.7  and created a workflow for plant wise material release .
    I would like to execute multiple workitems in one go.  Just gone thru postings in SDN ,  SAP Help  and  i could not able find much information on this topic.
    Do we need any programming to be done for executing multiple workitems ( of sam type ) . 
    Looking for  your views...
    Regards,
    Vijay

    hi,
    check this thread:
    Group many related workitems into one workitem for approval
    kind regards, Rob Dielemans

  • Controlling multiple workitem in purchase Requisition

    Guys,
              I need some suggestions regarding the controlling of multiple workitem for Purchase requisition. Our client have a PR release wf and when a PR is saved a workitem is sent to approvers inbox. Within a timeframe say (15 sec) any changes to PR will trigger the same wf and creates one more workitem. I want to restrict the creation of workitem if it falls within the time frame. Good suggestions are greatly appreciated with points.
    Thanks in Advance,
    Isaac

    I think you can use Function module SAP_WAPI_WORKITEMS_TO_OBJECT to retrieve the workitem that has been triggered for the same PR and the you can read the table SWWWIHEAD providing the workitem Id and then check the Creation time and compare.
    Use this coding in a virtual attribute and use it to define the Start Condition using Tcode SWB_COND
    Thanks
    Arghadip

  • Storing Multiple Values in Workflow Attribute

    Hi,
    I got the requirement where i want to store multiple values into Workflow Attribute. Is there any way to accomplish this.
    Thanks
    J

    Hi,
    Do you mean multiple different values in the same attribute at the same time?
    If not, then yes - this is standard functionality. Just use the appropriate API to set the new value whenever it changes.
    If yes, then possibly, but that would be exceptionally bad design. If you want to store different concurrent values in the same attribute, then the only type this would work for would be a text attribute, and you would need to include a delimiter between the values so that they can be stored. Then, whenever you need one of the values, you need to split the attribute according to the position of the delimiters.
    I have no idea when you would have a requirement to store multiple values in the same attribute at the same time - as I said, it is exceptionally bad design, so I'm going to hope that you just mean to hold different values at different times.
    If you meant you want to store multiple values into multiple attributes at the same time, then there are also APIs that can be used to accomplish that. I would not recommend using them, as it makes it harder in the long term to maintain and support the application - having multiple calls is no slower, but makes the code easier to read and understand.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Executing multiple workitems at a time

    Hi,
    Whenever the user selects multiple workitems that belong to the same task and executes the first item, then the samething should all the applicable to other items also. For example, consider that I have 20 workitems that correspond to leave requests. I select all 20 workitems and execute the first one and select approve. then all the 20 workitems should be executed with the option select.
    How to achieve this functionality?
    Raj

    Hey Mike,
    You're absolutely right, I didn't know this.
    It took me some time to find it, but here:
    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/8d/25f4e3454311d189430000e829fbbd/frameset.htm">http://help.sap.com/saphelp_47x200/helpdata/en/8d/25f4e3454311d189430000e829fbbd/frameset.htm</a>
    I's all explained.
    Kind regards, Rob Dielemans

  • Reg: WorkItem &  Mail Inbox Problem for Multiple users In workflow

    Hi,
    I have developed a wofkflow application to sent SAP mails and Workitems to multiple users. I Have a Container which has the property as multi line. and i mapped this container variable with expression of my mail step. This means i can send multiple mails at the sae time....Its working Fine. But the problem is,
    Suppose I am sending mails to User1 & User2. Both are receiving the mail, But if user1 read the mail user2 mail is set as read document instead of unread doucument.....
    How to Solve this? any solution ?

    Hi
    See if this document is of any help to you.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c6456e89-0a01-0010-0189-a7961fe42034">An expert guide to new SAP workflow capabilities</a>
    Regards,
    Raj

  • Multiple workitem is generated when a workflow is triggered

    Hi All,
            I have created a custom workflow for contract, Using the standard BO BUS2014 and the event Release Step Created.
    I have checked settings in SWE2, SWE3, SWEC and they look fine to me. The problem is when a contract is created which has release step then the workflow is generating two workitems for a single event trigger. Can you please help me out in finding this error.
    Looking for you kind co-operation.
    Regards
    PuspaSourav Biswas

    Hi,
    According to me there must be 2 Workflows getting triggered.
    Try checking the Workflow log of the 2 Workitems getting triggered & try identify the Workflow no's of these 2 Workitems.
    Is the Workitem text of the Workitems that get triggered identical ???
    You can try keeping some different text for your workflow to identify whether both come from the same workflow or not.
    This may help you identify whether both belong to ur workrflow or not.
    Also once the event is triggered you can go to swi1, put the Event Name & date & time & execute & check which workflows are triggered.
    I hope this will help you.
    Regards
    Mehreen

  • How to store Multiple Attachments in Workflow.

    Hello All,
    I am doing an scenario, in that i need to store multiple attachments in the workflow container.
    Kindly help me, how to store and also, how to retrieve those attachments form worklfow.
    I am using custom workflow.
    Thanks in advance......
    Best Regards,
    Chandran S

    Hi Jubish/Venkat
    1. I iterated this fucntion moudule to store the multiple attachments to the workflow
       SAP_WAPI_ATTACHMENT_ADD
    2. Call this FM to get the attachemnts form the workflow (pass workitem Item id which is used for storing the attchments).  SAP_WAPI_GET_ATTACHMENTS
    from above you will get objkey for each attachment as output in table.
    3. Pass the  objkey to this FM to get the contents
    SO_DOCUMENT_READ_API1'. this will retrun the content of the attachment either in object_content,   contents_hex.
    4. Pass the Obtained content to SCMS_BINARY_TO_XSTRING to get the disired format.
    Best Regards,
    Chandran S

  • How to create multiple outecomes in workflow

    Hi Gurus,
    I am developing the PR workflow. and in that I want to create 2 different nodes for signle activity.
    how can I create those multiple outcomes for signel activity in workflow.
    Thanks in Advcance.
    Moderator message : Wrong forum, post the question in Workflow forum. Thread locked.
    Edited by: Vinod Kumar on Aug 3, 2011 1:49 PM

    Hi Jubish/Venkat
    1. I iterated this fucntion moudule to store the multiple attachments to the workflow
       SAP_WAPI_ATTACHMENT_ADD
    2. Call this FM to get the attachemnts form the workflow (pass workitem Item id which is used for storing the attchments).  SAP_WAPI_GET_ATTACHMENTS
    from above you will get objkey for each attachment as output in table.
    3. Pass the  objkey to this FM to get the contents
    SO_DOCUMENT_READ_API1'. this will retrun the content of the attachment either in object_content,   contents_hex.
    4. Pass the Obtained content to SCMS_BINARY_TO_XSTRING to get the disired format.
    Best Regards,
    Chandran S

  • Multiple attachments in Workflow Notification

    Hi All,
    We are trying to attach multiple(Two) files to the workflow notification. We are able to get the two attachments. But the problem is in the notification from front end both the attachments are opening the same file, where as the attachments in the outlook are showing different contents and the file name is same for both the attachments.
    Please can anyone help us in this. This is very urgent requirment.
    Thanks,
    Varun

    Hi Jubish/Venkat
    1. I iterated this fucntion moudule to store the multiple attachments to the workflow
       SAP_WAPI_ATTACHMENT_ADD
    2. Call this FM to get the attachemnts form the workflow (pass workitem Item id which is used for storing the attchments).  SAP_WAPI_GET_ATTACHMENTS
    from above you will get objkey for each attachment as output in table.
    3. Pass the  objkey to this FM to get the contents
    SO_DOCUMENT_READ_API1'. this will retrun the content of the attachment either in object_content,   contents_hex.
    4. Pass the Obtained content to SCMS_BINARY_TO_XSTRING to get the disired format.
    Best Regards,
    Chandran S

  • Forawrding to multiple sapusers from workflow

    Hi
    I have a situation where I have to forward a same mail to differnt sap users to there inbox I have their userid's which I will get dynamically but I have to trigger them through sap work flow. I think I cannot use that sap send mail option in workflow to forward mail to multiple user id. please suggest me any alternative.
    Thanks in advance for the help
    Regards,
    Krishna Mukthineni

    I think you can use Multiline container element that is of type WFSYST-Agent and you store multiple user Id concatenated with US in front. Use this container element as an expression in the send mail step.
    Thanks
    Arghadip

  • Cannot receive workitems after workflow has triggered

    Hi experts,
    I've met a problem that after a workflow has triggered, no one can receive the workitem. I check workflow log via SWIA and it shows that for example Paul has received it. But when Paul goes to SBWP the workitem doesn't exist.
    The same thing happens when forwarding workitem to others.
    Pls help. Thanks in advance!
    Wang

    Hello,
    "I check workflow log via SWIA and it shows that for example Paul has received it. But when Paul goes to SBWP the workitem doesn't exist. "
    This shouldn't happen. What does SWI5 say?
    I doubt it has to do with SWWCOND but I would fix that in any case (using debug, as suggested by Rob).
    regards
    Rick Bakker
    hanabi technology

  • Substitute not receiving workitem for Workflow WS20000075 - TS20000166

    Hello Friends
    With rgeard to the Workflow WS20000075 and the task  TS20000166  , we find that the substitutes are not receiving the workitem .
    only the agents determined from the PO release strategy are getting the workitems.
    But the substitutes of these agents are not receiving the workitems.
    I checked the table HRUS_D2 which is valid and also active.
    i also notice that in table SWWORGTASK , the ORG_OBJ field is set for the POSITION .  does this mean , personal substitue will not work  as the agent determination is on POSITION level ?
    Please assist.
    thanks
    Raghu V
    Edited by: Raghunandan Vasudevarao on May 2, 2011 8:28 PM

    "In release strategies, what is the object type maintained ? Maintain the same object type when assigning substitutes. "
    Hello Suresh ,
       In the release strategy  , we have assigned the Object as " S "  which is a position and assigned the corresponding POSITION ID .  So does this mean the substitute assignment should be on a POSTION level rather than  a user specific level ?  If yes , How do we do that ?
    " Please check whether the substitution maintained is ACTIVE or PASSIVE.  "
    Hello Guddan ,
    The substitution is ACTIVE  , Iahev confirmed.
    thanks,
    Raghu V

  • Send mail to multiple recepients and multiple groups from workflow

    Hi,
    I have a requirement where during the process flow, I have to send mail notifications to multiple people at each step. Have done the outlook config and working fine. Also mail steps are working fine for one recepient. But I have to send relevant mail content to multiple people and to multiple groups like HR, IT security etc. What would be the best approach for this req?
    Please help.
    Thanks,
    Raj.

    Hello,
    If I understand you correctly, you have two options:
    Option 1 (if you must send to an external e-mail address):
    1- identify all recipients in a previous step and retrieve their e-mail addresses from the system
    2- collect all e-mail addresses in an internal table you define in the workflow template container (you can use table type BCSY_SMTPA)
    3- in the e-mail step, choose Recipient type as U (E-mail Address)
    4- in the e-mail address field, click F4 and you will see the e-mail address internal table you defined in step 2 above; use that variable
    Option 2 (if you can send to SAP inbox):
    1- identify all recipients in a previous step and retrieve the agent types and IDs (structure SWHACTOR)
    2- collect all agents into an internal table (you can use table type TSWHACTOR)
    3- in the e-mail step, choose Recipient type as G (Organizational Object)
    4- in the drop-down box, keep the value as "Expression"
    5- use F4 help to insert the internal table defined in step 2 as the expression value
    Hope this helps you.

Maybe you are looking for