WorkItem getting deleted

Hi, I have created a workflow for PR release. Approver will get the PR in his SAP inbox, when he click on workitem, it will take him to ME54N, from where he can release the PR.
The problem I am facing is that, if approver dont perform any action in ME54N, simply come back by pressing the back button, without releasing it, the workItem is getting deleted from his inbox and workflow going to next step. My BO method that is associated with task responsible for that workitem is Dialog and Synchronous method.
I have also given one terminating event for this task, and raising this event at SAVE button of ME54N, so that pressing BACK button should not delete the Workitem.
Please suggest the possible cause of this problem. I want workitem only to get delete on SAVE button, not on Back Button.
If Approver is not releasing it and simply coming back the workitem should remain in his inbox, and workflow should not go to next step.

Hi,
You have to use Asynchronous method for requirements like these where you have standard SAP transactions doing the same job as your work item.
Change your method to synchronous. Also you can refer to WS000000038 workflow for reference as it does the same thing.
( Also do compare your terminating events ).
Regards
Gautam

Similar Messages

  • Workitem not getting deleted from SAP inbox

    Hi ,
    I have a scenario in workflows , in which when a user creates a timesheet , a mail goes to approver , when the timesheet is approved the mail should get automatically deleted .
    We have created a standard task for this purpose ( a copy of TS31000007)  .
    The business Object is CATS , terminating event is COMPLETED , method is APPROVE . There is no triggereing event a FM is being used .
    The standard task is copied in two test environments , from first system the mail gets automatically deleted , but from the second one it is not getting deleted .
    Also the workflow log in SWEL doesnt show any rows in the second system .
    In the first system , there are 4 steps  in the workflow log :
    Dialog work item created
    Background process started
    terminating event received
    work item processing complete
    Though the workitem has deleted , but the status of the workflow is in Progress
    while the second has only two steps in workflow log
    Dialog work item created
    Background process started
    and the workflow status is "Ready"
    I guess the terminating event in the second case is not getting received .
    but ,I have  checked sweinst and found that the instance linkage is activated .
    Also when the workitem is approved , it does not get delete , and if we try to re execute it again , the gives a msg " NO data found "
    Can someone help me to find why the mail is stuck in the inbox and  correct this problem.
    Thanks
    Sheetal

    Unless and until the Terminating event is triggered the workitem will not disappear. Check how the Event is getting triggered in other system. I feel it is getting triggered by standard means. Check whether there is proper settings in SWEHR3.
    It means that you are not doing any special configuration for event triggering or coding. Please check what is missing in the system you are having problem.  Check SWU3 setting is fine or not.
    <b>Please close thread when issue resolved</b>
    Thanks
    Arghadip
    Message was edited by:
            Arghadip Kar

  • Workflow gets deleted but dependant steps are not deleted

    Hi Experts,
    When OMR_DELETED event of BOR object ECO is raised, as per design the workflow instance is logically deleted. But all the dependant steps of the workflow are not getting deleted logically.
    Why is this happening?I mean why workitems generated for child steps are not deleted when parent workflow instance is logically deleted?
    Thanks,
    Sonali.

    Hi,
    as per design the workflow instance is logically deleted. But all the dependant
    steps of the  workflow are not getting deleted logically.
    Are you using wait to delete logically or through Function Module. Can you tell where you doing this.
    Regards,
    Surjith

  • TaskInstance gets deleted intermittently

    Hello there,
    I have made an application where i have craeted seperate workflows for creation, modification of user accounts. The system is Live now and we have been facing a peculiar problem.
    The requests raised goes to SQL database(not repository databse, we have serperate databse for storing requests details) and it is picked up and shown to the users who has approver's rights in the organisation.
    Find below the flow of the workflow:
    1. User A raises a request and it goes in the SQL database where it also stores the TaskInstanceID of the taskInstance generated(corresponding to TID column of DB). The request lies in the database and hence can be seen by all the users of organisation. But the request needs approval and can only be approved by a user with appropriate rights.
    2. User B who is an approver logs-in and opens the request. He can see the approve button and would approve it. Now the request will need second level approval in a similar fashion.
    3. User C who is a second level approver logs-in and opens the request. He can see the approve button and would approve it finally.
    Now the intermittent problem lies between step 1 & 2 and Step 2 & 3.
    Sometimes when user B opens the request he finds the error that workitem does not exist. we checked from repository that both the taskInstance and Workitem has been deleted.
    The samething sometimes happens with user C. They are able to see the request because request is stored in SQL databse but when workitem is displayed then sysetm is not able to find workitem as well as TaskInstance.
    This is a very old issue and due to a alrge number of users we cannot afford to put trace to see from where atskInstance is terminated.
    Additionally, i found that there is a activity whoch does not have a default transition and hence when none of Transition condition is met, the TaskInstance & Workitem terminate immediately. I added a default transition to avoid it but still we are facing the same issue.
    can you please help me to find out the cause?(we are not able to see the taskInstance because it gets deleted and we never come to know where the taskInstance actually terminated)
    This is an urgent issue and i shall be very thankfula for any help....Thanks in advance

    Hello mates.....I forgot to mention few things here...... My only concern in this issue is that i want to know that at what point the taskInstance gets terminated. I have mentioned few possible reasons which came to my mind:
    The taskInstance can get terminated in following circumstances:
    1. If there is no default transition (as i mentioned). In this case if the workflow does not meet the conditions in any of the transtions, then it terminates immediately. I could find one such transition and corrected it but in vain.
    2. Possibly, the workflow enters in cycle of transitions between two activities (with no manual Action), i goes in infinite loop and when maximum number of steps in taskInstance is reached, then it terminates. The maximum number of steps is configured as 5000 in systemConfiguration file.
    3. Some unwanted transition is forwarding the control to "end" activity causing termination of taskInstance.
    I AM NOT ABLE TO THINK OF SOME OTHER POSSIBILTY.
    I dont have much expertise in IDM and want to know if there is any way to detect the path a taskInstance followed(1 , 2 or 3).
    I am left with the taskInstance ID but it cannot give me details because taskInstance termination causes its removal from repository and it is not found from DEBUG console.
    I cannot use trace in the whole workflow because daily there are around 2000 requests raised and i wont be able to figure out the path from the mixed trace output in logs.
    I am totally confused and have spent more than a month investigating this issue. I am here in a hope to get some expert advise.
    Thanks

  • UWL workitems not deleted

    Hi,
    not dealt with UWL workitems before.
    Client has a PR WF in the system and workitems go to UWL for Approvals.
    Instead of releasing the PR from UWL, the user has released it from ME54N.
    So now, though the PR is released, it still shows workitems in UWL.
    My question is are there any settings (in SAP, Portal) which could handle this, so that whenever user releases a PR thru ME54N, the workitem in UWL gets deleted.
    Other question, now since the workitems (for which PR was released from ME54N) are there in UWL, what happens if the user again db-clicks the workitem, will it throw an error?
    Last question, what can I do to remove those workitems for which PR was released from ME54N. How can I delete them.
    Thanks,
    Aditya

    Hi Aditya,
    As Workitem behaviour is dependent on Status, set the Workitem status to complete using any one of the following FM
       SAP_WAPI_SET_WORKITEM_COMPLETD
       SAP_WAPI_WORKITEM_COMPLETE
       SWU_COMPLETE_R3F_WORKITEM
    I dont know the exact one... so kindly check the Documentation of them and choose the best.
    As far as i know second one would set the status to complete
    Hope this would Solve your issue.
    Regards
    N.N.

  • HT201269 I am trying to save memory on my iPhone 4S/ ios6. Can I back up all photos to icloud and the external hard disk I normally use for photos? If I then delete photos from the iPhone do the get deleted on iCloud?

    I am trying to save memory on my iPhone 4S/ ios6.
    1) Can I back up all photos to icloud and the external hard disk I normally use for photos? If I then delete photos from the iPhone do the get deleted on iCloud?
    2) Can I back up the newsstand to iCloud and save memory on the iPhone?
    3) Can I back up the bookshelf to icloud and save memory on the iPhone?

    1. What format is the external drive? It sounds like it's ina format that Macs can't write to. Is it a NAS or NTFS?
    2. Easiest thing: just move your iPhoto Library to the external
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • Deleted Item not actually getting deleted or **delay** deleted thus getting refetched (EWS Managed API)

    I am polling Exchange Server to fetch all the mails left in the Inbox and then fetching them, processing them and finally moving them to the deleted folder. My procedure takes following form of EWS Managed API calls:
    1 itemResults = service.FindItems(WellKnownFolderName.Inbox, itemView);
    2 //some code...
    3 service.LoadPropertiesForItems(itemResults.Items, itItemPropSet);
    4 //some code...
    5 foreach(Item item in itemResults)
    6 {
    7 //process item
    8 item.Delete(DeleteMode.MoveToDeletedItems);
    9 }
    To test this code I flooded the inbox with 5000 mails, 5 threads flooding 1000 mails each at the interval of 4ms.
    After test run, I realized some mails are getting processed multiple times.
    When I read the soap traces logged using TraceListener, I realized that when there are more than 100 mails in the inbox, there are more SOAP packets were dispatched in burst of 100s.
    Logically below set of SOAP Packets (let us call it "Set 1") should occur only once:
    <m:FindItem>...</m:FindItem> //generated by line 1
    <m:FindItemResponse>...</m:FindItemResponse> //generated by line 1
    <m:GetItem>...</m:GetItem> //generated by line 3
    <m:GetItemResponse>...</m:GetItemResponse> //generated by line 3
    followed x number of Delete SOAP packets for x number of mails in the Inbox
    <m:DeleteItem>...</m:DeleteItem> //generated by line 8
    <m:DeleteItemRepsonse>...</m:DeleteItemRepsonse> //generated by line 8
    However if there are say 325 mails in the inbox, then there first occurs 4 occurences of Set 1 followed by Delete SOAP packest as follows:
    //1st occurence
    <m:FindItem>100 items</m:FindItem>
    <m:FindItemResponse>100 items</m:FindItemResponse>
    <m:GetItem>100 items</m:GetItem>
    <m:GetItemResponse>35 items</m:GetItemResponse>
    //2nd occurence
    <m:FindItem>100 items</m:FindItem>
    <m:FindItemResponse>100 items</m:FindItemResponse>
    <m:GetItem>100 items</m:GetItem>
    <m:GetItemResponse>35 items</m:GetItemResponse>
    //3rd occurence
    <m:FindItem>100 items</m:FindItem>
    <m:FindItemResponse>100 items</m:FindItemResponse>
    <m:GetItem>100 items</m:GetItem>
    <m:GetItemResponse>100 items</m:GetItemResponse>
    //4th occurence
    <m:FindItem>35 items</m:FindItem>
    <m:FindItemResponse>35 items</m:FindItemResponse>
    <m:GetItem>35 items</m:GetItem>
    <m:GetItemResponse>35 items</m:GetItemResponse> //****followed by 335 occurences of the Delete SOAP packets****<m:DeleteItem>...</m:DeleteItem>  
    <m:DeleteItemRepsonse>...</m:DeleteItemRepsonse> 
    //334 more of above
    So there are 100 + 100 + 100 + 35 = 335 items actually getting handled, which is 10 more than what are actually present in the inbox. 
    Also notice that Delete SOAP packets are queued till end. They are not dispatched in burst.
    First thing I realize dispatching SOAP packets in burst of 100s is EWS Managed API behavior. I guess there must be traffic reason behind it and there must be some configuration setting to tweak it.
    Q1. How can we change this count of 100?
    I inferred that there are some overlaps in fetching of mails.
    So I copy pasted SOAP Traces for first two of
    <m:GetItem>100 items</m:GetItem>
    in two different files, and compared them in text comparer. I realised that some mails that are at the end of the first 100s were reappearing at the beginning of 2nd 100: 
    This is the pattern in many test runs.
    Due to this these overlapping mails, these mails are getting processed twice. Also the attempt to second time delete them was throwing exception : The specified object was not found in the store.
    So I guess there is time delay in delete mail API call and mails actually getting deleted, between which they are getting refetched.
    Q2. How can I handle this to avoid redundant processing of mails and unnecessary exceptions.

    I am polling Exchange Server to fetch all the mails left in the Inbox and then fetching them, processing them and finally moving them to the deleted folder. My procedure takes following form of EWS Managed API calls:
    1 itemResults = service.FindItems(WellKnownFolderName.Inbox, itemView);
    2 //some code...
    3 service.LoadPropertiesForItems(itemResults.Items, itItemPropSet);
    4 //some code...
    5 foreach(Item item in itemResults)
    6 {
    7 //process item
    8 item.Delete(DeleteMode.MoveToDeletedItems);
    9 }
    To test this code I flooded the inbox with 5000 mails, 5 threads flooding 1000 mails each at the interval of 4ms.
    After test run, I realized some mails are getting processed multiple times.
    When I read the soap traces logged using TraceListener, I realized that when there are more than 100 mails in the inbox, there are more SOAP packets were dispatched in burst of 100s.
    Logically below set of SOAP Packets (let us call it "Set 1") should occur only once:
    <m:FindItem>...</m:FindItem> //generated by line 1
    <m:FindItemResponse>...</m:FindItemResponse> //generated by line 1
    <m:GetItem>...</m:GetItem> //generated by line 3
    <m:GetItemResponse>...</m:GetItemResponse> //generated by line 3
    followed x number of Delete SOAP packets for x number of mails in the Inbox
    <m:DeleteItem>...</m:DeleteItem> //generated by line 8
    <m:DeleteItemRepsonse>...</m:DeleteItemRepsonse> //generated by line 8
    However if there are say 325 mails in the inbox, then there first occurs 4 occurences of Set 1 followed by Delete SOAP packest as follows:
    //1st occurence
    <m:FindItem>100 items</m:FindItem>
    <m:FindItemResponse>100 items</m:FindItemResponse>
    <m:GetItem>100 items</m:GetItem>
    <m:GetItemResponse>35 items</m:GetItemResponse>
    //2nd occurence
    <m:FindItem>100 items</m:FindItem>
    <m:FindItemResponse>100 items</m:FindItemResponse>
    <m:GetItem>100 items</m:GetItem>
    <m:GetItemResponse>35 items</m:GetItemResponse>
    //3rd occurence
    <m:FindItem>100 items</m:FindItem>
    <m:FindItemResponse>100 items</m:FindItemResponse>
    <m:GetItem>100 items</m:GetItem>
    <m:GetItemResponse>100 items</m:GetItemResponse>
    //4th occurence
    <m:FindItem>35 items</m:FindItem>
    <m:FindItemResponse>35 items</m:FindItemResponse>
    <m:GetItem>35 items</m:GetItem>
    <m:GetItemResponse>35 items</m:GetItemResponse> //****followed by 335 occurences of the Delete SOAP packets****<m:DeleteItem>...</m:DeleteItem>  
    <m:DeleteItemRepsonse>...</m:DeleteItemRepsonse> 
    //334 more of above
    So there are 100 + 100 + 100 + 35 = 335 items actually getting handled, which is 10 more than what are actually present in the inbox. 
    Also notice that Delete SOAP packets are queued till end. They are not dispatched in burst.
    First thing I realize dispatching SOAP packets in burst of 100s is EWS Managed API behavior. I guess there must be traffic reason behind it and there must be some configuration setting to tweak it.
    Q1. How can we change this count of 100?
    I inferred that there are some overlaps in fetching of mails.
    So I copy pasted SOAP Traces for first two of
    <m:GetItem>100 items</m:GetItem>
    in two different files, and compared them in text comparer. I realised that some mails that are at the end of the first 100s were reappearing at the beginning of 2nd 100: 
    This is the pattern in many test runs.
    Due to this these overlapping mails, these mails are getting processed twice. Also the attempt to second time delete them was throwing exception : The specified object was not found in the store.
    So I guess there is time delay in delete mail API call and mails actually getting deleted, between which they are getting refetched.
    Q2. How can I handle this to avoid redundant processing of mails and unnecessary exceptions.

  • Order category BF not getting deleted in APO

    Hi Experts,
    I have a situation where the material is already deleted in ECC (hence no longer existing), but the product is existing in APO and we need to delete this in APO. To do this, we need to delete the dependent orders for that product/location first and then other dependencies.
    There are few orders for the prod/loc as confirmed purchase orders (ord cat BF). These orders are now PP/DS orders with status as PP firmed, output firmed and date fixed.
    I have tried the two programs- /sapapo/rlcdelete and /sapapo/delete_pp_order, but system is not picking up the orders to delete.
    The system shows as message as " No deletion of converted orders in active version"
    As I said earlier, the product is no longer existing in ECC, hence I can not delete the orders from there.
    Is there any other way to achieve this? Is there any BADI to do this in APO?
    Regards
    Manotosh

    Hi
    You can use /SAPAPO/DELETE_PP_ORDER report for deleting these orders.
    Execute the this report, mention all the products for which you want to delete the order and execute it. It might give the message as orders will not get deleted as inactive in APO.
    Go back please enter as DEL_EXECU, in the place where we use to enter the T-codes and enter and than again execute the report. It will delete the orders.
    You can also try /SAPAPO/SDORDER_DEL report.
    Thanks
    Amol

  • Past due PurRqs are getting deleted in APO but not getting deletd in R3

    Hi folks,
    We have a daily job, which runs at 18:00 hrs in the evening everyday in the APO Production System.The job is to delete all past due Purchase Requisitions for last 2 years (job & variant details are mentioned below) All the past due PurRqs are getting deleted from APO, which we have cross-cheked in RRP3 view many times.
    However the same is not getting deleted in R3 systems. The planner/end- user is getting confused & hassled by this list of old PurRqs which is visible in R3 through MD04 t-code.
    Please suggest remedial/corrective actions to get this issue sorted.
    The job details for the deletion of past purchase requisitions.
    The job is run with the following variant details:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ABAP Program name :/SAPAPO/RLCDELETE
    VARIANT Details
    Select Object-> By Categories ->Category = AG (PurRqs in R3)
    Manual Selection-> Version =000; Product = (blank); Location = List ofall locations;
    Fixed Order (ticked)
    Period = 14.03.2009 to 14.03.2011 {All PurRqs in these period shouldget deleted in APO as well as R3}
    Settings-> Delete Transaction Data ->In R3 & APO (ticked)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Past due PurRqs are not getting deleted in R3 systems. The planner/end-user is getting confused & hassled resulting in loss of productive time & generation of erroneous planning which is negatively impacting Business.
    Pls suggest some remedy for this.
    MMTIA
    Kumar
    Edited by: Blue Lotus on Mar 14, 2011 5:51 PM

    Do you run the CCR on a daily basis. If so do you see the "reqs missing in R/3" in the CCR ?
    Also what is your transfer setting ? Meaning the transfer from APO to R/3 configuration  - is it immediate or change pointer based ? check that also
    Thanks
    Aparna

  • Message log is not getting deleted in WEBUI (BADI ORDER_SAVE)

    Hi,
    I am displaying an error message based on certain conditions in BADI: ORDER_SAVE (CHECK_BEFORE_SAVE). On getting error, I am correcting that error.
    Using CRM_MESSAGE_DELETE, I am deleting error message before displaying new error message. However, my error log is not going away. It is still displaying in the log in WEBUI.
    Could you please help me out, how can I delete error message, and error log from WEBUI.
    Thanks,
    Sandeep

    I  have the same question as you .
       I  have use folleing code to display message in web ui:
          if (conditions).
          CV_OWN_MESSAGE = 'X'.
          MESSAGE '商机描述已经存在,请修改后再保存!' type 'E' RAISING DO_NOT_SAVE .
        endif.
    but when i have edit the description , the Message log is not getting deleted in WEBUI .
    who can tell me , thanks for all your help !

  • Open TRs not getting deleted after TECO production order

    Hi,
    We're having an issue.  We're using WMPP interface to supply the production line for the production orders.  The auto TRs are generated when the production orders are released. 
    After TECO the production orders, the open TRs are not getting deleted automatically.
    Could anyone know if these TRs get deleted automatically when we do the TECO production order?
    If yes, do we have any restriction or condition based on this, the TRs get deleted?
    Please explain.
    Thank you.
    with regards,
    Muthu.

    Hi Abhijit,
    Thank you for your reply.  It does not help me.
    The auto TR creation is happening now as required.  No issue on this.
    When you do the TECO, it also cancels the TRs.  I tested this also. 
    There're some scenario this open TRs cancellation is not happening.  I do not know when these open TRs are not cancelled.  If you know answer for this, please let me know.
    Thank you for your help and time.
    with regards,
    Muthu.

  • Production Reporting out put not getting deleted after 30mins what we set.

    Hi,
    This issue regarding Production Reporting. In the workspace the report output not getting deleted after 30minutes (while publishing the report settings were like delete after 30 mins). Any suggestions please .....
    Thanks
    Venkat

    Hi Deepak,
    Please chek the field / value which u have changed is relavant to  printouts of the change.
    You can check  with following path
    SPRO> MM > Purchasing > Message > Fields Relevant to Printouts of Changes.
    Confirm tick is provided for PO ( P)
    Vivek

  • I have had my iPhone 4 for a year and have only plugged it into my friends computer when I first got it, and now I just purchase my music right on my phone, so now I'm getting a new phone so if I plug it into my comp will anythin get deleted?

    I have had my iPhone 4 for a year and have only plugged it into my friends computer when I first got it, and now I just purchase my music right on my phone, so now I'm getting a new phone and want to back up my music, photos, etc so if I plug this phone into my computer will anything get deleted off my phone?

    See Here:
    IOS Sync Content to Computer  
    http://support.apple.com/kb/HT1296
    And have a Look here Before you do Anything...
    http://www.apple.com/support/iphone/getstarted/
    This might be Useful:
    iPhone User Guide
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • Why does my music on my ipod touch 5th generation get deleted when I connect it to iTunes on my computer?

    Why does my music keep getting deleted on my ipod touch Everytime I connect it to iTunes on my computer? I've Uninstaller and reinstalled itunes. I've reset my ipod to factory setting and I keep getting this message " The ipod cannot be synced. An unknown error occurred (-54)" this also happens with my ipod 4th generation too. Everytime I go to put new music on it all my old music gets deleted :-/

    That is because you got a new computer. You can only sync all media from one syncing computer. You can sync from any computer to iPod using the manual method but that does not sync from iPod to computer.
    To make this your syncing computer:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • Events in ical on my macbook get deleted when I sync w/my iphone5.

    Been having problems getting ical events to merge between iphone5 and macbook.  After some suggestions from the community, I discovered I have no icloud in ical system preferences, and events scheduled in ical on macbook gets deleted when syncing to my iphone5.  Getting frustrated.

    You probably have your iPhone set up to clear out old events.  My guess is that the events that are being deleted have already occurred.
    Check Settings > Mail, Contacts, Calendars > Sync, and make sure the events you want to keep are preserved.

Maybe you are looking for