<?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: event programing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-programing/m-p/3775164#M908360</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This much is not adequate to understand I need step by step process please, because this much I m unable to understand.&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;Srinivasa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Apr 2008 06:11:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-28T06:11:14Z</dc:date>
    <item>
      <title>event programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-programing/m-p/3775160#M908356</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 would like to run an abap program in background after tcode VL02n of Goods issue button has been saved, In the user exit (USEREXIT_SAVE_DOCUMENT_PREPARE) of the VL02n, I should create the job that will run the abap program. after the VL02n is saved, I should create an event with SM62, and using function module 'BP_EVENT_RAISE' in the program should triger the event, Please anybody could contribute the sample programs to refer the coding for function module 'BP_EVENT_RAISE'  so that it would be easy to me to understand the functionality of the FM 'BP_EVENT_RAISE' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 03:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-programing/m-p/3775160#M908356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T03:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: event programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-programing/m-p/3775161#M908357</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;&lt;/P&gt;&lt;P&gt;define an event using SM62 &lt;/P&gt;&lt;P&gt;set the start-time for the process-chain on "after event" and insert your just created event in the appropriate field &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 = string&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;bad_eventid = 1&lt;/P&gt;&lt;P&gt;eventid_does_not_exist = 2&lt;/P&gt;&lt;P&gt;eventid_missing = 3&lt;/P&gt;&lt;P&gt;raise_failed = 4&lt;/P&gt;&lt;P&gt;OTHERS = 5.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;f_calc_error = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the variable string has to contain your event &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 05:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-programing/m-p/3775161#M908357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T05:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: event programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-programing/m-p/3775162#M908358</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;FM 'BP_EVENT_RAISE' is used to trigger Background Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trigger an event in the background processing system. This function module is for use in programs written in ABAP/4. Triggering an event tells the background processing system to start any background jobs that were scheduled to wait for the event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can trigger an event with or without an event argument, a string that more precisely identifies an event. Jobs can be scheduled to wait for an event for the combination of event and a particular event argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EVENTID is just an identifier to locate the event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find this event in transaction SWEL/SWE2 transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;see the sample code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;report zsystem_copy_check .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_zzcopytest   type table of zzcopytest with header line,&lt;/P&gt;&lt;P&gt;      i_zsystem_info type table of zsystem_info with header line,&lt;/P&gt;&lt;P&gt;      i_mshost type syhost,&lt;/P&gt;&lt;P&gt;      i_message type string,&lt;/P&gt;&lt;P&gt;      i_event type btceventid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;......................&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get mshost&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;call 'C_SAPGPARAM' id 'NAME'  field 'rdisp/mshost'&lt;/P&gt;&lt;P&gt;                   id 'VALUE' field i_mshost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;......................&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check if system was just copied and if so, trigger corresponding event&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;for conversion&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * into i_zzcopytest from zzcopytest&lt;/P&gt;&lt;P&gt;                      where sys    = sy-sysid&lt;/P&gt;&lt;P&gt;                      and   server = i_mshost.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;  i_zzcopytest-datum   = sy-datum.&lt;/P&gt;&lt;P&gt;  i_zzcopytest-uhrzeit = sy-uzeit.&lt;/P&gt;&lt;P&gt;  update zzcopytest from i_zzcopytest.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  i_zzcopytest-sys     = sy-sysid.&lt;/P&gt;&lt;P&gt;  i_zzcopytest-server  = i_mshost.&lt;/P&gt;&lt;P&gt;  i_zzcopytest-datum   = sy-datum.&lt;/P&gt;&lt;P&gt;  i_zzcopytest-uhrzeit = sy-uzeit.&lt;/P&gt;&lt;P&gt;  insert zzcopytest from i_zzcopytest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select single * from zsystem_info into i_zsystem_info&lt;/P&gt;&lt;P&gt;                   where sid = sy-sysid and&lt;/P&gt;&lt;P&gt;                      mshost = i_mshost.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    i_event = 'CONVERT'.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    i_event = 'ULOC'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;call function 'BP_EVENT_RAISE'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      eventid                = i_event&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      bad_eventid            = 01&lt;/P&gt;&lt;P&gt;      eventid_does_not_exist = 02&lt;/P&gt;&lt;P&gt;      eventid_missing        = 03&lt;/P&gt;&lt;P&gt;      raise_failed           = 04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    concatenate text-001 i_event text-002 into i_message.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    concatenate text-001 i_event text-003 into i_message.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  message s398(00) with i_message.&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&gt;Kiran Sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 05:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-programing/m-p/3775162#M908358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T05:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: event programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-programing/m-p/3775163#M908359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you send me the step by step process if possible, because this much I m unable to understand.&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;Srinivasa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 06:08:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-programing/m-p/3775163#M908359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T06:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: event programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-programing/m-p/3775164#M908360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This much is not adequate to understand I need step by step process please, because this much I m unable to understand.&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;Srinivasa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 06:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-programing/m-p/3775164#M908360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T06:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: event programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/event-programing/m-p/3775165#M908361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thread closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 03:39:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/event-programing/m-p/3775165#M908361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T03:39:23Z</dc:date>
    </item>
  </channel>
</rss>

