Stopping already started workflows

Hi  All,
I am facing the problem of workitems being flooded into the swi1(in waiting status) tcode because of a workflow being triggered. At present the workflow event linkage has been stopped.But the workitems of the previously started workflow (concerned with reminder mails)are getting populated which needs to be cleared.The reminder mails are continuously being sent ,as the loop of the workflow that has started is 100 times.
Can anyone suggest,how to stop the already trigerred workflow as the number of workitems into swi1 tcode is huge!!
standard task : TS92000016
At presnt we are completing each and every workitem manually inorder to stop the reminder mails being trigerred!!
Thanks in advance!
Gowthami

Hi,
Just wirte a simple report to delete the workitems logically. Get the list of workitem form SWI1/SWA and pass it to your report.
Sample code :
Data : WI type SWW_WIID.
select-OPTIONS : p for WI.
Write : 'Following workitems are logically deleted'.
loop at p.
CALL FUNCTION 'SAP_WAPI_ADM_WORKFLOW_CANCEL'
  EXPORTING
    workitem_id          = p-low
*   ACTUAL_AGENT         = SY-UNAME
   LANGUAGE             = SY-LANGU
   DO_COMMIT            = 'X'
* IMPORTING
*   RETURN_CODE          =
*   NEW_STATUS           =
* TABLES
*   MESSAGE_LINES        =
*   MESSAGE_STRUCT       =
if sy-subrc is initial.
  write:/ p-low.
endif.
endloop.
Thanks and regards,
SNJY

Similar Messages

  • Can I stop iOS7 from downloading if I've already started it?

    Can I stop iOS7 from downloading if it's already started?

    It will automatically download when there is sufficiant space. There is no way to prevent it or to delete the download. If he doesn't want it, he'll have to leave it there and not click Install.

  • How do I stop the update...it's already started?

    How do I stop the update...it's already started? I tried turning the phone off and when I turn it back on its in the process of downloading.  With all the problems being posted I want to wait on updating!  It's an iPhone 5 on Verizon network.  I've got 25 min remaining on the download! Hurry!

    It actually installed by itself, I did not tap install.  However, it works great on my iphone 5 and I really like it. Glad it updated and works fine!!

  • Start Workflow when Upload File using drag and drop

    Hi,
    I am working with SharePoint 2013.
    I have a workflow needed to be started and run only once after a document is uploaded into the document library. The document library has
    required custom columns with default values. If I set workflow starting option as 'On Created', when user got redirected to the edit form and click 'Save', there would be error as
    "The <filename> has been modified by <user> on <datetime>". Besides the unwanted error dialog, the metadata entered by users are not reflected. I understand the issue is because the workflow had already started before
    the edit form showed and it modified the file.
    So I changed the starting option to 'On Changed", created an additional column to record if the workflow has been run or not to avoid running the whole workflow more than once. This works fine for normal upload. However on drag and drop, the
    event 'On Changed' is not triggered and the workflow is not started. I checked the version of the file but in both normal upload and drag and drop, there is another version after the first version. But
    only the version of normal upload triggers the workflow.
    I read an article about some Mode = Upload on the edit form.
    https://go4answers.webhost4life.com/Example/workflow-triggered-during-upload-user-149297.aspx
    It seems that the Mode = Upload is not there anymore for normal upload, but it's still there for drag and drop. Not sure about this
    Is there a solution for my case. Basically I want to start the workflow only once when the document is uploaded normally or via drag and drop. For normal upload, user can
    edit the custom metadata right after they browse the file. For drag and drop, the
    metadata will be set as default values.
    Thank you.

    I'm still researching your issue, but as an interesting note... This is an issue only when I use a 2013 style workflow. I do not get the error when using a 2010 style workflow.
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • Starting workflow from messages

    Hi,
    I am trying out the possibility of starting workflows when a message is raised (Error/Warning). Once i create the message to workflow linkage i am able to start the workflow from the message long text.
    In this scenario is there a way to start the workflow automatically whenever that particular error message occurs?
    For example consider transaction PA30. Now if i try to enter a character value in place of personnel number i get an error message "Enter a Numeric Value". Now once i link the workflow to the message i am able to start the workflow manually. But can this be done automatically on the occurence of this message?
    Thanks,
    Prasath N

    Hi Karun,
    Thanks for your response. I have done this already and it is workfing fine when i start the workflow manually. I would like to know if there is an option to start the workflow <b>automatically (without pressing the workflow button)</b> when the message is raised.
    Thanks,
    Prasath N

  • Start Workflow from transaction

    Hi ,
    Please let me know, where can i subscribe my custom workflow to trigger the workflow if we want to start the workflow manually from transaction FV60.
    Thanks in advance
    Sarath

    Hi
    I am not very much sure about how the txn FV60 look and feel would be , but the solution to your answer is already in your post, Assuming that there would not be any kind of button on the application tool bar of the standard txn FV60, you might have customized it, in sucha  way that you could include the button START WORKFLOW on application tool bar.
       As per your requirement you want to initiate the workflow only in case when the end user clicks on the START WORKFLOW button, In that case I think by using the Module pool programming you can actually resolve the requirement. By just simply validating the SY-UCOMM , if the fcode is equal to the FCODE of START WORKFLOW button, then by using either SAP_WAPI_CREATE_EVENT or SAP_WAPI_START_WORKFLOW. You can start manually.
    Instead of implementing some Badi's or User Exits..
    Regards
    Pavan

  • Cartoons play a few seconds then stops, then starts, then stops, just started doing this

    My grandson likes to watch a cartoon with me in the evening, suddenly when I bring them up now they start to play, then stops, then starts, this just started happening, my grandson would appreciate any help resolving this.  Thanks

    Check to make sure your video is loading.
    The red indicates what has already played and the white indicated the portion of the video that is loaded but unplayed.  If you have no white bar and the movie plays and then stops it is because your video is having trouble loading in which case you wil want to select a lower quality video by clicking on the gear icon.
    YouTube uses a program called Adobe Flash player to play the cartoons. If your seeing the white bar in front of your video, the first thing I would try would be to remove the Adobe Flash software and reinstall the latsest version. Allow me to explain how to do this:
    Step 1: Download the Adobe Flash uninstaller from here, for help running the uninstaller Adobe has good directions on their website which you can view here.
    Step 2: Once you receive the notice that Adobe Flash player has been successfully removed, download the latest version of Adobe Flash Player here.  If you need help running this installer Adobe again has good insturctions here.
    Once finished, go back to the YouTube cartoon you are having trouble with and let us know if your still having any issues.

  • Zenworks server migration already started error

    We are attempting a server migration from Windows Server 2003 to Windows Server 2008 R2, using the Zenworks 11 SP3a ISO.
    Migrating the First Primary Server (ZCM 11.2.4, Windows 2003) failed at the end -- network move failed. The new server was deleted and the old server was brought back on to the network. Now we can't get past "Zenworks server migration already started", when we try to start over with a new destination server.
    Is there a way to get past the error stop? Will we have to start over with a new zone?

    white087,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://www.novell.com/support and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Forums Team
    http://forums.novell.com

  • Cannot Start Workflow Service from Service Manager

    Hello Professionals,
    I have a problem with starting Workflow service from Service manager,
    I have configured all the settings and connection to database was successful.
    However, after closing the settings window and try to start the workflow service, i got "Cannot start Service; configuration is not correct or cannot connect to database"
    What may cause this issue?
    Thanks and Best Regards,

    Hi,
    Please check SAP note:
    2019304 - Workflow server connection stops if many workflow
    instances with script tasks run simultaneously
    Thanks & Regards,
    Nagarajan

  • Firefox will neither stop nor start.

    Firefox will neither stop nor start.
    I have attempted to start it in both normal and safe mode, but I get the same results. I receive the following two messages:
    CLOSE FIREFOX "Firefox is already running, but is not responding. The old Firefox process must be closed to open a new window."
    When I select either Cancel or Close Firefox this, it is followed by
    PROFILE MISSING "Your Firefox profile cannot be loaded. It may be missing or inaccessible."
    I have uninstalled and re-installed Firefox. Same result.
    I have uninstalled, cleared the registry and re-installed. Same result.
    I am at a complete loss as to what to do next.

    Hello,
    The problem is in your profile:
    *[["Firefox is already running but is not responding" error message - How to fix it]]
    *[[How to run Firefox when your profile is missing or inaccessible]]

  • Waveburner resets (64bit) IK Multimedia plugins when stopping and starting

    Does anyone else happen to have this problem:
    I'm finding that while mastering, I want to look back at the incremental changes made and have found that the Pultec EQ and some other plugins seem to default to a preset.
    In order to get to this problem I did the following:
    1 track in Waveburner, added the Pultec EQ,
    2 added a limiter chose a preset 'MIX PRESENCE' then got my desired sound.
    3 When listening everything seems fine and then you stop and start again, or go back to the beginning of the track by pressing the 'BACK ONE TRACK' button on the transport and all of the sudden the Pultec EQ resets to that original preset.
    So not too sure what to do, the only way of getting round this issue was to mix as best as I could, save as a new preset while it was playing and then when hitting start again then while it is playing then I quickly hit the preset on that I made and have to bounce my mix at the same time in order to finally get my desired output which is less than okay.
    Can anybody help. I'm running on an iMac, 64bit Version10.6.7 OS and Waveburner is 1.6.1
    Many thanks

    It is not just IK Multimedia and Waves plugs that are resetting on me; it is also the WaveBurner 'native' plug "Linear Phase EQ" and who knows how many others, were I to begin testing instead of trying to work through this.
    This little bug renders this software effectively useless for professional work.
    Some of my Waves plugs hold their values, others don't.
    Elysia products screwed up too; so much for that demo.
    As far as I can tell I am not using any automation, but, is there a way to globally turn off the possibility of automation (I tried RightClicking in the mix lane but there is no choice of automation available there, perhaps 'cause there is none as I suspect)?
    I am using WaveBurner 1.6.1.
    C'mon Apple, its November already; you must fix this.

  • Order of stop and start of reporting services

    Hi All,
    I am using 11.1.1.3 version in my laptop,i want know the correct order of stop and start the services,please help me on this.
    Thanks
    Hypuser

    The full order list can be found at :- http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_install/ch05s02.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Error in starting workflow queue listener

    I have registered jobs with OEM using Warehouse builder workflow deployment
    wizard. Following jobs has been registerd with OEM :
    1) ACRM_IWF_ACRM_PWF
    2)ACRM_IWF_OWB_STD_BEGIN
    3) ACRM_IWF_OWB_STD_END
    4) ACRM_IWF_OWB_STD_ERROR
    Now i submit "ACRM_IWF_ACRM_PWF" from the OEM . I shows me status of the JOB as
    "Failed" and gives the following error message:
    Error in starting workflow listener: ** Initializing queue listener
    ** Initialized queue listener
    ** Recovering item type ACRM_IWF
    ** In recovery mode
    ** Recovery complete
    ** Processing all item types
    ** Waiting to dequeue message in listener
    ** Processing job 0x4143524D5F4957465F4F57425F5354445F424547494E
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String
    index out of range: -1
    at java.lang.String.substring(String.java:1085)
    at
    oracle.wh.runtime.workflowrt.QueueListener.parseParameters(QueueListener.java:10
    03)
    at oracle.wh.runtime.workflowrt.QueueListener.startJob(QueueListener.java:798)
    at
    oracle.wh.runtime.workflowrt.QueueListener.processJobs(QueueListener.java:746)
    at
    oracle.wh.runtime.workflowrt.QueueListener.initAndRun(QueueListener.java:299)
    at oracle.wh.runtime.workflowrt.QueueListener.main(QueueListener.java:197)
    1

    This is not actually a Workflow component, this is part of the Oracle Warehouse Builder product, although the name is similar to the Workflow Agent Listener in v2.6.
    I have registered jobs with OEM using Warehouse builder workflow deployment
    wizard. Following jobs has been registerd with OEM :
    1) ACRM_IWF_ACRM_PWF
    2)ACRM_IWF_OWB_STD_BEGIN
    3) ACRM_IWF_OWB_STD_END
    4) ACRM_IWF_OWB_STD_ERROR
    Now i submit "ACRM_IWF_ACRM_PWF" from the OEM . I shows me status of the JOB as
    "Failed" and gives the following error message:
    Error in starting workflow listener: ** Initializing queue listener
    ** Initialized queue listener
    ** Recovering item type ACRM_IWF
    ** In recovery mode
    ** Recovery complete
    ** Processing all item types
    ** Waiting to dequeue message in listener
    ** Processing job 0x4143524D5F4957465F4F57425F5354445F424547494E
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String
    index out of range: -1
    at java.lang.String.substring(String.java:1085)
    at
    oracle.wh.runtime.workflowrt.QueueListener.parseParameters(QueueListener.java:10
    03)
    at oracle.wh.runtime.workflowrt.QueueListener.startJob(QueueListener.java:798)
    at
    oracle.wh.runtime.workflowrt.QueueListener.processJobs(QueueListener.java:746)
    at
    oracle.wh.runtime.workflowrt.QueueListener.initAndRun(QueueListener.java:299)
    at oracle.wh.runtime.workflowrt.QueueListener.main(QueueListener.java:197)
    1

  • Error "Job already started" when calling a adobe form in Z function module

    Hi All,
    I have a error when calling a adobe form in a custom function module.
    I am using FP_FUNCTION_MODULE_NAME to get the adobe form function module and then i am using FP_JOB_OPEN function module to control the printing parameters such as no print preview or no dialog ..etc.. I dont have any exceptions during the call of FP_JOB_OPEN function module ..
    Later I am calling my function module which was generated for the adobe form and i am getting the error called " JOB ALREADY STARTED".
    I tried executing the same function module in se37 and the PDF form output was generated, and also by commenting FP_JOB_OPEN function module the PDF form output was generated.
    But i need the FP_JOB_OPEN function module to control the output based on the output type which triggers the form output such as the medium from nast record which says print or email or fax.. etc
    Please let me know how to handling this error.

    Just as a followup note. If you are testing a function module from SE37 and the test button you will get a value in SY-CPROG. You must override this value for everything to work.
    If you override the value of SY-CPROG with the main program that will be calling the function module you have no problem.
    John W.

  • Music skips and stops and starts

    Hello, we have just got a nano to replace a 3rd gen iPod.
    I have around 50 gigs of music on a lacie USB drive, and the music plays flawlessly from here in iTunes.
    However once imported into the nano, there is distortion, jumps and clicks in the music and sometimes the song will just stop and start from the beginning.
    Any ideas?

    Gary,
    You chould check out this thread we have going.
    http://discussions.apple.com/thread.jspa?threadID=356911&tstart=0
    Toshiba Satellite P25-609   Windows XP Pro   Media Center Edition iPod Nano 2G (as black as my cold, dead heart)

Maybe you are looking for

  • A few questions on Sf2's and Au's

    I am pretty new to GarageBand 11 I have always used FL Studio to make my music but now I'm looking to switch fully to Mac and get rid of my PC so I am learning GarageBand. I have watched a few tutorials on YouTube on importing Sf2 an AU files. For Sf

  • Number of records in trail files

    Hi, I have a extract group which captures the change data from many source tables and gives one kind of trail files in different sequence number. I would like to know the number of records per table in the trail files.I am not sure whether there is a

  • Memory analyzer, how to get the to problem root/object

    Hi, I've viewed the live tutorial from https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0a5d007-a35f-2a10-da9f-99245623edda. My case was, i Dominator Tree, all top ten classes (with 95% retained Heap) were from org.hibernate.*, an

  • Controlling external displays

    When using a secondary display with my macbook pro is it possible to choose what is viewed on that external display? say i could be running a presentation on the external display but be looking at another program on the macbook pro without it being s

  • Rollover Problem....Please Help!

    I'm new to Dreamweaver so excuse the basic question. I cannot get the rollover function in our navigtion bar to work. Here's the code for the navbar. Any help would be GREATLY appreciated. <img src="Images/home1.jpg" alt="homebutton" name="home" widt