How to automatic complete workflow after 3 weeks ago ?

Hi all,
I have one problem about workflow in SAP.
I have the workflow that have one agent to assigned.
How can I setup workflow to automatic complete if agent don't process task within 3 weeks ?

Hi,
Check whether the background job SWWDHEX is configured and its running for each 3 minutes.
Also if you set the deadline as 3 minutes's, then you have to wait for some more 3 mins. Once the deadline reached the background job will execute the step with in three minutes. Check transaction SWWA. Here you can set the time interval for deadline job SWWDHEX.
Then in the Activity step once the deadline is set, then select the modeled deadline in the action field. So that it will create a new
branch in the wok flow template.
For testing purpose, Just create a send mail step in the new branch and wait for ten minutes. Deadline will be reached and the mail will send to the inbox.
Thanks.

Similar Messages

  • How to triger SAP workflow after save in t-code RMWB

    Dear friends,
    After execute t-code RMWB, I could click save button to save it. but my requirement is to triger the SAP workflow to send an email.
    My question is, how to triger this SAP workflow after clicking save in t-code RMWB?
    Thanks a lot!

    Use this function module in a Exit or BADI or Enhancement spot during SAVE
    SAP_WAPI_START_WORKFLOW
    I THINK IT CAN BE DONE BY CREATING A SPOT IN "CALL METHOD GO_APPL->MO_RMWB->SAVE" IN PROGRAM OF RMWB

  • How to continue the workflow after a block?

    Hello,
    I'm trying to make continue the workflow after a block. The CompleteActivity procedure doesn't give an error, but the workflow doesn't continue.
    Anybody a good idea?
    Robby

    CompleteActivity is the correct API, see the Workflow Guide for details,
    procedure CompleteActivity
    (itemtype in varchar2,
    itemkey in varchar2,
    activity in varchar2,
    result_code in varchar2);
    where:
    itemtype A valid item type.
    itemkey A string generated from the application object's primary key. The string uniquely identifies the item within an item type. The item type and key together identify the process.
    activity The name of the activity node that is completed. Provide the activity node's label name. If the activity node label name does not uniquely identify the subprocess you can precede the label name with the internal name of its parent process. For example, <parent_process_internal_name>:<label_name>. This activity node must be marked as a 'Start' activity.
    result_code An optional activity completion result. Possible values are determined by the process activity's Result Type, or one of the engine standard results. See: AbortProcess.
    Hello,
    I'm trying to make continue the workflow after a block. The CompleteActivity procedure doesn't give an error, but the workflow doesn't continue.
    Anybody a good idea?
    Robby

  • How to get the day of 52 weeks ago data

    hi all:
    i recently encounter the difficulty that using the current data to get the 52 weeks ago data in essbase.the fct table is like this:
    current_dt the_day_of_week sales
    20110203 5dw05 100
    20100207 5dw05 30
    note: "5dw05" means the fifth day of five week in the selected year
    the question is which essbase formula to choise or how to use them in essbase outline structure can meet the bussines role that when the biz men chlic on the member "20110203" of time dimension, the extension mesure "bf_sales" value is 30.
    the outline i am about to design under the bellow:
    dim_time
    201002
    20110201(alias 4dw05)
    20110202(alias 5dw05)
    20110203(alias 6dw05)
    201102
    20110206(alias 4dw05)
    20110207(alias 5dw05)
    dim_measure
    sales
    bf_sales(will use the essbase formula,but do not know which function to choise or how to use it)
    i am lovely hope one of you may give me suggestion on this issue. thanks a lot for all of you!

    If you put the Apple calendar app on the first screen, it shows the day and date (no month/year). E.g Sunday 20.

  • How can I retrievew history from 2 weeks ago that has been deleted?

    How can I retrieve my history from two weeks ago? It's been deleted and I desperately need it to prove that I was on the computer (facebook) at a certain time. HELP!!!!
    == This happened ==
    Not sure how often
    == How can I retrieve my history from two weeks ago? It's been deleted.

    Sorry, unless you specifically backed up the places.sqlite file in your Profile folder, that data is gone and all but impossible to recover without using a data recovery program.

  • How to stop a workflow after appraisal is deleted / BUS7026

    Hello dear workflow experts,
    I want to automatically stop a workflow for business object BUS7026 after the appraisal is deleted with  transaction PA30. For this i created a new event but although I put the entry in the table with  transaction SWEHR3 it is not picked up. I only put a breakpoint in the function module to see if it comes that far. But tests are negative. Does anyone has experience with this which object and infotype to use in the table?
    Any help is welcome!
    Thx Richard

    Hello thanks for the replies,
    I have created an event in the SWO1 for the business object because this object does not have an event to handle this. Only the event COMPLETEDAPPRAISAL exists. Therefore it is not displayed in the SWEL automatically. I have to force this. My question how.....
    I tried to add the event in SWEHR3 for the deletion of object type BA but this does not trigger the workflow. My question now is does anyone have an idea how to trigger the event.
    Off course I understand that after the event is raised you can model a parallel branch but this is not my problem. Getting the deletion event raised is my problem.
    Regards,
    Richard

  • 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.

  • How to automatically complete an SD Contract when not all quantity is used

    Hi,
    I have a situation where it often happens that not all the quantity in an SD Quantity Contract is used in Sales Orders. When this happens, currently the business users have to go into the Contract, and amend the quantity in order to complete it. I am looking for a way to configure SAP so that these Contracts will automatically move to Complete Status when a certain percentage of the quantity has been used.
    I have tried Completion Rules B and C on a new Item Category (copied from KMN).  When I select B the Contract is marked as complete after the first Sales Order is raised, regardless of the quantity. When I select C the Contract does not mark as complete. both times I set up a Contract for 100KG, then Ordered 98KG.  I tried amending the under-delivery tolerances on the Customer Master and it had no effect.
    I have searched the SD Forums, looked on SAP Support Marketplace, and tried Google - but I can't find anything that describes my situation. Can someone out there advise?
    Thanks,
    Val

    Hi,
    I don't think this can be achieved in SAP std.
    You have to go for custom development in ABAP . You can achieve this through userexit MV45AFZZ. The code will be executed when saving the subsequent sales document i.e. Sales order. Once the said percentage is achieved this code will set the status of contract as referenced.
    Hope this will help you.
    Thanks and regards
    Atul

  • How to automatically actualize UWL after return from WebDYNPRO?

    Hello,
    in the universal worklist (uwl) i have configured a workstep to open a Web Dynpro application instead of the SAP GUI. This works fine and i can process the Workflow.
    But after processing of workstep I returns to the UWL using
    WDPortalNavigation.navigateAbsolute(          "ROLES:portal_content/tm.eop.fd.eop_root/tm.eop.fd.content_root/tmcz.eop.fd.tmcz_root/tmcz.eop.fd.my_workspace/tmcz.eop.ro.my_workspace/my_workspace/tmcz.eop.iv.uwl",          WDPortalNavigationMode.SHOW_INPLACE,
                        (String) null,
                        (String) null,          WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
                        (String) null,
                        (String) null,
                        (String) null);
    In the UWL there is non relevant item (item that was processed in WebDynpro) and it angers users.
    It is possible to actualize UWL automatically after return from WebDYNPRO application? WebDYNPRO is opened in the same window and frame as UWL.
    Thanks for your help.
    Ondrej Lednicky

    Followed what vinay and Timo sugguested:
    One solution is to use a af:dialog in the popup where you define a dialogListener  to catch the outcome of the dialog and if it's OK you call your other method.
    I wrote method code in back bean like this:
        public void refreshBillFromDialog(DialogEvent dialogEvent) {
            // Add event code here...
            if (dialogEvent.equals(false)){
                return;
            AdfFacesContext adfFacesContext;
            adfFacesContext = AdfFacesContext.getCurrentInstance();
            adfFacesContext.addPartialTarget(Bill4NewReceiptPending);
            //actionEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
            BindingContainer bindings2 = getBindings();
            System.out.println(" refreshBillFromDialog:bindings2: "+bindings2);
            OperationBinding operationBinding2 = bindings2.getOperationBinding("ExecuteWithParams");
            Object result = operationBinding2.execute();
            if (!operationBinding2.getErrors().isEmpty()) {
                 return ;
    And it works: the adf table(Bill4NewReceiptPending) in the calling page will be refreshed after the dialog popup was closed!
    Thank you all!
    What's more, I found even if I use bounded workflow calling instead of using popup dialog calling, the  returnListener wasnot executed either.
    And there is still a issue in the popup Dialog: The strange behavior of checkbox selection, see the thread:
    Why the page cannot refresh correctly after making checkbox selection?
    I tried and put aside for some days, and have no idea yet.
    Can anyone give helps?
    Thanks!

  • How to reopen completed workflow approval tasks?

    Hello - we are using OOTB approval workflows associated with a SP list. If a task is in "completed" status because the approver it was assigned to approved it, but it's not actually completed because the user approved it prematurely in error, how
    can I reopen the task?
    Thanks,
    Chris

    Hi Chris,
    We cannot reopen the task to approve or reject it again even thought we restore the task to a version before completed. Because once the task is in "Completed" status, it will be locked by the workflow and cannot be edited.
    For a workaround, you can start the approval workflow manually  and approve or reject it again.
    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

  • How to automatically send report after it is created?

    Hello,
    I am beginner and I would appreciate if someone could tell me general information.
    I found this tutorial how to save and access report.
    Storing and Accessing Reports in the Database
    In that tutorial report is saved onclick.
    Is there a way to automatically email report everytime report is generate or I should first save it (PDF, CSV,..) with SQL script and then email it?
    I also found that in Interactive report there is page process that can send e-mails. Is it possible that page process send e-mail with report or report should be also saved before sending?
    The reason for this is that we want to have a history of created reports.
    Thank you in advance.

    874887 wrote:
    The reason for this is that we want to have a history of created reports.
    Save report, then email it.
    I usually call COMMIT between the two steps.
    Use the APEX_MAIL package to send out an e-mail with an attachment.
    You should be able to modify the PL/SQL to do it all in one step
    declare
      l_report blob;
    -- Added this for APEX_MAIL
    l_mail_id NUMBER;
    begin
      l_report := apex_util.get_print_document (
      p_application_id => :APP_ID,
      p_report_query_name => 'blobquery',
      p_report_layout_name => 'blobquery',
      p_report_layout_type => 'rtf',
      p_document_format => 'pdf'
      insert into report_archive (
      filename,
      mimetype,
      report,
      created_date,
      created_by
      ) values (
      'BLOB Query Search Results ('||to_char(sysdate,'DDMonYYYY')||')',
      'application/pdf',
      l_report,
      sysdate,
      :USER
    -- COMMIT the insert so you don't e-mail out a report
    -- that was never saved
    commit;
    -- create e-mail here
    l_mail_id := APEX_MAIL.send( ... ); -- see document for usage
    APEX_MAIL.ADD_ATTACHMENT( .. ); -- see document for usage
    end;
    MK

  • How to recover the workflow after dead line is missed

    Dear friends,
    my work item missed requested end date as well as latest end date. I see it in
    transaction SWI2_DEAD. Is there way how to recover the work item or prolonge
    the dead lines?
    Thanks for you help.
    Regards,
    Petr.

    Hi Petr,
    Could you please explain in a little more detail, what exactly you mean by "recover"?
    Nothing actually happens to the work item, unless you have designed the workflow with modelled deadlines in such a way that it cancels the item and perform some or other action. Simple deadlines don't do anything to the work item, they just send out a notification and the work item remains where it is.
    If on the other hand you have a modelled deadline which cancels the item and generates a new one, then there is no way to "recover" other than starting a new workflow.
    Cheers,
    Mike

  • How to automatically close TitleWindow after 10 secs?

    hello,
    I've been trying several options to automatically close title window (created via popupmanager) but none is working.
    I create this window as kind of final confirmation. I want to display it for 10 secs, then close and bring user back for welcome screen. For now I only managed to impement this for close window event, but this timed closure is highly needed. Anyone could help?
    Regards,
    Akeen

    Have your tried calling your popup remove function from a setTimeout call?
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/package.htm l#setTimeout

  • How to make videos automatically play right after each other?

    I have four videos that I need to automatically play right after each other. For instance video1 plays and is done so video 2 should automatically start to play and then when video 2 is done video 3 should start and when video 3 is done video 4 should start and when video 4 is done video 1 should start. How do you code for this? Also, when a button is clicked whatever video is playing needs to stop and then the item that the button is linked to should show up whether it is another video or a graphic with scrolling text.

    How do you use a complete listener? Can you give me an example of code to use or give me a link that has step-by-step instructions? I really would appreciate it.

  • I have cleared my history and the history now automatically is cleared, but the ten items in the drop down menu continue to be there from weeks ago. How do I clear them?

    The ten items in the drop down History header continues to show ten sites that I several weeks ago. Any new sites that I have used recently or am currently using do not appear in this list. I have configured the history settings to clear automatically, but those ten old sites persist throughout all current use. How do I get rid of them?

    Entries in the location bar drop down list with a yellow (blue on Mac) star at the right end are bookmarks.<br />
    You can remove such a bookmarked item that shows in the list if you open that url in a tab and click the yellow star in the location bar.<br />
    This will open the "Edit This Bookmark" dialog and you can click the Remove button to remove the bookmark if you want to remove such a bookmarked entry.<br />

Maybe you are looking for

  • Playing recorded loops (they stay greyed out)

    When recording on a loop , it creates multiple recordings, and places it on a new track. I love this functionality! However only the last loop recorded lets me play it / hear it. How do I enable the other tracks so that i can hear them (ungrey them o

  • Get all the tabs in internet options in IE

    hi,  i am using  IE 10 in my windows server 2012. while i try to edit the settings of  Internet Options by clicking the Gear Symbol of IE, am  seeing that none of the tabs except "General" is avaialble. can anyone pls tell how to enable the otehr tab

  • Help: Songs Do Not Appear When Importing an itunes Library XML file

    I have 2 apple IDs and 2 libraries I want to combine. I've been working on this for hours. I found detailed instructions on making sure all the right preferences are checked, locations are in public folders, and so on. There are no error messages whe

  • Need to uninstall this

    after removing my webcam nx i have this leftover thing wanting to startup in services. it is this (creative PD0 Runapp Service) is this my old webcam stuff left behind if so how do i get ride of this all folders are gone for this webcam and all is re

  • Error using IDoc SALESORDER_CREATEFROMDATA202

    Hi I'm trying to use IDoc SALESORDER_CREATEFROMDATA202 to create a sales order in the R/3 system, but I' keep getting the following error: "Maintain billing plan type in sales document type or item category" We are not using billing plan type at all