<?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 Re: Workflow starting condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-starting-condition/m-p/3799784#M913816</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 your workflow is raised by an event you can place a check function module to check if your workflow should be raised. In the check fm you can set a condition : product_type = 02, else raise condition_false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in tcode SWETYPV you can set the check fm. The check fm should be created in SE37 with the following interface:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*"----------------------------------------------------------------------
*"*"Lokale interface:
*"  IMPORTING
*"     VALUE(OBJTYPE) LIKE  SWETYPECOU-OBJTYPE
*"     VALUE(OBJKEY) LIKE  SWEINSTCOU-OBJKEY
*"     VALUE(EVENT) LIKE  SWETYPECOU-EVENT
*"     VALUE(RECTYPE) LIKE  SWETYPECOU-RECTYPE
*"  TABLES
*"      EVENT_CONTAINER STRUCTURE  SWCONT
*"  EXCEPTIONS
*"      CONDITION_FALSE
*"----------------------------------------------------------------------

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should work just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 May 2008 15:02:26 GMT</pubDate>
    <dc:creator>b_deterd2</dc:creator>
    <dc:date>2008-05-16T15:02:26Z</dc:date>
    <item>
      <title>Workflow starting condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-starting-condition/m-p/3799782#M913814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to give starting condition as PRODUCT_TYPE  = '02'.&lt;/P&gt;&lt;P&gt;but i am not able to find out that field in container. So how can i  include this field in my start condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggestions will be awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Azad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 13:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-starting-condition/m-p/3799782#M913814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T13:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow starting condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-starting-condition/m-p/3799783#M913815</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;you want to trigger the workflow when PRODUCT_TYPE = '02'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Workflow can be trigerred by events. So using the event you can trigger the workflow and after this you can check the condition for PRODUCT_TYPE = '02'.&lt;/P&gt;&lt;P&gt;if tru continue the WK else terminate the WF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;mahantesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 14:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-starting-condition/m-p/3799783#M913815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T14:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow starting condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-starting-condition/m-p/3799784#M913816</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 your workflow is raised by an event you can place a check function module to check if your workflow should be raised. In the check fm you can set a condition : product_type = 02, else raise condition_false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in tcode SWETYPV you can set the check fm. The check fm should be created in SE37 with the following interface:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*"----------------------------------------------------------------------
*"*"Lokale interface:
*"  IMPORTING
*"     VALUE(OBJTYPE) LIKE  SWETYPECOU-OBJTYPE
*"     VALUE(OBJKEY) LIKE  SWEINSTCOU-OBJKEY
*"     VALUE(EVENT) LIKE  SWETYPECOU-EVENT
*"     VALUE(RECTYPE) LIKE  SWETYPECOU-RECTYPE
*"  TABLES
*"      EVENT_CONTAINER STRUCTURE  SWCONT
*"  EXCEPTIONS
*"      CONDITION_FALSE
*"----------------------------------------------------------------------

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should work just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 15:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-starting-condition/m-p/3799784#M913816</guid>
      <dc:creator>b_deterd2</dc:creator>
      <dc:date>2008-05-16T15:02:26Z</dc:date>
    </item>
  </channel>
</rss>

