Completion Workflow WS14000044

Hello,
We are in the process of migrating from SRM4 (Standalone Scenario) to SRM7.
We need to update the existing Shopping Cart approval workflow by adding new approver levels.
Currently we are using a customized version of the n-step dynamic approval workflow (WS 14000133). The requirement is to add another approver at the beginning as a Completion Approver. Whenever a SC is created without updating few specific fields, it will go to the Purchaser (or some other approver based on the requirement) for completion. This can be done through standard workflow WS14000044.
Our question is
How to trigger WS14000044 based on specific fileds? Once it is completed, how can we trigger the customized version of WS 14000133?
How can we change the agents dynamically at runtime in WS14000044 (i.e. the agent will be picked from a custom table based on the logical system and the specific fields of the SC - if blank)?
As we are new to workflows, we will really appreciate if you can provide us the detailed information.
You replies will be duly awarded.
Thanks & Regards

Hi Vadim,
the workflow log shows the following:
Work item 000000003173: Object FLOWITEM method EXECUTE cannot be executed
Error when processing node '0000000102' (ParForEach index 000000)
Error when creating a component of type 'Schritt'
Error within method CL_SWF_RUN_WIM_DIALOG->_CREATE_WORKITEM_CONTAINER
Error when creating a work item
Error when determining attribute 'NAME' of object instance '[BO.USR01.]'
Source (expression '&LASTWORKITEM.ExecutedByUser.Name&') of binding assignment is not available
Error in the evaluation of expression '&LASTWORKITEM.ExecutedByUser<???>.Name&' for item '28'
Error when processing node '0000000102' (ParForEach index 000000)
Error during result processing of work item 000000003174
Error when processing node '0000000102' (ParForEach index 000000)
The error arises after the purchaser has completed the shopping cart. actually the workitem should be passed back to the requester but then, the workflow breaks off.
could it be because of our batch user? does he need any specific configurations?
thanks for your help!
regards
Cordula

Similar Messages

  • Customize Completion workflow (WS14000044)

    Hi
    I was asked to do some changes to the completion workflow. But i am unexperienced in SRM.
    One of the changes is that i give the agent who completes a choice of options. In ECC i would solve this by creating a user decision which opens from the SBWP, and then each button leads to a different path, where i can model my actions according to the requirements.
    Has anybody an idea of how to present the agent the same choice in SRM? Do i need to add buttons to the screen?
    One other step is to send a mail through outlook to the creator of the shopping cart. Is there some standard way of doing this in SRM?
    Hope i dont ask something that needs a 3 day training
    Any ideas are welcome.
    Kind regards
    Robert

    Hello Robert,
    this needs just a 2 day training
    seriously: You can config the Offline approval process.
    See this
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10dfad5a-5398-2b10-568b-d3d999d49b5c
    and this
    http://help.sap.com/saphelp_srm50/helpdata/en/31/ec423b4ac8d506e10000000a11402f/frameset.htm
    now your manager gets an email if he has any workitem in his inbox.
    with a modification, you can add here another links, but you have to check your decision email in the report RBBP_OFFLINE_EVAL
    summarized: it is not so difficult, but programming is needed.
    Regards,
    SZD

  • Changing "Check Shopping Cart" screen and Completion workflow

    Hi,
    Below i describe a) the current process, b) the required changes, and c) my questions.
    Though it is also about workflows i still thought this was the best place to post the thread.
    Current process:
    In the process "free text order" i choose Go Shopping >> Shop >> Describe Requirement. I fill in details and complete the next steps.
    Now the Completion workflow (WS14000044) has started.
    So if I now look on my homepage in SRM i have an approval item which reads:
       Approval
       You can approve or reject shopping carts and read your e-mails relating to the procurement transaction
       You have
       -  1 Workflow Entries in Inbox
       -  0 Unread Documents in Inbox
    So i open the list and find one item: Complete shopping cart of mr X.. Now i click on the item and it takes me to "Check Shopping Cart"
    At the bottom of the screen is one button: "Change"
    Requirements:
    1)  add two buttons to this screen. One button is "Reject", to reject the shoppping cart directly. The second button "Mail Requester" to send the shopping cart back to the requester and also sends a mail via outlook to inform the requester that this has happened and requesting more information.
    2)  these buttons should then influence the behaviour of the Completion Workflow. In this workflow (WS14000044) the task Completion (TS14007947) currently has one activated outcome. From my two buttons i would need two more outcomes that allow me to model the other actions that i need i.e. the rejection outcome and the back-to-requester/send-mail outcome.    
    Questions:
    1)  is it allowed/possible to add the buttons to the existing screens. Or do i need to create a custom screen and call that instead of the standard screen?
    2)  is it allowed/possible to modify the completion workflow as described? Or do i need to copy and then modify?
    3)  How could i make the buttons to interact with the workflow? The only thing i can think of is to create a Z-bus object of the object Form and to modify so that it show my expected outcomes.
    4)  any helpful links to sdn posts of blogs or otherwise on how to go about to create the necessary changes.
    Thx for your input
    Kind regards
    Robert

    Hi Robert,
    Again, before technical solutioning, we need to step back and understand the business process and functions of each role (e.g., Buyer, Financial Approver) in the completion and approval workflow.
    Here's my understanding of the as-is (correct me if I am wrong). You are using One-Step Spending Limit WF (10000276) for financial approval. This is done by a Financial Approver (I am guessing, the line manager). The Buyer is not part of the process. Now, you want to introduce free-text requisitioning, and, consequently, you want to introduce the Buyer role into the workflow process - to complete the free-text lines (e.g. with vendor, price).
    Based on above scenario, I believe your initial solution was not incorrect - introduce Completion WF (14000044) for the completion task, while keeping 10000276 for financial approval.
    Now the business wants the Buyer to play a more active role in the process. They want to be able to Reject (the whole cart?) and Inquire (send the cart back to requester with questions). In my mind, it may still be possible to explore keeping the original design with Completion WF without modifying it, and still achieve the business needs. You can explore different ways of doing that: delete SC items instead of Rejecting, add Approval Comments to inquire, etc.
    Alternatively, you can replace all your workflows with one - WS14000133 "Spending limit, n-step,
    dynamic approvers (BAdI)". Here, you can determine your approvers flexibly via a BAdI implementation. For example:
    1. If Total Amount =< Spending Limit of Purchaser, then no approval agents - auto-approve SC.
    2. If Total Amount > Spending Limit of Purchaser AND there're no free-text lines, then determine Financial Approver.
    3. If Total Amount > Spending Limit of Purchaser AND there're incomplete free-text lines, then determine Buyer; once free-text lines completed - then Financial Approver.
    WS14000133 also has back-and-forth functionality which you can use for the inquiries. WS14000133 provides the most flexibilty, but it also involves more effort to implement. Read up on WS14000133 at help.sap.com.
    Bottom line - I would focus on evaluating these two standard options: 14000044 with 10000276, or 14000133. You may need to do some pros/cons, cost/benefit analysis. But I see no need to modify or copy SAP templates in your case.
    Cheers,
    Serguei
    <removed_by_moderator>
    Edited by Moderator on May 29, 2009 7:22 PM

  • Purchaser completion workflow

    Hi Guys
    We have the requirement that the user selects the custom check box in the shopping cart to send the cart to the purchaser. After purchaser completes the cart it should go to the requestor. Once requestor accepts the changes the N-Level approval workflow should trigger.
    We could not find a way to call the custom field in the Purchaser completion workflow (WS14000044).So we have created a custom business object called ZBUS2121 so that the custom field (check box) can be called in the container of the object in start conditions of the workflow (WS14000044).Then defined the start conditions such that when the check box is checked the completion workflow gets triggered.
    But the workflow is not triggering and getting the error message "Approval worklflow is ambiguous. Inform system admin".
    It seems the start conditions of purchaser completion and N-level Badi are clashing.
    Did anyone developed such custom logic in the purchaser completion workflow?
    Can anyone tell me how to define start conditions in Purchaser completion workflow and N-Level BADI ?
    Thanks in advance
    Jagadish

    Imtiaz
    Thanks for your continuous support. Appreciate your help.
    I did maintain "General Task" for TS14007938. Then the cart gets into requestor's inbox.
    Now the problem is the requestor is not able to edit the cart. When click on the description nothing opens up.
    The description of the cart in the requestor inbox says "Your shopping cart was processed by the buyer. please check it"
    I have some other carts that were rejected by the approver.Those carts I am able to edit them. Their descriptions shows "Your SC was rejected by approver. Pleas edit it"
    Is this because the description says "....Please check it" that I am not able to edit the cart? It si strange.
    Also I observed "No administrator found for the task" in the WF log. Wher should I define the administrator for the task?
    Thanks
    Jagadish
    Edited by: Jagdish Reddy on Jun 24, 2008 11:14 PM

  • WS14000044: avoid loop in Completion workflow usage if all lines not compl

    Dear all,
    I have a question around the detailed usage of Workflow WS14000044: Completion workflow.
    Here is my case:
    A requisitioner creates a SC with complete items from catalog and also incomplete one's in free text (because not in his catalogs)
    The approval will be a line item cost center approval (n-level line item implemented via BADI).
    However prior to this cost center approvals, a purchaser needs to be involved for the incomplete lines being:
    - free text
    - no price
    the reason is that the purchaser has more extended catalogs and will replace some free texts by catalog items not accessible by the requisitioner
    or will give a price estimation to be able to have a more accurate cost center approval (which is multilevel and based on the value of the item line).
    Then my idea was to use the completion workflow for it.
    But my question is as when going to the purchaser this one is not replacing necessarily all the free-texts, then the user receive the changes and validate them and then the standard start conditions of this workflow that include free text evaluation will retrigger this workflow again and again and again.
    1)Is this correct?
    2) If not why?
    3) And what must be the starting condition of the completion workflow and n-level approval workflow to avoid the loop?
    Thanks in advance
    RD

    Thanks for the guidance, but I have additional questions:
    0) Based on your answer I suppose you did not implemented it anywhere (in standard)like this? Correct?
    1)For the incomplete item flag, you said "This flag is false as soon as you get out of the completion WF." is that always the case or is it only when the Purchaser as set a price?
    2) In summary free text item condition for the Completion Workflow is only usefull if you are sure to convert all lines to Catalog items. Correct?
    3) Coming to you proposition you loose then the possibility to approve your changes by the user like in completion workflow? Or how do you set-up the n-level approval workflow to have the requisitioner himself involved?
    4) Can somebody help to find the FM to find the purchaser of the corresponding PGr?
    5) How can I handle in the n-step approval workflow step if I have a purchasing Group with more than 1 purchaser?
    Thanks
    RD

  • History Report of All the Completed Workflow

    We have a requirement of generating the history report of all completed workflows in a month.
    Where is the History data stored for all the workdflows. Is it in the Database tables or just in Workflow reports?
    How can this be extracted for above requirement.
    I know there is an iview for providing the history of a particular Workflow instance. Is there anything available for multiple WF instances.
    Please help.
    Thanks,
    Amber
    Edited by: amber gupta on Mar 8, 2008 3:17 AM

    Amber,
    I think you can use server logs for this purpose and also there is a status=completed in workflow tab in DM.
    But exact thing is log file where you can see triggered and completed workflows.
    Hope it will help you.
    BR,
    Alok

  • Completion workflow in extended classic scenario

    Hi gurus,
    We use extended classic scenario with SRM Server 5.5.
    In ppoma, each purch org and purch groups has the local and the backend. Vendors are replicated to backend purch org and then also to the local purch org.
    I have seen that in classic scenario purchasers should be assigned to the local purch org. however, completion workflow only determine the agent (purchaser) if it is in the backend purch org.
    The problem is that then this purchasers cannot manage any business partner.
    How can I solve it?
    I have seen other clients that the completion workflow determine the agents in the local purch org...
    Many thanks!!!
    Regards
    Patrícia

    Hi,
    In the Extended classic scenario, local purchasing organisation and purchasing groups are required to create shopping carts and purchase orders. in this scenario, when
    the vendors are replicated from the SAP back-end using BBPGETVD,BBPUPDVD program or vendor-synchronization programs, the vendor update in SRM is only for the R/3 purchasing organizations. because the local purchasing organisations are required in SRM for the Extended Classic or standalone scenario, these replicated vendors needs to be extended to the local purchasing organisations.
    organizations can use Tx. BBP_UPDATE_PORG for extending the vendors to the local purchasing organiztion.
    see OSS Note 390546 for more info.
    Regards
    vasanth

  • Purchasing Completion Workflow

    Hi,
    I have a question around the standard behaviour of the purchasing completion workflow and whether it can be influenced.
    As standard if the purchaser makes a change to a shopping cart when it is in the purchasing completion workflow then the cart is returned to the originator.
    I want the purchaser to be able to add a note to the cart but for it to be retained in their inbox and not returned to the originator.
    Does anyone know if this is possible.
    Cheers
    Chris

    Thanks for the response Michael.
    However I don't think that the workflow sceurity level effects the purchasing completion workflow. The back and forth processing between sc creator and purchaser is part of the initial workflow and doesn't seem to be subject to restart rule.
    Regards
    Chris

  • Purging Completed WorkFlows in MDM

    Weu2019re running SAP MDM 5.5 SP 6. 
    We implemented the SAP Note Number: 1240587 about 1 ½ years ago.  Here is the linku2026
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_mdm/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d31323430353837%7d
    It really seemed to help initially.  We went from 3 hours to load the repository down to 1 hour.  Yahoo!
    Unfortunately, we are seeing it slow down again (2 ½ hours).  After some research, we discovered that the Java Utility will ONLY delete the Workflows that are assigned to the ID that is running the Java Utility.  Example: Admin ID will only delete the Workflows that were launched by the Admin ID, such as Syndication and Import Managers Workflows. 
    We have several hundred people that can initiate a workflow to request a part change or add a new part.  So, running this job under their IDs is not an option.
    1)  Is there some way to create a Supper User ID that will delete all the Completed Workflows and not just the ones for the ID that is running the job?  If so, how do you create this ID, since we currently donu2019t have an id like that?
    2)  Is there some way we can change this job to loop through individual IDs to delete the completed Workflows? 
    3)  Or did someone get the Database Trigger to work that I read in a few discussions?
    4) Any other suggestions?
    Your help is greatly appreciated!!!

    Dear Henry,
    First, let me tell you the concept:
    It is Workflow Owner which has a special privilege to delete the Workflow Job at any point of time. The moment any user triggers a Workflow Job, Owner can see the status at any point of time and can take the control from any other user id.
    There are two options to define or declare a Workflow Owner:
    a) Any Specific User ID like in your case it is Admin. or
    b) The launcher who initiates the Workflow Job.
    Now your questions:
    1) Is there some way to create a Supper User ID that will delete all the Completed Workflows and not just the ones for the ID that is running the job? If so, how do you create this ID, since we currently donu2019t have an id like that?
    Ans: It is just like any other user id which are created in MDM Console. Yes you make a user id through Console and assign Admin Role to it. Now put this user id in Workflow Owner property and then you can execute your Java Utility to establish a session of this user id and delete all completed Workflow Jobs. It would not make any difference as this id will be like Admin.
    2) Is there some way we can change this job to loop through individual IDs to delete the completed Workflows?
    Ans: In this case you need to make Workflow Owner as Launcher and now whoever will trigger Workflow Job, that will become the Workflow Owner. Now you need to retrieve all user ids from MDM Console and establish a user session using Java utility, then you can delete all completed jobs which were assigned to an individual user ids. You need to customize your java utility here.
    3) Or did someone get the Database Trigger to work that I read in a few discussions?
    Ans: Better to use Java Utility instead of Database commands and schedule java program in background.
    4) Any other suggestions?
    Ans: Nothing :).
    BR,
    Alok Sharma

  • Outlook error when completing workflow task.

    Hi,
    Outlook error when completing workflow task.    I am receiving a "This task could not be completed at this time" error message in Outlook 2010 when completing a SP Approval workflow by using the "Open this Task" button
    in the ribbon.
    Please let me know the resolution for this issue.
    Thanks & Regards,
    Sasidhar K

    Hi Sasidhar,
    I'd first suggest installing any available updates on both Outlook and SharePoint sides for the issues related with Outlook integrated with SharePoint,
    Also, please take a look at this thread which disscused the same issue and see if it helps. <Steve_MTC> had a good summary of his findings:
    http://social.technet.microsoft.com/Forums/en-US/7a81aa4f-077b-4954-a110-7595169477e2/outlook-error-this-task-could-not-be-completed-at-this-time-when-completing-sp-approval-workflow?forum=sharepointgeneralprevious 
    You might also want to seek assistance in the forum of
    SharePoint, other partners who read the forums regularly can share their knowledge.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to find buyer in org structure for completion workflow

    Hi Experts,
    I have a doubt in org structure.As our client is saying that they implemented completion workflow to determine buyer and then approval workflow to determine the approvers.
    During completion workflow they are identifying the buyer using the org structure itself.
    How to identify immediate manager by looking at the org structure.(of course here it is Buyer for requestor ).
    Is there any attribute which gives the information

    Hi ,
    Well, are you working with PC or AC WFL? Anyway, usually for completion customer takes for example the users assigned to a concerning purchase group as to be the completioner. How to identy this in the org. level? You can con directly at PPOMA_BBP and check for this purchase organization  which users are assigned to it.
    In case of managers from  requestor, you can also see in the org. level. They are the users that uses a cap and are always assigned oe level above. There is the FM  which can be used to find the line manager assigned to the employee: RH_GET_LEADING_POSITION.
    I hope the above information helps you.
    Cheers,
    Melina

  • Custom field in start conditions for workflow WS14000044

    Hi all,
    We have a requirement where a value of a field is coming from the catalog to the shopping cart via the customer fields (provided by SAP). we want to use it as a start condition for the workflow.
    The issue we are facing is that the customer fields are not visible as start conditions for the workflow WS14000044.
    Is there a way we can make them visible?
    We are using SRM 5.0
    Thanks in advance
    Kishan

    Hi ,
    start conditions are specified based on reqhead , i am not very sure wether the customer fields are available there.
    since they are not available there , you can not see them in the start conditions.
    please check wether you can find any notes which deal with implemenation of customer fields in the start conditions.

  • Complete Workflow after approving all tasks

    Hello everybody,
    I'm face to a big problem with approval workflow OOTB. In my case, when one user from approvers approve his task. The workflow must be completed and we we din't need to wait other approvment. So, I developed an event receiver on Tasks Workflow list and I
    checked the first approvment. After, that I approve all other tasks by code. The problem, the status of workflow is still equal to "In progress" despite the ending of all tasks ! It is strange.
    This my code in event receiver of the list :
    public override void ItemUpdated(SPItemEventProperties properties)
    base.ItemUpdated(properties);
    SPList list = properties.List;
    SPWeb web = properties.Web;
    SPList createDocument = DMSUtility.GetListByUrl(web, DMSConstants.LIST_CreateDocument);
    string workflowItemId = string.Empty;
    string taskStatus = string.Empty;
    string taskID = string.Empty;
    string taskworkflowStatus = string.Empty;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(web.Site.ID))
    using (SPWeb webSecure = site.OpenWeb())
    if (list.RootFolder.Url.Equals((DMSConstants.LIST_CreateDocumentWorkflowTasks)))
    //Get Tasks item
    SPListItem itemTask = properties.ListItem;
    if (itemTask["WorkflowOutcome"] != null && itemTask["WorkflowItemId"] != null)
    workflowItemId = itemTask["WorkflowItemId"].ToString();
    taskStatus = itemTask["Status"].ToString();
    taskworkflowStatus = itemTask["WorkflowOutcome"].ToString();
    taskID = itemTask["ID"].ToString();
    if (taskworkflowStatus.Equals("Approved"))
    SPListItem item = createDocument.GetItemById(Convert.ToInt16(workflowItemId));
    // fetch workflow tasks
    SPWorkflowTaskCollection wfTasks = item.Tasks;
    int i=0;
    foreach (SPWorkflowTask task in wfTasks)
    // build a hashtable with the values to be changed to mark the task as complete
    if (task["ID"].ToString() != taskID && task["Status"].ToString()!="Completed")
    using (DisabledItemEventsScope scope = new DisabledItemEventsScope())
    task.Web.AllowUnsafeUpdates = true;
    task["Status"] = "Completed";
    task["WorkflowOutcome"] = "Approved";
    task[SPBuiltInFieldId.WorkflowVersion] = 1;
    task.SystemUpdate();
    Hashtable ht = new Hashtable();
    ht[SPBuiltInFieldId.Completed] = "TRUE";
    ht["Completed"] = "TRUE";
    ht[SPBuiltInFieldId.PercentComplete] = 1.0f;
    ht["PercentComplete"] = 1.0f;
    ht["Status"] = "Completed";
    ht[SPBuiltInFieldId.TaskStatus] = SPResource.GetString
    (new CultureInfo((int)task.Web.Language, false),
    Strings.WorkflowStatusCompleted, new object[0]);
    ht[SPBuiltInFieldId.WorkflowOutcome] = "Approved";
    ht["TaskStatus"] = "Approved";
    ht["FormData"] = SPWorkflowStatus.Completed;
    // alter the task using a trick to prevent task lock issue
    //AlterTask((task as SPListItem), ht, true, 5, 100);
    SPWorkflowTask.AlterTask((task as SPListItem), ht, true);
    while (!(bool)item.Tasks[i]["Completed"])
    Thread.Sleep(1000);
    task.Web.AllowUnsafeUpdates = false;
    task.Web.Update();
    i++;
    Do you have any idea ?
    Thanks.

    Hi,
    I have verified creating the simple approval workflow process.  Use the following two actions instead of setting workflow status to approved and stop the workflow.
    In this scenario, when one approver approves the task, others task is marked as cancel and his task will be marked as approved and list item will be marked as approved.
    And finally, one more thing, the approval process approvers must be in parallel
    Hope this will resolve your problem.
    Please mark as answered, if your problem resolved.

  • Completed Workflow Still in Inbox

    Hi,
    i am working on incoming invoice Ledger Workflow ,in this the workflow is showing the status 'Completed', but the user still has the workitem in the inbox.
    how can i remove the workitem from the user Inbox?
    Thanks in Advance .
    Abhi

    Hi Abhijeet,
    Mark the Task of the WORKITEM as SYNCHRONOUS... That would do for you.
    As synchronous states that if work item is executed then it will disappear from the INBOX.
    Please let me know your status after you had done it..
    Revert back if any queries
    Good luck
    Narin

  • Complete workflow tasks before starting another workflow.

    Hello everyone
    I have a requirement in my project and i am not sure how to do that task in best possible way.
    I have a reviewer workflow where i will be creating approval tasks for 'n' number of reviewers (the reviewers we get it from initiation form).
    For example
    I have 4 reviewers and there will be 4 approval tasks (1 for each) that will be created and if I have a reply percentage (the people who reviewed
    the tasks assigned to them) set to say 50%. 
    Then if at least 2 reviewers are sending reply for the tasks assigned to them then
    we can start another workflow manually and when that new workflow is starting we should complete all the tasks that are in progress for the review workflow
    If there are only 1 reviewer or no one is sending reply then we should not allow
    the new workflow to start and if anyone try to execute the workflow manually we should say “Minimum number of reviewers had not replied to the tasks assigned to them so we cannot start the workflow now. Retry later”.
    How to achieve this requirement? I already developed the 2 workflows that I discussed here and it is working correctly. I simply need to create this dependency condition
    between the 2 workflows as I discussed here. Please suggest me the proper way for achieving my requirement.
    Thanks
    K.Anantha rengan

    Hi K, the only way I can see this working is if you make the second workflow automatic, and have it start when the number of approvals reaches a certain number. This number would have to be in another column (possibly a calculated column).
    cameron rautmann

Maybe you are looking for