<?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: how to trigger workflow from abap program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-workflow-from-abap-program/m-p/2622549#M602398</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;CHk this links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very hlpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/fb/135962457311d189440000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/fb/135962457311d189440000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Workflow&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/workflow/sap-workflow.htm" target="test_blank"&gt;http://www.sap-img.com/workflow/sap-workflow.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/workflow/index.htm" target="test_blank"&gt;http://www.erpgenie.com/workflow/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/wf/sap-business-workflow.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/wf/sap-business-workflow.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.insightcp.com/res_23.htm" target="test_blank"&gt;http://www.insightcp.com/res_23.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For examples on WorkFlow...check the below link..&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.workflowing.com/id18.htm" target="test_blank"&gt;http://www.workflowing.com/id18.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.e-workflow.org/" target="test_blank"&gt;http://www.e-workflow.org/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://web.mit.edu/sapr3/dev/newdevstand.html" target="test_blank"&gt;http://web.mit.edu/sapr3/dev/newdevstand.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/mike.pokraka/blog/2005/07/17/sap-business-workflow-faq&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2007 08:19:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-31T08:19:11Z</dc:date>
    <item>
      <title>how to trigger workflow from abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-workflow-from-abap-program/m-p/2622548#M602397</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;i have a user developed screen in which there is an option to approve (not a std tcode)&lt;/P&gt;&lt;P&gt;for which there is no event created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am very new to workflow , &lt;/P&gt;&lt;P&gt;now how to create an event and also how to trigger the workflow&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 08:14:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-workflow-from-abap-program/m-p/2622548#M602397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T08:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to trigger workflow from abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-workflow-from-abap-program/m-p/2622549#M602398</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;CHk this links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very hlpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/fb/135962457311d189440000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/fb/135962457311d189440000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Workflow&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/workflow/sap-workflow.htm" target="test_blank"&gt;http://www.sap-img.com/workflow/sap-workflow.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/workflow/index.htm" target="test_blank"&gt;http://www.erpgenie.com/workflow/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/wf/sap-business-workflow.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/wf/sap-business-workflow.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.insightcp.com/res_23.htm" target="test_blank"&gt;http://www.insightcp.com/res_23.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For examples on WorkFlow...check the below link..&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.workflowing.com/id18.htm" target="test_blank"&gt;http://www.workflowing.com/id18.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.e-workflow.org/" target="test_blank"&gt;http://www.e-workflow.org/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://web.mit.edu/sapr3/dev/newdevstand.html" target="test_blank"&gt;http://web.mit.edu/sapr3/dev/newdevstand.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/mike.pokraka/blog/2005/07/17/sap-business-workflow-faq&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 08:19:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-workflow-from-abap-program/m-p/2622549#M602398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T08:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to trigger workflow from abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-workflow-from-abap-program/m-p/2622550#M602399</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 can run a ABAP report or call a transaction from the BOR's Method directly.&lt;/P&gt;&lt;P&gt;Check this link for more info.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/80/9a3cb3971c11d194c60000e82dec10/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/80/9a3cb3971c11d194c60000e82dec10/frameset.htm&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to trigger an event programmatically, we would use the function module SWE_EVENT_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUS1001006 ( Standard Material )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: key LIKE sweinstcou-objkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;key = '68." Material Number (hard-coded)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SWE_EVENT_CREATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;objtype = 'BUS1001006'&lt;/P&gt;&lt;P&gt;objkey = key&lt;/P&gt;&lt;P&gt;event = 'CREATED'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CREATOR = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TAKE_WORKITEM_REQUESTER = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;START_WITH_DELAY = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;START_RECFB_SYNCHRON = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NO_COMMIT_FOR_QUEUE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DEBUG_FLAG = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NO_LOGGING = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IDENT =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EVENT_ID =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EVENT_CONTAINER =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OBJTYPE_NOT_FOUND = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;WRITE 'Event Triggered'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to test whether the event is getting triggered or not, we can make use of Event Trace. Switch on the event trace using the transaction SWELS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press &amp;#145;Switch On&amp;#148;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now execute the program developed earlier. Now switch-off the event trace using the same transaction SWELS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to transaction SWEL. Here you can list out the events triggered in the particular period of time. Here is the event-trace list: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 08:21:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-workflow-from-abap-program/m-p/2622550#M602399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T08:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to trigger workflow from abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-workflow-from-abap-program/m-p/2622551#M602400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;i have tried both 'SWE_EVENT_CREATE'  and also SAP_WAPI_EVENT_CREATE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me explain the scenario,&lt;/P&gt;&lt;P&gt;once the enquiry is created assuming having multiple line items&lt;/P&gt;&lt;P&gt;i am able to trigger the wf &lt;/P&gt;&lt;P&gt;but &lt;/P&gt;&lt;P&gt;in my case i have to approve each line item ,so there is a user developed module pool pgm screen to do the same, now when this line item is approved i have to trigger the wf  and then on SO is created with reference ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope my question is clear this time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;subramanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 08:40:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-workflow-from-abap-program/m-p/2622551#M602400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T08:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to trigger workflow from abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-workflow-from-abap-program/m-p/2622552#M602401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there --- actually this is really easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your ABAP create the event with FM  SAP_WAPI_CREATE_EVENT.&lt;/P&gt;&lt;P&gt;Use transaction SWE2 to define the workflow / task to start when the event is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensure in the definition of your BOR (or CLASS if using OO workflow) you've defined an EVENT. In BOR use transaction SWO1. For classes transaction SE24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using a Standard (SAP) supplied BOR but you need to add methods / events then just define a Z version and DELEGATE it to the standard SAP one. Also done in transaction SWO1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jimbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 17:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-workflow-from-abap-program/m-p/2622552#M602401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T17:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to trigger workflow from abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-workflow-from-abap-program/m-p/2622553#M602402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you ,&lt;/P&gt;&lt;P&gt;it was help full....&lt;/P&gt;&lt;P&gt;&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;subramanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 04:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-workflow-from-abap-program/m-p/2622553#M602402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T04:16:14Z</dc:date>
    </item>
  </channel>
</rss>

