How to kill a workflow in runtime?

Friends plz let me know how to kill a workflow in runtime?.

Hi,
You can use SAP_WAPI_SET_WORKITEM_STATUS to logically delete the work Items. Just pass the status as "CANCELLED" to this function module.
Logically delete means workitem will be deleted from the table but with archiving.
Report RSWWWIDE (txn SWWL) deletes work items from tables without archiving, I mean work item will be deleted permanently.Therefore, this report should not be used in a production system.
Thanks
Yogesh Sharma

Similar Messages

  • Urgent - How to create instance of Business Object in workflow at runtime

    Hi all,
       I have a requirement as follows...
    1) I have a Business Object ISUPOD in which the Key field is Pointof Delivery
    2) I am getting the value for Pointof Delivery in the step-2 of my workflow.
    3) Now I want to create a instance for the Business Object using this key field value in my Workflow at runtime and use the instance in the following steps.
    How can I do this ???
    Thanks,
    Sivagami

    Hi Ravi,
      Thanks for the solution...
      There is also a wizard that will generate an activity to do this. We have to just go to Wizards->Include "Create Object Reference" which will create the task  with the BO & Method referred by you.
    Thanks,
    Sivagami

  • How to purge the workflow which is in process

    Hi Friends,
    I am facing one problem in the AME Workflow.
    when a user submit a page for approval process, workflow engine invokes . and in the hr_api_transcations table transacation id is created for that workflow transacation. now the problem is, if i purge that workflow process using concurrent program 'PURGE OBSELETE WORKFLOW RUNTIME DATA' . it is deleting the workflow. but when i see the hr_api_transacation table still the transacation id for that workflow is active.
    Example :-
    when i see through through the responsibility (workflow administrator web applications)=>Administrator workflow=>Status monitor
    when i type the item key say some x and search for the workflow status i cant see the workflow status. i can see it is deleted.
    but when i type the same item key in the hr_api_transacation
    like :- select * from hr_api_transactions where item_key='X' i can see the status of this transacation is active and workflow is in pending.
    can anyone explain me why system is behaving like.. how to stop the workflow process and how to delete the transacation id from the table.
    Thanks in advance

    Please check below nots
    453137.1 (Oracle Workflow Best Practices Release 12 and Release 11i) sections titled "Choosing Not to Use E-mail Notifications" and "Cleaning Up the WF_NOTIFICATION_OUT Queue"
    How to purge e-mail notifications from the workflow queue so the e-mail is not sent [ID 372933.1]
    264191.1 describes how to Purging Oracle Workflow tables of obsolete workflow runtime information for completed workflow processes is a required regular maintenance tas
    Notification Mailers Unavailable
    How to delete undelivered notifications from WF mailer

  • How to debug the workflow

    dear friends,
      please tell me how to debug the workflow, if you have time then you just see the workflow WS99900212 . in this i have done Leave Approver Notification . but i want to debug on that how to flow step by step .
    please you tell me on same workflow , where i am going to take breakpoint.
    Thanks in Advance for help.
    Cheers.
    Puneet.

    You can try first of all to enable more logging. (I assume you are running release ERP 2005 since you are not saying what your release is.)
    In the workflow builder, select menu item "Goto", "Basic data"
    Select the "Version-dependent (current workflow version)" tab
    Select the "Control" tab within the version-dependent subscreen
    Select the "Performance optimization" tab within the control subscreen
    Change the "Settings" drop-down value to "No restrictions on logging".
    That will give you much more information in the workflow log. The description of this choice says "All the messages are logged. All runtime operations can be traced." As also noted: don't keep this setting in a production system.

  • Workflow - long runtime

    hi gurus,
    we are experiencing slow system perf because of workflow running.  basis team told us that wf-batch is eating up resources in server.  when they checked it, it is targetting to this table: CDCLS. and the report is SAPLZWF_.  we have no idea on how to pinpoint the cause of slowness in the system perf.  can you give us an idea on how to improve our system?
    regards,
    paul

    Hi,
    I don't see the event queue helping here.
    >yes, our workflow has an object type which contains the FM that accesses CDPOS/CDCLS table. i think this is the one that is causing the slowness but how can we help improve its runtime? is accessing these tables NOT recommended at all?
    Well, probably there is (at least I hope) a good reason to access the change doc tables. Is it custom code? Can you ask the original developer why the change documents are used? Or can you find the reason from documentation/comments? Can you ask an ABAPer to analyze the code? Can you test/debug it from SWO1. Perhaps the code is just written in non-performance optimized way and with slight changes you could make it significantly faster.
    Regards,
    Karri

  • SAP  workflow new runtime version

    How do  i make workflows item made created in the old run time version  to assume new workflow path of new runtime  version?
    regrads.
    Rendi

    Hi,
    You can not make the new version to assume from the middle.
    But You can call back a workflow using the function module SWP_WI_CALLBACK_RECOVER  to make a workflow start from beginning again.
    This will execute in the newer version.But, you should not be using this for those workitems which involves postings etc.
    Regards
    Kesari Katakam

  • How to kill Active Data Request in DSO

    Hi all,
    I have 2 dsos ( A, B). Data loads from A to B.
    Now I have deleted data from DSO B by using option delete data ( did killed one running request by turing the status to RED).
    when I try to load data again to DSO B, it is not allowing me to execute the DTP.
    Message is Request 257.617 is stil processing.
    I am SAP BI 7.0 environment.
    Please suggest how to kill active request ( I am not seeing it RSMO/SM37).
    I tried to use Zombie Request FM, it didnt worked.
    Thanks All,
    Jason

    Srinivas,
    Thanks for the reply.
    When I go RSRQ
    I can see the request , the exception it is showing is CX_RS_FAILED logged.
    SM51, when try to kill the process it says
    SAP System Message:
    Work Process restarted; session terminated
    Apologies for earlier post messages saying that I did nt saw the message in RSMO, I can see it is in yellow process.
    Please suggest how to kill the processes .
    Apperciate your response..
    Thank you
    Jason

  • How can I create a Forms9i Runtime for client distribution

    Currently we have an application developed in Forms 5.0.6.8.0 our Database has been upgraded to 9i DB. The application is working fine with this combination but we want to upgrade Forms in order to get Oracle Support. We just get the Developer Suite 9i package and we're trying to test our application with this software.
    How can I create the client runtime for Forms 9i?
    My application will work with Win 95 and 98?
    Thanks.

    Oracle9i Forms is web-only. Forms 6i is the last release of Forms to have client/server and character mode.
    You can test Forms from the Builder by installing iDS. To deploy Forms using iAS follow the documentation. It's all there in the deployment guide.
    iAS and Forms doco can be found on OTN.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • How to kill a job in SM37

    hi All,
             can someone wxplain me how to kill a job in SM37 which is delaed by 10,000 secs.
    cheers

    Hi Rase,
    goto SM37 and click on the active selection and enter the jobname and then click excute the particulr job should appear highlight the jobname then click on the stop iconthat appears on the taskbar( 3 rd from left)
    or goto SM50 Click on the process and select process->stop without core
    or
    set a running infopack of the chain (in RSMO) to red, thats will stop the chain (if there are no parallels, else set all parallels to red).
    ****Assign Points If Helpful****
    Regards,
    Ravikanth

  • How to dynamically resize JPanel at runtime??

    Hello Sir:
    I met a problem, I need to resize a small JPanel called panel within a main Control JPanel (with null Layout) if I click the mouse then I can Drag and Resize this small JPanel Border to the size I need at runtime, I know I can use panel.setSize() or panel.setPreferredSize() methods at design time,
    But I have no idea how to do it even I search this famous fourm,
    How to dynamically resize JPanel at runtime??
    Can any guru throw some light or good example??
    Thanks

    Why are you using a null layout? Wouldn't having a layout manager help you in this situation?

  • Cant sync my iphone contacts with yahoo, it says "unknown error (4)" and tells me to come back later, been doing it for months. Any ideas on how to kill it?

    cant sync my iphone contacts with yahoo, it says "unknown error (4)" and tells me to come back later, been doing it for months. Any ideas on how to kill it?

    Hey joshuafromisr,
    If you resintall iTunes, it should fix the issue. The following document will go over how to remove iTunes fully and then reinstall. Depending on what version of Windows you're running you'll either follow the directions here:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    http://support.apple.com/kb/HT1925
    or here:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.apple.com/kb/HT1923
    Best,
    David

  • How to allocate the workflow to the action defnitions in solution manager

    Hi,
    we are having solution manager with the CHARM configured, and currently we are looking for the trigger of mail and workitem for change of action. the work flow is designed for that, but how to assign the workflow to the condition and processing type .
    please suggest, points are definetly awarded.
    Thanks and regards
    keerthi

    Hi,
    Well, why dont you check the event that gets triggered during the Status change of the user?
    This can be done by switching on the EVENT TRACE using SWELS txn and simulate the BUSINESS PROCESS and then check the event trace using SWEL.
    After getting the required Business Object and event, Please attach your WF to that EVENT in the BASIC DATA-START EVENTS.
    Regards,
    <i><b>Raja Sekhar</b></i>

  • How to troubleshoot approval workflow of a rejected purchase order

    Hi,
    We are working in oracle applications 11i.
    I have a purchase order with status rejected that has hanged up in the system. The user rejected PO and the document has not been transferred to the PO buyer. From the application forms -> Forward documents window, I can see that neither the user who rejected or the buyer has the document.
    From System Administrator responsibility I can see that the workflow administrator can modify a PO that is only IN PROCESS,
    what shall I do?

    please check :
    http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/how-to-troubleshoot-approval-workflow-of-a-rejected-purchase-order-4211332

  • How to run Oracle workflow in windows 7 os

    Hi,
    Am new to oracle workflow.
    I have installed oracle workflow successfully in my laptop.
    After installation I dont see any shortcut's in my desktop.
    Can any one sugess me how to run oracle workflow.
    Steps to begin from basic level.
    Thanks
    Balaji

    You mean to say you installed Workflow Builder on your laptop? See that Oracle Workflow has a Client Side (WF Builder), a backend Server side and middle application side.
    Assuming you successfully installed the client side then you must have a group of programs called Oracle OUIHome and there one called Application Development. There you should be able to find Workflow builder.
    Useful notes for WF Builder:
    How To Download and Install the Latest Oracle Workflow Builder (Client Tool) and XML Gateway Message Designer for E-Business (Doc ID 261028.1)
    which leads to <internal URL removed>
    Regards.

  • How do I deal with a Runtime Error on Adobe Acrobat 9.5?

    How do I deal with a Runtime Error on Adobe Acrobat 9.5? The instructions say to contact the support team but I have to pay in order to do so.

    What operating system and what is the statement of the error. Typically you would first run a repair on Acrobat from the help menu (or in Windows you can do that from the Control Panel>Add/Remove Programs).

Maybe you are looking for