<?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: Triggering a Background Program using an Event in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/triggering-a-background-program-using-an-event/m-p/1718444#M313838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  How about approching this way.&lt;/P&gt;&lt;P&gt;  1. Define the event.&lt;/P&gt;&lt;P&gt;  2. Define a JOB via SM36 with start condition as AFTER EVENT.&lt;/P&gt;&lt;P&gt;  3. Raise the event accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hope this will serve your purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Oct 2006 05:56:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-25T05:56:41Z</dc:date>
    <item>
      <title>Triggering a Background Program using an Event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/triggering-a-background-program-using-an-event/m-p/1718443#M313837</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 have an urgent requirement where in I have to Submit a Program in Background, and trigger it using an event.&lt;/P&gt;&lt;P&gt;The following is the process followed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           jobname          = jobname&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;           jobcount         = gv_jobcount&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2,&lt;/P&gt;&lt;P&gt;Submit the Program in Background,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SUBMIT zf_ddi_activity_closure with&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          p_kunnr = i_kna1-kunnr&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          VIA JOB jobname&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          NUMBER gv_jobcount&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          AND RETURN.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Step 3,&lt;/P&gt;&lt;P&gt;Close Job,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           event_id             = event_id&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           jobcount             = gv_jobcount&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           jobname              = jobname&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Step 4,&lt;/P&gt;&lt;P&gt;Triggering the Event,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL FUNCTION 'BP_EVENT_RAISE'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           eventid                = event_id&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This proceedure is not working could anyone let me know of any other way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 05:50:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/triggering-a-background-program-using-an-event/m-p/1718443#M313837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-25T05:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering a Background Program using an Event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/triggering-a-background-program-using-an-event/m-p/1718444#M313838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  How about approching this way.&lt;/P&gt;&lt;P&gt;  1. Define the event.&lt;/P&gt;&lt;P&gt;  2. Define a JOB via SM36 with start condition as AFTER EVENT.&lt;/P&gt;&lt;P&gt;  3. Raise the event accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hope this will serve your purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 05:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/triggering-a-background-program-using-an-event/m-p/1718444#M313838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-25T05:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering a Background Program using an Event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/triggering-a-background-program-using-an-event/m-p/1718445#M313839</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;instead of your 4 steps try fm K_BATCH_REQUEST&lt;/P&gt;&lt;P&gt;(look documentation with se37 1st)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 06:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/triggering-a-background-program-using-an-event/m-p/1718445#M313839</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-10-25T06:22:08Z</dc:date>
    </item>
  </channel>
</rss>

