<?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: how to run a program in background? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-a-program-in-background/m-p/4069377#M972861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Go through this links:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4036598"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5211202"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try using wizard in SM36 transaction. Its really helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shailaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2008 05:30:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-09T05:30:40Z</dc:date>
    <item>
      <title>how to run a program in background?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-a-program-in-background/m-p/4069375#M972859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abapers,&lt;/P&gt;&lt;P&gt;I want to run a program in background using sm36 and sm37.But i am not aware of input in that tansaction.So kindly tell me the steps ho run a program in background.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ansuman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 05:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-a-program-in-background/m-p/4069375#M972859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T05:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to run a program in background?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-a-program-in-background/m-p/4069376#M972860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Its easy to schedule background job.&lt;/P&gt;&lt;P&gt;Go through following link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm&lt;/A&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;&lt;/P&gt;&lt;P&gt;SUDHIR MANJAREKAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 05:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-a-program-in-background/m-p/4069376#M972860</guid>
      <dc:creator>Sidh_M</dc:creator>
      <dc:date>2008-07-09T05:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to run a program in background?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-a-program-in-background/m-p/4069377#M972861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Go through this links:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4036598"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5211202"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try using wizard in SM36 transaction. Its really helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shailaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 05:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-a-program-in-background/m-p/4069377#M972861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T05:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to run a program in background?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-a-program-in-background/m-p/4069378#M972862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Way to run program in Backgroung mode :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;se38--&lt;DEL&gt;&amp;gt;)Write program name )&lt;/DEL&gt;&lt;DEL&gt;-&amp;gt;choose Tab "program" in menu bar -&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---" /&gt;&amp;gt;execute----&amp;gt;background&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 05:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-a-program-in-background/m-p/4069378#M972862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T05:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to run a program in background?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-a-program-in-background/m-p/4069379#M972863</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;Refer to the following link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/73/69ef5755bb11d189680000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/73/69ef5755bb11d189680000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful,&lt;/P&gt;&lt;P&gt; Thanks and regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 05:37:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-a-program-in-background/m-p/4069379#M972863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T05:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to run a program in background?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-a-program-in-background/m-p/4069380#M972864</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;  Goto Tcode SM36, give the job name there and then click step at the top and then it will open another window, give the abap program name there and the variant and then click check and save. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then click on start conditon, another window will open, if you want to release it immediate click immediate, then check and save. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can go to tcode sm37 and check the status there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 05:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-a-program-in-background/m-p/4069380#M972864</guid>
      <dc:creator>former_member282823</dc:creator>
      <dc:date>2008-07-09T05:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to run a program in background?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-a-program-in-background/m-p/4069381#M972865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ansuman Parhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;by useing T-codes&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First go to transaction SM36 to schedule the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you enter the "Start condition" for job, do as follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select processing by "Date/Time". &lt;/P&gt;&lt;P&gt;Enter date as current date. &lt;/P&gt;&lt;P&gt;Let us say you are scheduling this job today then give date 08/30/2007. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check "periodic job" checkbox. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hit "periodic value" button and select to run "Daily" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also have a look on below thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3063391"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how to do it &lt;STRONG&gt;through code&lt;/STRONG&gt;&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 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;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 05:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-a-program-in-background/m-p/4069381#M972865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T05:41:43Z</dc:date>
    </item>
  </channel>
</rss>

