<?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: to run the program in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-the-program-in-background/m-p/2796820#M652936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Method 1: in SE38&lt;/P&gt;&lt;P&gt;type your program name&lt;/P&gt;&lt;P&gt;choose Program -&amp;gt; Execute -&amp;gt; Background&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method 2: in SM36&lt;/P&gt;&lt;P&gt;Create a job with your program name&lt;/P&gt;&lt;P&gt;it will run in bg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2007 05:00:29 GMT</pubDate>
    <dc:creator>former_member189059</dc:creator>
    <dc:date>2007-09-17T05:00:29Z</dc:date>
    <item>
      <title>to run the program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-the-program-in-background/m-p/2796819#M652935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends..&lt;/P&gt;&lt;P&gt;i want to run the program in background..&lt;/P&gt;&lt;P&gt;how can i run my program in background ?&lt;/P&gt;&lt;P&gt;can you send me the code plz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 04:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-the-program-in-background/m-p/2796819#M652935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T04:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: to run the program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-the-program-in-background/m-p/2796820#M652936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Method 1: in SE38&lt;/P&gt;&lt;P&gt;type your program name&lt;/P&gt;&lt;P&gt;choose Program -&amp;gt; Execute -&amp;gt; Background&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method 2: in SM36&lt;/P&gt;&lt;P&gt;Create a job with your program name&lt;/P&gt;&lt;P&gt;it will run in bg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 05:00:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-the-program-in-background/m-p/2796820#M652936</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-09-17T05:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: to run the program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-the-program-in-background/m-p/2796821#M652937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi deva,&lt;/P&gt;&lt;P&gt;If it is report program then you can do that by difining a job for ur prog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is batch method then you can do that by providing options in batch data communication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 05:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-the-program-in-background/m-p/2796821#M652937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T05:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: to run the program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-the-program-in-background/m-p/2796822#M652938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with SM37 and SM36&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if useful..................&lt;/P&gt;&lt;P&gt;Minal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 05:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-the-program-in-background/m-p/2796822#M652938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T05:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: to run the program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-the-program-in-background/m-p/2796823#M652939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this thread, it will surely help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=5273985&amp;amp;messageID=3151612" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=5273985&amp;amp;messageID=3151612&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 05:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-the-program-in-background/m-p/2796823#M652939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T05:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: to run the program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-the-program-in-background/m-p/2796824#M652940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can directly run the program in back ground go to se38 menu Program-&amp;gt;Execute-&amp;gt;background.  There is another way to run a program in background. using FM job_open, job_submit and job_close.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 05:02:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-the-program-in-background/m-p/2796824#M652940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-17T05:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: to run the program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-the-program-in-background/m-p/2796825#M652941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is how to do it through code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: lv_job_name         like tbtco-jobname,
lv_job_nr           like tbtco-jobcount,
lv_job_released     type c,
lv_job_start_sofort type c,
lv_print_parameters type pri_params.
lv_job_name = 'Z_test'. " your background program name

  call function 'JOB_OPEN'
    exporting
      jobname          = lv_job_name
    importing
      jobcount         = lv_job_nr
    exceptions
      cant_create_job  = 1
      invalid_job_data = 2
      jobname_missing  = 3
      others           = 4.
  if syst-subrc = 0.
*submit job with all the selection screen params...
    submit (lv_job_name)
        with applfile = applfile
        with p_lines = p_lines
        with rfc_dest = rfcdest
        with p_selmtd = lv_selmtd
        with px_shsim = px_shsim
        with px_sherr = px_sherr
        user syst-uname
       via job lv_job_name number lv_job_nr and return.
    if sy-subrc = 0.
      call function 'JOB_CLOSE'
        exporting
          jobcount             = lv_job_nr
          jobname              = lv_job_name
          strtimmed            = 'X'
        importing
          job_was_released     = lv_job_released
        exceptions
          cant_start_immediate = 1
          invalid_startdate    = 2
          jobname_missing      = 3
          job_close_failed     = 4
          job_nosteps          = 5
          job_notex            = 6
          lock_failed          = 7
          others               = 8.
      if syst-subrc &amp;lt;&amp;gt; 0.
        message i162(00) with
        'An error occured while closing the background job.'.
        stop.
      endif.
    endif.
  endif.
  skip 1.
  write: / 'Background process', lv_job_name ,
    'called successfully' no-gap.
  write: / 'You can check the job in transaction SM37'.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 05:03:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-run-the-program-in-background/m-p/2796825#M652941</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-09-17T05:03:57Z</dc:date>
    </item>
  </channel>
</rss>

