Automatic deletion of workitem once the action is done.

Hi Team.
I have a small concern in Workflow,When the employee submits the Expense to admin for approval,the Admin has got 3 options
1.Approve
2.Review/Change
3.Reject.
When he selects the Approve or Review/Change and approves the Workitem its getting deleted from his Inbox.
But When he rejects the Expense with some comments its not getting deleted.
Could you please give some idea where exactly to check for workitem to get deleted.
PLease send the Solutions to [email protected]
Regards,
Pradeep P.
Edited by: pradeep penmatsa on Oct 31, 2008 10:56 AM

if you want to set the workitem status from ready to complete then use the FM
SAP_WAPI_WORKITEM_COMPLETE
for this function module what you need to pass is Workitem ID and you can get it from SWWWIHEAD table
or if you want to delete them
SAP_WAPI_WORKITEM_DELETE

Similar Messages

  • Updating the delivery document once the picking is done :

    Hi Iam designing a custom screen,
    Here i have a icon for automatic picking, should be a check box for that, if it is once checked all the lines items in the transaction should be automatically picked as of the delivery quantity.(The delivery quantity should be copied automatically in picking column if auto Picking is selected).
         Once the picking is done, and hit SAVE, then the data should be updated automatically to delivery document, all the picking quantities should be copied to delivery document for those concerned line item. The picking quantity should update field LIPSD-PIKMG, in delivery picking tab.
    Please advice how we can achieve this.
    Edited by: vinay raj on Jun 19, 2009 12:52 PM

    yes iam using the same function module.
    But for some reasons this function module is not updating the delivery document.
    Any suggestions.
    iam writing the code like this :
    LOOP AT IT_PICK.
        hvbpok-vbeln_vl = it_pick-vbeln.----
    delivery number
        hvbpok-posnr_vl = it_pick-posnr.----
    delivery item
        hvbpok-posnn = it_pick-posnr.----
    i have doubt here
        hvbpok-vbeln = it_pick-vgbel.----
    doubt here.
        hvbpok-vbtyp_n = 'Q'.
        hvbpok-ndifm = 0.
        hvbpok-taqui = ' '.
        hvbpok-charg = it_pick-charg.
        hvbpok-matnr = it_pick-matnr.
        hvbpok-lfimg = it_pick-lfimg.
        hvbpok-pikmg = it_pick-PICQTY.----
    picking quantity
        hvbpok-brgew = it_pick-brgew.
        hvbpok-gewei = tvblkp-gewei.
        hvbpok-volum = tvblkp-volum.
        hvbpok-voleh = tvblkp-voleh.
        hvbpok-orpos = 0.
        APPEND hvbpok.
      ENDLOOP.
      VBKOK-KZLSP = 'X'.
    *insert default value for test
      VBKOK-VBELN_VL = l_vbeln.----
    Delivery number.
    BREAK SKUMAR.
      CALL FUNCTION 'SD_DELIVERY_UPDATE_PICKING'
        EXPORTING
          VBKOK_WA                     = vbkok
          NICHT_SPERREN                = 'X'
          AUFRUFER_T                   = 'X'
        TABLES
          VBPOK_TAB                    = hvbpok.
      IF SY-SUBRC EQ 0.
        COMMIT WORK.
    Edited by: vinay raj on Jun 23, 2009 6:58 AM

  • Stop rolling the the paper out in dot matrix priner once the print is done

    Hi,
    I have used the below code to print a document and the printer used is dot matrix But,it rolls out the page once the print is done.
    I want to control the printer so that it stops rolling out the page once the print is done. Or set the print based on the paper size and stop rolling the paper.
    public void Print_Doc(string Path)
    try
    Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application { Visible = false };
    Microsoft.Office.Interop.Word.Document doc = new Microsoft.Office.Interop.Word.Document();
    // where did you get this file name?
    // as you mentioned, you open your word document here
    doc = word.Documents.Open(Path);
    // in your button click handler, just call PrintOut() function
    // if doc == null, open the document
    if (doc == null)
    // here i assume fileName has been assigned
    doc = word.Documents.Open(Path);
    doc.PrintOut();
    catch (Exception ee)
    MessageBox.Show(ee.Message, "Exception", MessageBoxButton.OK, MessageBoxImage.Error);
    return;
    Please help me resolve this,
    Thanks,
    Shreyas M

    Not so much wpf there.
    Keep an eye out because this thread may be moved to another forum.
    I think Word will "throw" the page at end.
    You could check the advice here:
    https://support.microsoft.com/en-gb/kb/233493?wa=wsignin1.0
    See if you have an unwanted page break or something like an outsized table which is making it think it needs to print more.
    You might get lucky.
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • I'm having trouble with my clone tool. When I am cloning it appears OK (the image within the brush circles is the correct colours) however once the cloning is done, it processes leaving me with a darkened blur. Any help with what's going on would be appre

    I'm having trouble with my clone tool. When I am cloning it appears OK (the image within the brush circles is the correct colours) however once the cloning is done, it processes leaving me with a darkened blur. Any help with what's going on would be appreciated.

    Which tool in Camera Raw, exactly? The Spot Removal Tool? Adjustment Brush?

  • Adding new field ,once the recording is done in LSMW

    Once the recording is done in LSMW...if we are asked
    to add an additional field later...then how do we add the
    field to the existing one...?
    I am not able to do using "+ Screen Fields" sysmbol....it gives all structure names...
      SP4_TAB-SPTXT01 Text, 40 Characters Long
      SP4_TAB-SPTXT02 Text, 40 Characters Long
      SP4_TAB-SPTXT03 Text, 40 Characters Long
      SP4_TAB-SPTXT04 Text, 40 Characters Long
      SP4_TAB-SPTXT05 Text, 40 Characters Long
      SP4_TAB-SPTXT06 Text, 40 Characters Long
      SP4_TAB-SPTXT07 Text, 40 Characters Long
      SP4_TAB-SPTXT08 Text, 40 Characters Long
      SP4_TAB-SPTXT09 Text, 40 Characters Long
      SP4_TAB-SPTXT10 Text, 40 Characters Long
    Here I am not able to recognize which field is used for what...
    Please suggest....
    Regards,
    Krishan

    You Can identify the fields name at screen,
    Go to the transaction screen and select the field and Press F1-> select technical description.
    And identify the field you want.
    like wise you can identify the field name.
    Regards
    Dhirendra

  • Once the upgrade is done can we re-run the prepare

    Hi,
    Once the Upgrade Is done can we re-run the prepare.
    Regards,
    Asim Khan.

    This question was asked to my colleqe in an interview
    Did he pass the interview or is he still waiting for the answer?  ))
    You could start the PREPARE after the upgrade, but it would be completely pointless - my guess is that it would fail immediately with a release check as you are already on the target release.  Sounds like a trick question to me, intended to check someone's knowledge of the upgrade process.....

  • IPhoto - book question.  Can I change from soft cover to hard once the book is done?

    Can I change a book from soft cover to hard cover once the book is done?

    How do you safely duplicate book?
    Select your book in the Source List, ctrl-click or right-click it, and use the command "Duplicate" from the contextual menu.

  • Automatically reserving a workitem in the UWL

    HI. Can anyone tell me how to automatically reserve a workitem when a user clicks on the workitem in the UWL and the workitem pops up in a separate window. This does not automatically happen for us at the moment.
    Regards Richard.

    Hi Richard,
    With default configuration when we click on Subject .which pops up details  in a separate window.
    Are you talking about this ??
    Can you explain your issue bit clearly ?
    Regards,
    Piyush

  • Two questions - adding pages once the template is done and searching this site for already answered

    I have my template in .dwt and am ready to add new pages.  I forgot where to begin.  I know it is something super easy (the whole point of making the template), but I scrubbed my brain over Christmas and now have no idea.  Thanks.
    Is there an easy way to search this blog?  Maybe folks have asked my questions in the past and I can find their answers.  Couldn't find how to search.  Thanks, O Patient People.  -the newbie

    To search this web forum, go to "Ask a Question" on top of the Discussions page.  Simply type your question and hit Enter.
    Or use Google to search forums.adobe topic.
    Nancy O.

  • HT3702 Cancelling itunes download once the deed is done

    I made a mistake.  How do I undo it?  Tried calling Apple support.  No luck getting a real human being.  Help!

    Welcome to the Apple community.
    Unfortunately, Apple's policy on such matters, is that all sales are final. I suppose there is no harm in trying, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History.

  • Redundant folders created in root of C drive of server and Client . I want to stop the same and want to automatically delete them from server and client .

    Redundant folders created in root of C drive of server and Client . I want to stop the same and want to automatically delete them from server and client .
    Please let me know the solution to delete them not manually . It should not create automatically .Is there a way we can change the path of creation.
    Is there a way that once the folfer is create should be automatically deleted once the task is done.
    Redundant folders are created in the root of my C drive all the time,
    folder names look like:
    09b0508d0bd2dbd70523
    56f51b81c1462bb378009ee4d5ed03
    02afe4378371907aca40ab

    This is a duplicate of
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/ae99c2d0-8dea-4c5e-8a79-17e08e9e5de4/sccm-2012-issue-folders-with-long-guid-are-created-in-c-drive?forum=winservergen#ae99c2d0-8dea-4c5e-8a79-17e08e9e5de4
    Jason | http://blog.configmgrftw.com

  • Counting inbound emails (including those automatically deleted using ERMS)

    Hi all,
    I have a requirement to be able to count all inbound emails in SAP CRM (5.0).  This includes all emails that have been automatically deleted using ERMS after the creation of an Interaction Record and Service Ticket.  Can anyone think of an easy way of doing this in SAP CRM?  The Email Workbench and Agent Inbox do not display deleted email Workitems.  The best option that I have been able to come up with is to export the Workitem Selection Report from transaction SWI1 into a spreadsheet and filter column Workitem ID for unique entries.  Does anyone know of a better way of achieving this?
    Thanks,
    Onkar.

    By using POP3, mail is automatically deleted from the server once downloaded by the client without further user intervention (granted, not immediately due to BTYahoos recent non-standard implementation of the POP3 protocol). By contrast, the whole point of IMAP is that mail is left on the server to be available to multiple devices and requires user intervention to delete. Why would a system which is designed to be used for leaving mail on a server be recommmended to someone who wished it to be deleted? If you wish to be pedantic, I agree the OP didn't ask for mail to be automatically deleted, but then nor did he specify immediate deletion either. I interpreted the request as the former, you the latter. Perhaps if we understood the underlying reason why he wished the mail to be deleted in the first place it would help in providing a solution.
    There seems to be a recurring theme on this forum to promote IMAP as a universal panacea to overcome all mail problems which is diverting attention away from fixing BTYahoo's broken POP3 servers which have to my knowledge at least 4 problems. Two are deliberate by BTYahoo, lack of secure login and moving read items to the Trash folder temporarily before deletion. Two are faults which they seem either unable or reluctant to fix, intermittant authentication problems and inabilty to download even modest sized attachments on a slow connection.
    Correction, he did ask them to be deleted automatically.

  • Automatically delete old drafts

    Fellow sufferers
    How do I automatically delete all drafts, once there is a new approved version?
    Example. Following versions exist: 0.1, 0.2, 0.3, 0.4, 0.5, 1.0, 1.1, 1.2, 1.3. Only 1.0 is Approved. I want Sharepoint to automatically discard 0.1,,,0.5, because 1.0 was published.
    Thank you, you are great if you can answer this one!!!
    Have a nice day.
    Peter Hansen

    Hi Peter,
    you can use SeleteAllMinorVersions API to delete all minor versions, and you may also use event receivers for validating the versions and you may have to check for each version inside the event receiver. There is no event for versions.
    Alternate would be to use SharePoint designer based workflow, see Delete Drafts action in the below link -
    http://msdn.microsoft.com/en-us/library/office/jj822977.aspx
    see here for reference
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfileversioncollection.deleteallminorversions(v=office.14).aspx
    references -http://social.msdn.microsoft.com/Forums/sharepoint/en-US/9b84d36a-5a21-43a8-adb9-c1d573f62073/delete-version?forum=sharepointdevelopmentlegacy
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/b0fae670-b74d-47e8-a83b-ec75082a2db4/event-handler-to-delete-minor-versions-in-document-libraries?forum=sharepointdevelopmentprevious
    http://technet.microsoft.com/en-us/library/cc288968(v=office.12).aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • How can I execute certain code once the button on stake is hit at runtime? (in Flash CS4(AS3))

    Hi
    I am trying to figure out how to execute code once a button_btn is hit on stage at runtime.
    Thank you for help and tips!

    You can also try to create an event listener for the button itself.  (In as2.0 it was onClick or onPress or something to that effect, now I'm not sure what they are syntaxed as but there are event listeners for buttons which "listen" to see if the button has been pressed.  Mouse Events are good because it makes sure that the mouse is actually performing the action.  Don't know about accessibility with Mouse Events though since you can use a Tab key to direct input of buttons so try the Button event listeners.

  • Should iMessage conversations deleted on iPhone be automatically deleted on Mac w/Mountain Lion?

    I've been searching exhaustively for an answer to this question & haven't found one yet. I have a MacBook Pro 13" (February 2011) with Mountain Lion 10.8.2. I also have an iPhone 4 w/iOS 6. I have it Messages on the Mac synced with iMessages on the phone exactly as people have instructed, and I do see conversations on one showing up on the other. What I don't understand, though, is that when I delete a conversation on one, that conversation is not deleted from the other. Is that supposed to be the case? I would have expected that, with all the new iCloud integration, if you delete a iMessage conversation on, say, the iPhone, it will automatically delete that conversation on the Mac or other iOS devices that are synced. Any thoughts?

    Mine have to be deleted on each device. My wife's devices are the same. Evidently, that is the way it is set up.

Maybe you are looking for

  • Narrow casting vs wide casting

    Hello All, I have small requriemn.. I have a super class A and a sub class B. In both the classes I have a method XYZ. So, A has the following methods ABC XYZ B has the following methods XYZ Now I have want to access the sub class methods from super

  • Pending state issue

    hi all i am attempting to run a large scheduling run of 3550 report instances. this is obviously going to take some time so is difficult to test within a decent time frame (3.5 days total - yes they are big) my problem is that some (20%) of the repor

  • One page will not load

    One of my pages will not load in BC.  States page not found. Gary

  • Windows 7 (64bit) Can't find my HP 4200n

    Any advice helping windows 7 find my laserjet?  Not even a beep when I plug it in.  It prints test sheets like a champ.....but nothing seems to be able to connect.... I'm using  a parallel to usb adapter...not sure how to trouble shoot it...

  • No drivers for epson V750 on Mavericks..

    Once again Apple didn't speak to other software vendors...  Now my Epson Perferction V750 'Epson Scan' software is screwed.....