<?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>topic Restricting workflow in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-workflow/m-p/11089219#M1902408</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;I implemented a simple workflow that will send an email when a material is changed in MM02. However, there is an additional requirement such that the workflow should only be triggered for a certain material group MARA-MATKL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to achieve this? I was thinking it should be done via the user-exit. But I'm not sure how to trigger the workflow from there. Can anyone please advise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single matkl from mara into lv_matkl where matnr = wmara-matnr. &lt;/P&gt;&lt;P&gt;if lv_matkl = '0110'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * execute / trigger the workflow&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Cholen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2015 19:36:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-05-13T19:36:38Z</dc:date>
    <item>
      <title>Restricting workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-workflow/m-p/11089219#M1902408</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;I implemented a simple workflow that will send an email when a material is changed in MM02. However, there is an additional requirement such that the workflow should only be triggered for a certain material group MARA-MATKL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to achieve this? I was thinking it should be done via the user-exit. But I'm not sure how to trigger the workflow from there. Can anyone please advise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single matkl from mara into lv_matkl where matnr = wmara-matnr. &lt;/P&gt;&lt;P&gt;if lv_matkl = '0110'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * execute / trigger the workflow&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Cholen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 19:36:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-workflow/m-p/11089219#M1902408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-13T19:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-workflow/m-p/11089220#M1902409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cholen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use transaction SWB_COND to create a new start condition for your workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Custodio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 01:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-workflow/m-p/11089220#M1902409</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2015-05-14T01:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-workflow/m-p/11089221#M1902410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Custodio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not figure out how SWB_COND works. Obviously I'm new to this but I found it can also be done in the triggering event from SWDD. I found the an expression for material group. But another one I need is the cross-plant status (MSTAE). Unfortunately I don't see it here though. Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/704384" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 11:19:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-workflow/m-p/11089221#M1902410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-14T11:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-workflow/m-p/11089222#M1902411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resolved - by creating new attribute on the BOR object. Reference for solution: &lt;A __default_attr="86979" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="User-Exit to trigger a workflow for Material Create" href="https://community.sap.com/"&gt;&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2015 20:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-workflow/m-p/11089222#M1902411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-16T20:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-workflow/m-p/11089223#M1902412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to see that you solved it and that a 10 years old thread is still helping.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 03:03:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-workflow/m-p/11089223#M1902412</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2015-05-18T03:03:51Z</dc:date>
    </item>
  </channel>
</rss>

