<?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: Scheduling program in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-program-in-background/m-p/2940548#M693202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sudheendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you specified variants for job to run in background? Don't forget to specify the values to be passed for selection screen parameters in variants.&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;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2007 05:05:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-15T05:05:52Z</dc:date>
    <item>
      <title>Scheduling program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-program-in-background/m-p/2940547#M693201</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 scheduled a program with selection screen in background. &lt;/P&gt;&lt;P&gt;   I have scheduled it to run every minute . when I go to sm37 and check it shows the job my job name and against it it say 'Released' .&lt;/P&gt;&lt;P&gt;  Why doesn't my program start in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me resolve this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 05:02:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-program-in-background/m-p/2940547#M693201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T05:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-program-in-background/m-p/2940548#M693202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sudheendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you specified variants for job to run in background? Don't forget to specify the values to be passed for selection screen parameters in variants.&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;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 05:05:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-program-in-background/m-p/2940548#M693202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T05:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-program-in-background/m-p/2940549#M693203</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;This is how to do it through code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lv_job_name like tbtco-jobname,&lt;/P&gt;&lt;P&gt;lv_job_nr like tbtco-jobcount,&lt;/P&gt;&lt;P&gt;lv_job_released type c,&lt;/P&gt;&lt;P&gt;lv_job_start_sofort type c,&lt;/P&gt;&lt;P&gt;lv_print_parameters type pri_params.&lt;/P&gt;&lt;P&gt;lv_job_name = 'Z_test'. " your background program name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;jobname = lv_job_name&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;jobcount = lv_job_nr&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;cant_create_job = 1&lt;/P&gt;&lt;P&gt;invalid_job_data = 2&lt;/P&gt;&lt;P&gt;jobname_missing = 3&lt;/P&gt;&lt;P&gt;others = 4.&lt;/P&gt;&lt;P&gt;if syst-subrc = 0.&lt;/P&gt;&lt;P&gt;*submit job with all the selection screen params...&lt;/P&gt;&lt;P&gt;submit (lv_job_name)&lt;/P&gt;&lt;P&gt;with applfile = applfile&lt;/P&gt;&lt;P&gt;with p_lines = p_lines&lt;/P&gt;&lt;P&gt;with rfc_dest = rfcdest&lt;/P&gt;&lt;P&gt;with p_selmtd = lv_selmtd&lt;/P&gt;&lt;P&gt;with px_shsim = px_shsim&lt;/P&gt;&lt;P&gt;with px_sherr = px_sherr&lt;/P&gt;&lt;P&gt;user syst-uname&lt;/P&gt;&lt;P&gt;via job lv_job_name number lv_job_nr and return.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;call function 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;jobcount = lv_job_nr&lt;/P&gt;&lt;P&gt;jobname = lv_job_name&lt;/P&gt;&lt;P&gt;strtimmed = 'X'&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;job_was_released = lv_job_released&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;cant_start_immediate = 1&lt;/P&gt;&lt;P&gt;invalid_startdate = 2&lt;/P&gt;&lt;P&gt;jobname_missing = 3&lt;/P&gt;&lt;P&gt;job_close_failed = 4&lt;/P&gt;&lt;P&gt;job_nosteps = 5&lt;/P&gt;&lt;P&gt;job_notex = 6&lt;/P&gt;&lt;P&gt;lock_failed = 7&lt;/P&gt;&lt;P&gt;others = 8.&lt;/P&gt;&lt;P&gt;if syst-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message i162(00) with&lt;/P&gt;&lt;P&gt;'An error occured while closing the background job.'.&lt;/P&gt;&lt;P&gt;stop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;skip 1.&lt;/P&gt;&lt;P&gt;write: / 'Background process', lv_job_name ,&lt;/P&gt;&lt;P&gt;'called successfully' no-gap.&lt;/P&gt;&lt;P&gt;write: / 'You can check the job in transaction SM37'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Sm36 and SM37 Transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/73/69ef5755bb11d189680000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/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;&amp;lt;b&amp;gt;Reward if usefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 05:08:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-program-in-background/m-p/2940549#M693203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T05:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-program-in-background/m-p/2940550#M693204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you know if your selection criteria(values entered on selection screen0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;doesn't produce any output, how you are going to see on the same ??&lt;/P&gt;&lt;P&gt;check your input values better to use variants for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit Singla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 05:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-program-in-background/m-p/2940550#M693204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T05:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-program-in-background/m-p/2940551#M693205</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;Actually you can do this with a variant and you would not need to make any additional code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try these steps: &lt;/P&gt;&lt;P&gt;1) create a variant &lt;/P&gt;&lt;P&gt;2) on the screen called 'ABAP Save as Variant' for your date range select field attribute 'L' (selection variable) and then click the tab for 'selection variables' &lt;/P&gt;&lt;P&gt;3) on the screen called 'Choose Variant Variables ...' change the yellow button under 'D' (dynamic date calculation) to green and then click the drop down list. &lt;/P&gt;&lt;P&gt;4) go to the bottom of the list and select Beginning of mth-xx months, end of mth+yy months &lt;/P&gt;&lt;P&gt;5) then for values xxx give it a 3 (for 3 months back) and for yyy give it a -1 (take my word for the 3 and -1) &lt;/P&gt;&lt;P&gt;6) save the variant &lt;/P&gt;&lt;P&gt;7) save again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 05:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-program-in-background/m-p/2940551#M693205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T05:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-program-in-background/m-p/2940552#M693206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you given any start condition for the job.&lt;/P&gt;&lt;P&gt;Released status will be shown immediately before the job starts.&lt;/P&gt;&lt;P&gt;If it is not started, the reason could be there is no BTC work process that is free .&lt;/P&gt;&lt;P&gt;Check with your BASIS consultant if everything related to job is fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 05:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling-program-in-background/m-p/2940552#M693206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T05:14:17Z</dc:date>
    </item>
  </channel>
</rss>

