<?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 Help with code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-code/m-p/940690#M63128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai all,&lt;/P&gt;&lt;P&gt;           I need to raise an event soon after the completion of a data load in BW. I am using this in a process chain. All I need is that command goes to a program and the program should raise an event. I have the following code. Can somebody help me in building my code?&lt;/P&gt;&lt;P&gt;I have the following. Please correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BP_EVENT_RAISE'&lt;/P&gt;&lt;P&gt;eventid = 'p_event'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;Message S007(zfn) with text-001 'EVENT RAISED'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;Message E007(zfn) with text-002 'EVENT RAISING FAILED'.&lt;/P&gt;&lt;P&gt;end if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Sep 2005 18:01:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-12T18:01:53Z</dc:date>
    <item>
      <title>Help with code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-code/m-p/940690#M63128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai all,&lt;/P&gt;&lt;P&gt;           I need to raise an event soon after the completion of a data load in BW. I am using this in a process chain. All I need is that command goes to a program and the program should raise an event. I have the following code. Can somebody help me in building my code?&lt;/P&gt;&lt;P&gt;I have the following. Please correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BP_EVENT_RAISE'&lt;/P&gt;&lt;P&gt;eventid = 'p_event'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;Message S007(zfn) with text-001 'EVENT RAISED'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;Message E007(zfn) with text-002 'EVENT RAISING FAILED'.&lt;/P&gt;&lt;P&gt;end if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2005 18:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-code/m-p/940690#M63128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-12T18:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-code/m-p/940691#M63129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you raising this event? You want to raise this event in data load program of BW and once the event is raised, you want another program to start. If that is true, then you need a background job defined for this other program which will start when this event is triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rasing the event looks ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2005 19:00:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-code/m-p/940691#M63129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-12T19:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-code/m-p/940692#M63130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Srinivas,&lt;/P&gt;&lt;P&gt;               Thansk for the reply. I have a job that runs before this and a job after this. The only thing is that I need to be clear with the code. I guess I can see this event once raised in sm37 right? From your reply I assume the code is good. Is it? An suggestions?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2005 19:38:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-code/m-p/940692#M63130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-12T19:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-code/m-p/940693#M63131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If they run in background jobs, then why don't you simply add them as steps of the same job?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some clarifications. You have your dataload program A. Now you need one program B to run before A and another one C to run after A. Is this what you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2005 19:51:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-code/m-p/940693#M63131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-12T19:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-code/m-p/940694#M63132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did the answers help you? Can you please close the post if resolved?&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;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2005 03:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-code/m-p/940694#M63132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-16T03:11:28Z</dc:date>
    </item>
  </channel>
</rss>

