<?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 Problem with event raising code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-event-raising-code/m-p/959200#M66987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai, I have the following code for raising an event after completion of a job. But the problem is the vent is not getting raised. can somebody recrtify the defect int his program?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  Z_EVENT_RAISER.&lt;/P&gt;&lt;P&gt;selection-screen begin of block parametri with frame.&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;EVENT like BTCH1250-EVENTID obligatory,&lt;/P&gt;&lt;P&gt;PARAM like BTCH1250-PARAMETER.&lt;/P&gt;&lt;P&gt;selection-screen skip.&lt;/P&gt;&lt;P&gt;selection-screen end of block parametri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BP_EVENT_RAISE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;eventid = EVENT&lt;/P&gt;&lt;P&gt;EVENTPARM = PARAM&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TARGET_INSTANCE = ' '&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;BAD_EVENTID = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EVENTID_DOES_NOT_EXIST = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EVENTID_MISSING = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;RAISE_FAILED = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 5&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2005 03:10:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-14T03:10:20Z</dc:date>
    <item>
      <title>Problem with event raising code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-event-raising-code/m-p/959200#M66987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai, I have the following code for raising an event after completion of a job. But the problem is the vent is not getting raised. can somebody recrtify the defect int his program?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  Z_EVENT_RAISER.&lt;/P&gt;&lt;P&gt;selection-screen begin of block parametri with frame.&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;EVENT like BTCH1250-EVENTID obligatory,&lt;/P&gt;&lt;P&gt;PARAM like BTCH1250-PARAMETER.&lt;/P&gt;&lt;P&gt;selection-screen skip.&lt;/P&gt;&lt;P&gt;selection-screen end of block parametri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BP_EVENT_RAISE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;eventid = EVENT&lt;/P&gt;&lt;P&gt;EVENTPARM = PARAM&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TARGET_INSTANCE = ' '&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;BAD_EVENTID = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EVENTID_DOES_NOT_EXIST = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EVENTID_MISSING = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;RAISE_FAILED = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 5&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 03:10:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-event-raising-code/m-p/959200#M66987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T03:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with event raising code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-event-raising-code/m-p/959201#M66988</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;Just try with transaction SM64 . Its one and the same the code you have given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have the event defined in your system ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 03:33:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-event-raising-code/m-p/959201#M66988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T03:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with event raising code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-event-raising-code/m-p/959202#M66989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check if the event that you are passing to FM 'BP_EVENT_RAISE' exists or not from transaction SM62.&lt;/P&gt;&lt;P&gt;If it is not there you create the same in Transaction SM62.&lt;/P&gt;&lt;P&gt;Then you can test the FM  'BP_EVENT_RAISE'  in SM37 to see if the event is raised.&lt;/P&gt;&lt;P&gt;Now you can attach this event to a background job in SM36. Put in the job name - fill in the ABAP/4 program you&amp;#146;ll want executed, but under "START DATE" select option AFTER EVENT. Then plug in your SAP event name you created. Fill in the remaining information on this screen and save. &lt;/P&gt;&lt;P&gt;The events raised here in 'BP_EVENT_RAISE' are dirent from workflow events.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 04:03:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-event-raising-code/m-p/959202#M66989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T04:03:56Z</dc:date>
    </item>
  </channel>
</rss>

