<?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: using the Check Function Module in SWETYPV in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/using-the-check-function-module-in-swetypv/qaa-p/11192574#M4133328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, it is a standard&amp;nbsp; behavior for PR and PO as described in the thread.&lt;/P&gt;&lt;P&gt;It doesn't depend on the code in the Check function module. I just mentioned it since you copy pasted the code as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="1228169" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="PO Release wf -Check FM ends with exception" href="https://community.sap.com/" modifiedtitle="true" title="PO Release wf -Check FM ends with exception"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is absolutely fine if you get this error message in SWEL&lt;/P&gt;&lt;P&gt;If you are so certain that you don't want any error message in SWEL, try writing this condition in start condition in workflow header-&amp;gt; basic data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Roopa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jul 2015 11:15:26 GMT</pubDate>
    <dc:creator>roopashree_v2</dc:creator>
    <dc:date>2015-07-17T11:15:26Z</dc:date>
    <item>
      <title>using the Check Function Module in SWETYPV</title>
      <link>https://community.sap.com/t5/technology-q-a/using-the-check-function-module-in-swetypv/qaq-p/11192568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have designed the PR Release workflow and it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to restrict the execution of the workflow when PR is incomplete.&lt;/P&gt;&lt;P&gt;For achieving this, I have created one FM and assigned it to the workflow as check function module in Transaction SWETYPV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the FM, I have return the custom logic that if PR is incomplete than workflow should not trigger as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF EBAN-MEMORY EQ 'X'.&amp;nbsp; "means incomplete&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAISE NOT_TRIGGERED.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is working fine but the I observed in SWEL transaction it appears with Red error mark.&lt;BR /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/750063" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so just I am wondering is this the proper way for restricting the workflow execution under certain conditions.&lt;/P&gt;&lt;P&gt;please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 09:23:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-the-check-function-module-in-swetypv/qaq-p/11192568</guid>
      <dc:creator>jagesh_lakdawala</dc:creator>
      <dc:date>2015-07-17T09:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: using the Check Function Module in SWETYPV</title>
      <link>https://community.sap.com/t5/technology-q-a/using-the-check-function-module-in-swetypv/qaa-p/11192569#M4133323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Double click on the line and check what is the error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 10:17:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-the-check-function-module-in-swetypv/qaa-p/11192569#M4133323</guid>
      <dc:creator>anjan_paul</dc:creator>
      <dc:date>2015-07-17T10:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: using the Check Function Module in SWETYPV</title>
      <link>https://community.sap.com/t5/technology-q-a/using-the-check-function-module-in-swetypv/qaa-p/11192570#M4133324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find the solution for your problem in this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="1228169" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="PO Release wf -Check FM ends with exception" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, your check function module should be like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if EBAN-memory = space&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;raise not_triggered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Roopa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 10:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-the-check-function-module-in-swetypv/qaa-p/11192570#M4133324</guid>
      <dc:creator>roopashree_v2</dc:creator>
      <dc:date>2015-07-17T10:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: using the Check Function Module in SWETYPV</title>
      <link>https://community.sap.com/t5/technology-q-a/using-the-check-function-module-in-swetypv/qaa-p/11192571#M4133325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roopa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I double clicked on the exception line in SWEL and found the message as "check FM ends with exception" and it is very obvious reason is the usage of RAISE statement inside the check FM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so whatever condition we write, usage of this RAISE is going to cause this Error in SWEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any other way by which we can prevent the workflow execution and at the same time we don't get any such error in Event Log SWEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 11:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-the-check-function-module-in-swetypv/qaa-p/11192571#M4133325</guid>
      <dc:creator>jagesh_lakdawala</dc:creator>
      <dc:date>2015-07-17T11:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: using the Check Function Module in SWETYPV</title>
      <link>https://community.sap.com/t5/technology-q-a/using-the-check-function-module-in-swetypv/qaa-p/11192572#M4133326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I understood your problem correctly, you can achieve same thing using start condition in header of workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to delegate standard business object , create a attribute in BO , you can create a char1 type attribute , if PR is incomplete then set this to 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use this attribute to put start condition in workflow header.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 11:11:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-the-check-function-module-in-swetypv/qaa-p/11192572#M4133326</guid>
      <dc:creator>former_member227140</dc:creator>
      <dc:date>2015-07-17T11:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: using the Check Function Module in SWETYPV</title>
      <link>https://community.sap.com/t5/technology-q-a/using-the-check-function-module-in-swetypv/qaa-p/11192573#M4133327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check Function module is the most optimal way to restrict the workflow from getting triggered as it is called even before executing the Receiver Function Module , thereby making sure even linkage is not determined .&lt;/P&gt;&lt;P&gt;The error mark in the SWEL is normal as the right exception is raised . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Raghu &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 11:13:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-the-check-function-module-in-swetypv/qaa-p/11192573#M4133327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-17T11:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: using the Check Function Module in SWETYPV</title>
      <link>https://community.sap.com/t5/technology-q-a/using-the-check-function-module-in-swetypv/qaa-p/11192574#M4133328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, it is a standard&amp;nbsp; behavior for PR and PO as described in the thread.&lt;/P&gt;&lt;P&gt;It doesn't depend on the code in the Check function module. I just mentioned it since you copy pasted the code as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="1228169" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="PO Release wf -Check FM ends with exception" href="https://community.sap.com/" modifiedtitle="true" title="PO Release wf -Check FM ends with exception"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is absolutely fine if you get this error message in SWEL&lt;/P&gt;&lt;P&gt;If you are so certain that you don't want any error message in SWEL, try writing this condition in start condition in workflow header-&amp;gt; basic data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Roopa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 11:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/using-the-check-function-module-in-swetypv/qaa-p/11192574#M4133328</guid>
      <dc:creator>roopashree_v2</dc:creator>
      <dc:date>2015-07-17T11:15:26Z</dc:date>
    </item>
  </channel>
</rss>

