Container element for Count in Parallel Approval Workflow

Hi Gurus,
We are using ECC 6.0 and I have this below requirement. Please share your thoughts on how we can achieve this.
We are using a User decision step in parallel workflow to generate and send individual work items to multiple approvers. that is, we generate multiple work items and send to individual approvers for the same step in the workflow and get the combined result (Approve or Reject) to proceed further. I understand that individual result for each work item is stored in container element '_RESULT' (0001 for Approve, 0002 for Reject) and combined result of all the sub-work items is stored in '_WI_RESULT' (0001 for Approve, 0002 for Reject). Also, we can see the index # of work items generated for the same step (node) from container element ''_WF_PARFOREACH_INDEX'.
My requirement is to set work item to COMPLETED status after we obtain a certain # of APPROVE (_RESULT = 0001) decision. Let's say, after 2 of the approvers say Ápproved', then I'd like to close all the other relevant work items and set the Combined result '_WI_RESULT'to APPROVE and Complete the relevant work item. I was wondering if there is a container element that holds the (count) # of work items generated in individual work item container so that I can keep reading this value to see how many decisions have been made. That is, for example, If there are 3 parallel work items generated and 1st user said Äpproved',  is there a way to know out of a total of 3 approvals (to get the combined result '_WI_RESULT'), one is completed and 2 approval decisions are still pending. I'm trying to use step-level Pgm Exit (After_execution Method) to read this container element for # of approvals done and if the combined result '_WI_RESULT'is '0001'(Approve), i'll try to end other work items. One way of doing is to have a custom table to capture this and keep reading this table after each decision. But, I don't want to have all this customization and I believe there should be a way the SAP is storing somewhere this # of completed or Pending approval work items that got originated from a single step/node. One way of doing could be, after each decision, read the dependent work items (having same node # and Parent Work item etc.,) and get the other relevant work items and read their status etc., But I think this is a lengthy process and may be there is an easier way, perhaps some container element that holds this information.
Please let me know if you need any clarification on my requirement and share your thoughts on how I can achieve easily.
Appreciate and thank you in advance for your help.
Regards,
Venu

Hi Karri,
Thank you for your reply. I was actually doing the same with having an APR_COUNT and passing that for each of individual work items and bind it back to task--> wflow container. And keep checking this counter in wf container.
Once, we obtain certain # of approvals, then I guess I'll have to complete or cancel the other work items.
I was thinking may be there is some container element already exists that keep track of this, I guess not .
Thanks for your input
Regards,
Venu

Similar Messages

  • Workflow: check multiline container element for emptiness

    Hi!
    Please suggest how to check multiline workflow-container element for emptiness in condition block.
    Regards,
    Maxim.

    Hi Max,
    One way to do this is to add a process step which calls a function module passing the multiline container as the import parameter. In this function mod, you can check for emptiness and set a variable which will be the export parameter. Map this export parameter of the step to a workflow container field. Finally in the next step (control block) you can check the above workflow field.

  • How to determine worklfow container element  for BUS2031?

    Hai,
    I am new to W/F. I would like to know how to detemine workflow container element  for Customer Quotation generated(BUS2031)- [event] created.ie based on what?
    Example :&Jquotation&,&JtransactionCode& etc.....
    any screen shot docu for binding/import/export purpsoe.
    Points will be given.
    With Regards,Jaheer

    Hai Aditya,
    Thanks for your reply.
    yes . I want to know what base we can create container element.
    Flow is like this :somebody create quotation , it will for manager approval & finally goes(mail) to customer.
    For this I am using object type BUS2031. Now I want to create w/f container element(in workflow template).From BUS2031(customer quotation), I understand that I need to create one w/f container as &Quotation&.what are others container element I have to create. This is my questions.
    I hope now it is clear.
    If you have any workflow documents/sample please send it to me [email protected]
    With Regards,Jaheer.
    -Jaheer

  • RFx Parallel approval workflow

    Dear Experts,
    I'm looking for sample code on how to implement the BADI agent determination with multiple areas for header (decision type 1) for RFx (BUS2200).
    I made all the required settings for parallel approval, but it for SC. The BAdI implementation for parallel approval /SAPSRM/BD_WF_SC_RR_PA works only with SC and Decision Type must be 4 — Item-Based Decision for Partial Document.
    Thanks,
    Evgenii.

    Hi,
    The following settings in SharePoint designer for your reference:
    More informaiton is here:
    https://social.technet.microsoft.com/Forums/en-US/2cd81250-1124-4d61-b78d-78e747f7fd64/parallel-approval-workflow-where-one-approval-completes-the-workflow?forum=sharepointcustomizationprevious
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Parallel approval workflow, end process

    Hi everyone
    I have a approval workflow that has 3 users approvers with a parallel approval. 
    I want to end the workflow (Approved or rejected) when ONE OF THIS USERS complete your task 
    Does anyone know a way to do it ?
    Thanks in advance!
    Regards

    Hi,
    The following settings in SharePoint designer for your reference:
    More informaiton is here:
    https://social.technet.microsoft.com/Forums/en-US/2cd81250-1124-4d61-b78d-78e747f7fd64/parallel-approval-workflow-where-one-approval-completes-the-workflow?forum=sharepointcustomizationprevious
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Dynamic parallel approval workflow

    Hi all,
    I want to design a workflow where I have to send mails to different approvers. Here,the case with me is the approvers are selected dynamically & No. of approvers are also selected dynamically (at run time).
    I would like to know whether its physible or not. IF yes, any solution towards this will be helpful.
    Thanksin advance.
    Regards,
    Siddhesh Sanghvi

    I think the Actual_Agent container element gets populated only when someone completes the workitem. In your case you need to send the mail to the approver by using the same agent assignment you have used in that activity step. I hope you understand. If you use rule then ue rule in the deadline agent assignment also. You can also create a container element that populates the approvers in a task that is executed before nd use it in the deadline portion.
    Thanks
    Arghadip

  • Container element for text comment

    Hi
    Can someone please assist me with the correct table that I can use to reference my container element to that will be used
    for rejection comments..
    Needs to be a long text field.
    I searched the forum but cant find anything ..
    Many thks
    Gerhard

    In changing tab there is parameter CH_TEXT that is table type CATSXT_LONGTEXT_ITAB. (You could actually use this in the container element and it should be then automatically multiline element). This table type consists of lines of TXLINE (72 characters long). If I test the function in SE37, it seems to return all the text that I write in the text box. If the text exceeds 72 characters, there will be several lines...
    If you are having problems with the containers, please check that all the container elements / parameters (task, metdod, workflow) are correct type (=mutiline).
    Regards,
    Karri

  • Container element for number of deadlines missed

    Hi,
    Is there a container element already available in which the number of deadlines missed is registered for a dialog step ?
    Meaning if deadline is kept for 2 days then container will increment every two days ?
    thanks
    Dipti

    Not unless you create one and make sure it gets populated.
    Regards,
    Martin

  • How to give Container Elements for FM EWW_WORKFLOW_START

    hi experts,
    i am new to workflow,
    i am using the FM EWW_WORKFLOW_START to start a workflow.
    my issue is that i am using the std BO BUS2017
    i am not getting the element name that i need to pass to the container.
    When i see in SWDD it shows
    Import Parameter BUS2017 in the list of workflow container elements. but when i pass the OBJKEY: materialDocument and matdocumentyear like
    concatenate '5000000305'  '2009 ' into text1.
    swc_set_element   t_cont  'BUS2017' text1 .
    its not getting passed to the workflow.
    but i added 2 new elements mblnr and year to the container and i pass it , it gets passed.
    how can i know the exact Element name?
    or where could i be wrong?
    thanks and regards,
    Gunj M.

    Hello,
    Here's some sample code of how to pass an object:
    INCLUDE <CNTN01>.
    data: lv_rc like sy-subrc.
    data: lt_messages type standard table of SWR_MESSAG.
    data:
    begin of lv_object_instance,
      objtype type swo_objtyp,
      objkey  type swo_typeid,
    end of lv_object_instance.
    * Define the container
    swc_container lt_wf_cont.
    * Create the container
    swc_create_container lt_wf_cont.
    * Clear the container (not necessary here)
    swc_clear_container lt_wf_cont.
    lv_object_instance-objtype = 'FORMABSENC'.
    lv_object_instance-objkey = '0000000088'.
    lt_wf_cont-element = 'ABSENCEFORM'.
    lt_wf_cont-value = lv_object_instance.
    append lt_wf_cont.
    CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
    EXPORTING
       TASK                     = 'WS30000015'
    *   LANGUAGE                 = SY-LANGU
       DO_COMMIT                = 'X'
    *   USER                     = SY-UNAME
    *   START_ASYNCHRONOUS       = ' '
    *   DESIRED_START_DATE       =
    *   DESIRED_START_TIME       =
    *  IMPORTING
       RETURN_CODE              = lv_rc
    *    WORKITEM_ID              = lv_wfid
    *    NEW_STATUS               = lv_wistat
    TABLES
       INPUT_CONTAINER          = lt_wf_cont
       MESSAGE_LINES            = lt_messages
    *   MESSAGE_STRUCT           =
    *   AGENTS                   =
    regards
    Rick Bakker
    Hanabi Technology

  • Req for help regarding Invoice approval workflow from SUS to EBP

    Hi Gurus good morning!
               We are facing the following problem in invoice approval when the employees approving the work items. If the employee approves his/her invoice directly from his/her inbox <b> i.e without going to the details button</b>, then the invoice is getting approved.  <b>If the employee looks into the details by clicking on details button and then from  the detailed view if he/she approves,</b> then the workflow is getting into error status and the document is not getting updated correctly even he selects "approved" radio button.
              If any body knows SAP notes or soultion for this problem, please share with me.
    Cheers
    Raveendra

    Hi,
    further to my previous reply , i am sure that the document is being changed during approval.
    please check. wether change is allowed for the user., wether he is authorized to change
    please also refer
    changed (approval status = 3)
    deleted (apporval status = 2)
    rejected (approval status =1)
    approved (approval status =0)
    award points if usefull

  • Dynamic Parallel Approval for HCM Process and Forms

    Hi everyone,
    I have a scenario where I need to use the "Dynamic Parallel Approval" (or to keep it simple, initially I tried using the "Parallel Approval" wizard)for a workflow used in the HCM Process and Forms.
    The standard task for approval in process and forms is TS17900101. I have mentioned a multiline container in the Miscellaneous tab of this task. However,I was unable to use this task in the wizard. There are no results attahced to this task unlike any other standard approval task (like TS30200147). I need to use the task TS17900101 in the workflow assigned to process and forms, but not sure how to handle this scenario (parallel approval).
    If this is not the right way of doing it, Is there any workaround for "Parallel Approval" in HCM Process and Forms.
    Could anybody throw some light around this area.
    Thanks for your help.
    - MM

    Thanks Anuj. But I believe, the container element that I add in the miscellaneous tab does not necessarily have to be used in the agent assignment. The multiline container is just to instantiate the workitem 'n' number of times. Correct me if I am wrong.
    My concern is that I was unable to use this approval task (TS17900101) in the workflow wizard for dynamic paralle/parallel approval.
    Arghadip - Thanks for your suggestion. I have seen some your nice contributions in the WF forum.
    I actually tried using the 'Blocks'. But this is what I ran into. When I send multiple approval requests (say 3), if one person has approved it and the second has rejected it,I need to take out the workitem from the third person's list (because it has been rejected by someone in the group). I am not sure if this is possible using Blocks. And in my case the third person is still having the workitem, but gets a dump/error when he tries to open it.
    Also, if any one has rejected the request, I do not have to wait for the rest to take any action on the workitem and proceed further. But I guess in 'Blocks' it will not let you go out unless every workitem has been processed.
    To summarize,here's what I need - I need to come out of the block for two conditions. One, if everyone has approved, comeout of the block with an apprval flag. Two, if anyone has rejected (even if some have not processed their workitem), delete the workitems from others inbox and come out of the block with a rejection flag.
    So, any kind of input or suggestions on how this could be handled would be highly appreciated.
    Thanks
    MM

  • Over Time Workflow Container elements not updated

    Hi,
    I am using Standard Task TS20000459 for approval of Overtime entered for an employee in CAT2 transaction.
    Work item is getting generated to his manager's inbox.
    Issue is, subject of the work item should have employee number and Employe name. Standard Task contains Container elements &TS_PERNR& and &TS_ENAME& which is not getting filled with any values.
    Can any one suggest me how to get the same?
    Regards,
    Saravana Perumal

    Hi Shanti
    I faced the same problem...And i resolved that problem by binding...
    Create the container element for PERNR and ENAME in the standard task ts20000459 as well as in workflow container.Then bind those container values.
    Before bind the workflow and task container, you have to bind the workflow container with the event container.
    Regards,
    Hemalatha.

  • Container Element!!!!!!!! in workflow

    Hi to alll.....
        Can anyone throw some light on "Container element " in workflow....
         Why do we need that ? whats the purpose of that..
      Plz its urgent..
    Regards,
    Sanjana

    hi Sanjana,
    The workflow container contains an element which is defined with a data type reference to the same object type that is created in the referenced task, this binding definition is proposed automatically when an activity is defined.
    If no element with an appropriate data type reference is available in the workflow container, a suitable element is added to the workflow container and the binding entered.
    For more info pz go through the link given below,u will get the useful info regarding creation of container element and much more .
    http://****************/Tutorials/Workflow/Workflow.htm
    please reward if u find the info useful for u
    regards
    ashish

  • Import workflow container element to program exits

    Hi Friends
    Can you please let me know if we can import container elements from workflow to program exits in step?
    Regards
    Rajeev

    Hi Rajeev,
    Yes you can import container elements from the workitem (not the workflow) to the program exit. You need an element which references the container (if_swf_ifs_parameter_container). You probably have an attribute in you class which is a reference to IF_WAPI_WORKITEM_CONTEXT called M_CTX. This has a method called get_wi_container which will give you the workitem container. Now you not only have the option to read elements with method get in your container class, but there is also a method set which will allow you to fill or change values in the container.
    Regards,
    Martin

  • SP2013 Online - Approval Workflow "Request for Change" customization

    Hi,
    I am need for modifying the flow of request for change option in Approval workflow. 
    Whenever a user requests for change, I need to change the current task status as "Change Request" instead of completing the current task and creating a new task. Also, send an email notificaton to the requestor to make the changes. 
    Requestor will then make the changes and send a seperate email to the approver to review and approve the changes. After that reviewer will be appoving the workflow task.
    I am need of this process flow as my requestor group will not have access to workflow task to re-initiate the workflow after changes. 
    Please advice.
    soundar

    Hi,
    According to your description, my understanding is that you want to change the current task status as "Change Request" instead of completing the current task and creating a new task whenever a user requests for change in your SharePoint Online.
    For your issue, you can Copy & Modify the Globally Reusable Publishing Approval Workflow using SharePoint Designer and create a new Task Outcome for "Change Request".
    For more information, you can refer to the blog:
    http://thinketg.com/approve-or-reject-what-about-a-third-option-in-sharepoint-2010-approval-workflows/
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

Maybe you are looking for

  • No longer manage to copy music from iPod to iTunes

    After the installation of iTunes 7, I cant find a way to transfer the music files from my iPod to iTunes 7. YamiPod failed with error window pop up - "You have used this iPod with an unknown iTunes version, probably a new one." Also I am failed by us

  • Flash Image Viewer

    I am creating a page in DW8 and have inserted an instance of the Flash Image Viewer though despite changing the parameters in the Tag Inspector and the Flash Element pane to say that the controls should not be visible - they are and the pictures do n

  • New Intel Mini makes a slight whirring noise

    Hi I have just replaced my old G4 Mac Mini with a entry level Intel Mini. I noticed the new one maked a slight whirring noise constantly. Its only minor but noticable in the background The old Mini just used to have a slight fan noise which was more

  • Losing database connections in remote objects

    Hi, I have an interesting problem. I have a couple of remote objects that bear database connections. They are pooled in another remote object and provided by registry on request to the client. However, when I check the connections after a while, all

  • Unable to use 1610xi as network printer

    I have a small home network and I'm hoping I can get a little help with this issue.  I recently got a Buffalo 1.0TB NAS and I have the printer connected directly to the NAS to utilize the print server.  One Desktop, connected directly to the router,