<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Cancel Workflow in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cancel-workflow/qaa-p/11895147#M4466658</link>
    <description>&lt;P&gt;Check whether standard event triggered when Quote expires Else create custom event and use enhancement to trigger the custom event when quote expires. After this you can use wait for event(Standard or custom event ) step in parallel to approval process (Using fork) and can complete the workflow using Process control step. &lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2019 10:02:08 GMT</pubDate>
    <dc:creator>former_member614642</dc:creator>
    <dc:date>2019-06-14T10:02:08Z</dc:date>
    <item>
      <title>Cancel Workflow</title>
      <link>https://community.sap.com/t5/technology-q-a/cancel-workflow/qaq-p/11895146</link>
      <description>&lt;P&gt;caDear Experts,&lt;/P&gt;
  &lt;P&gt;Could you please provide best possible ways to cancel the workflow which was raised against quote when it is expired.&lt;/P&gt;
  &lt;P&gt;For instance, I have a Quote of 15 days validity and workflow triggered against to it and it is pending for approval. If the quote is expired(after 15 days) my workflow is no longer valid and it should be cancelled automatically. Currently it is sending reminders to approval though my quote is not valid. &lt;/P&gt;
  &lt;P&gt;I thought of creating a new report which checks for open workflows for expired quotes and cancel via FM &lt;/P&gt;
  &lt;P&gt;SAP_WAPI_ADM_WORKFLOW_CANCEL. Can you please suggest any other best way to handle this requirement?&lt;/P&gt;
  &lt;P&gt; Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 05:57:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cancel-workflow/qaq-p/11895146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-06-14T05:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cancel Workflow</title>
      <link>https://community.sap.com/t5/technology-q-a/cancel-workflow/qaa-p/11895147#M4466658</link>
      <description>&lt;P&gt;Check whether standard event triggered when Quote expires Else create custom event and use enhancement to trigger the custom event when quote expires. After this you can use wait for event(Standard or custom event ) step in parallel to approval process (Using fork) and can complete the workflow using Process control step. &lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 10:02:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cancel-workflow/qaa-p/11895147#M4466658</guid>
      <dc:creator>former_member614642</dc:creator>
      <dc:date>2019-06-14T10:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cancel Workflow</title>
      <link>https://community.sap.com/t5/technology-q-a/cancel-workflow/qaa-p/11895148#M4466659</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can achieve this using &lt;STRONG&gt;deadline monitoring&lt;/STRONG&gt; in same workflow, no need to have separate report for this. &lt;/P&gt;&lt;P&gt;Open the workflow and do the changes for necessary place&lt;/P&gt;&lt;P&gt;In the activity or task you need to open the tab &lt;/P&gt;&lt;P&gt;1.Latest End  and Fill the information according to image&lt;/P&gt;&lt;P&gt;2. Go to outcome Tab&amp;gt; Give name under process obsolete&lt;/P&gt;&lt;P&gt;3.Now
once you go to the workflow you can see obsolete item and you can create email
under that&lt;/P&gt;&lt;P&gt;4.Next step you have to create process control -Function will be obsolete or cancel &lt;/P&gt;&lt;P&gt;Then
it after 15 day escalate using mail and cancel the work item.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1692770-wf.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nawa &lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 21:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cancel-workflow/qaa-p/11895148#M4466659</guid>
      <dc:creator>Nawanandana</dc:creator>
      <dc:date>2019-06-14T21:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cancel Workflow</title>
      <link>https://community.sap.com/t5/technology-q-a/cancel-workflow/qaa-p/11895149#M4466660</link>
      <description>&lt;P&gt;I would  opt to choose deadline monitoring. as suggested by  Nawanandana Edirisinghe&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2019 06:36:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cancel-workflow/qaa-p/11895149#M4466660</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2019-06-15T06:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cancel Workflow</title>
      <link>https://community.sap.com/t5/technology-q-a/cancel-workflow/qaa-p/11895150#M4466661</link>
      <description>&lt;P&gt;Thanks Nawa for the solution and the provided solution would work for the new workflow instances. But I have many old workflows currently in the production and I cannot do any changes for the existing instances and I would like to cancel all the old workflows. Could you please suggest how to cancel all those workflows? &lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2019 13:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cancel-workflow/qaa-p/11895150#M4466661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-06-15T13:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cancel Workflow</title>
      <link>https://community.sap.com/t5/technology-q-a/cancel-workflow/qaa-p/11895151#M4466662</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use FM SAP_WAPI_ADM_WORKFLOW_CANCEL to cancel the work item. Using  SE37 Search for SAP_WAPI* and you'll find a whole bunch of other useful FM related to workflow.  you have to use table SWWWIHEAD get header information before pass in to the FM. it will give you the work item ID. you can get item detail using FM SAP_WAPI_GET_CHILD_WORKITEMS&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;Other option is use the program RSWWWIDE- but it will delete the workitem . &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nawa&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 13:10:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cancel-workflow/qaa-p/11895151#M4466662</guid>
      <dc:creator>Nawanandana</dc:creator>
      <dc:date>2019-06-17T13:10:22Z</dc:date>
    </item>
  </channel>
</rss>

