<?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: run program in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945846#M694492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Feng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all it is very starnge but SAP does not allow the combination of running a report n the background and saving it on the Presentation server.&lt;/P&gt;&lt;P&gt;Hence,whatever report has to run n the background,it has to be saved on the Application Server for which you will have to use the keywords:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open Dataset.&lt;/P&gt;&lt;P&gt;Transfer.&lt;/P&gt;&lt;P&gt;Close Dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To view the file stored,go to T-code AL11 and find the pathname.&lt;/P&gt;&lt;P&gt;In order to save this particular file on the Presentation server,you can use the T-code CG3Y and give the file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, instaed of coding for the schedulng the report in the background,you can also schedule it manually in SM37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you have any further clarifications,do let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Puneet Jhari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2007 04:59:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-12T04:59:30Z</dc:date>
    <item>
      <title>run program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945842#M694488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,everyone!&lt;/P&gt;&lt;P&gt;I got a very easy problem when I want to run a program in background.&lt;/P&gt;&lt;P&gt;I wrote a program in SE38.We should enter some data to screen fields.And this program can select data from database and download these data into a local file, and give us a report.&lt;/P&gt;&lt;P&gt;I want to know how to execute this program in background,and how to see the results,file and report.&lt;/P&gt;&lt;P&gt;Because I'm a beginner , please give me some ideas or some materials, more detailed the better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 03:05:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945842#M694488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T03:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: run program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945843#M694489</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;SAP doesnt provide the feature to download file on presentation server in background i.e. using GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to download on application server using OPEN DATASET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 03:07:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945843#M694489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T03:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: run program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945844#M694490</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;1. Running report inbackground - Either through SM37 or directly using SE38- &amp;gt; Program -&amp;gt; Execute-&amp;gt; background.&lt;/P&gt;&lt;P&gt;2 If you are downloading file on presentation server then you can't run the progam in background&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 03:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945844#M694490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T03:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: run program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945845#M694491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;background jobs&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/ef/2c513897110872e10000009b38f889/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/ef/2c513897110872e10000009b38f889/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File downloads&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/79/c554a3b3dc11d5993800508b6b8b11/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/79/c554a3b3dc11d5993800508b6b8b11/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 03:09:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945845#M694491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T03:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: run program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945846#M694492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Feng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all it is very starnge but SAP does not allow the combination of running a report n the background and saving it on the Presentation server.&lt;/P&gt;&lt;P&gt;Hence,whatever report has to run n the background,it has to be saved on the Application Server for which you will have to use the keywords:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open Dataset.&lt;/P&gt;&lt;P&gt;Transfer.&lt;/P&gt;&lt;P&gt;Close Dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To view the file stored,go to T-code AL11 and find the pathname.&lt;/P&gt;&lt;P&gt;In order to save this particular file on the Presentation server,you can use the T-code CG3Y and give the file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, instaed of coding for the schedulng the report in the background,you can also schedule it manually in SM37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you have any further clarifications,do let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Puneet Jhari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 04:59:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945846#M694492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T04:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: run program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945847#M694493</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;&amp;lt;b&amp;gt;This is how to do it through code&amp;lt;/b&amp;gt;&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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;by useing T-codes&amp;lt;/b&amp;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;- 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;&amp;lt;b&amp;gt;Reward if usefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 05:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945847#M694493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T05:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: run program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945848#M694494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks , experts.&lt;/P&gt;&lt;P&gt;I have tried , and I will give my method in below. Am I right ?&lt;/P&gt;&lt;P&gt;1.  At SE38 , I input my program's name ZTEST.&lt;/P&gt;&lt;P&gt;2. PROGRAM &lt;DEL&gt;&amp;gt; EXECUTE&lt;/DEL&gt;&amp;gt;BACKGROUND&lt;/P&gt;&lt;P&gt;3. At  Execute Report in Background , press 'Variants', then selection screen appears, I entered data into screen fields, and saved.&lt;/P&gt;&lt;P&gt;4. Return to Execute Report in Background, press Execute immd..&lt;/P&gt;&lt;P&gt;5. Then go to SM37, input my program's name, and press Execute. Then I can get  the status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's right. But I don't know how to get the report.&lt;/P&gt;&lt;P&gt;Can you tell me ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 07:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945848#M694494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T07:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: run program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945849#M694495</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;The steps you have mentioned are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the background job is completed, the status would be changed to COMPLETED in SM37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the check box &amp;amp; click on DISPLAY SPOOL or DISPLAY ICON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will get a list. Again click on Display.&lt;/P&gt;&lt;P&gt;Final output would be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 08:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945849#M694495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T08:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: run program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945850#M694496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much , Prashant Patil  .&lt;/P&gt;&lt;P&gt;I found the report.&lt;/P&gt;&lt;P&gt;And can you tell me the difference between these two methods?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 08:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-program-in-background/m-p/2945850#M694496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T08:45:30Z</dc:date>
    </item>
  </channel>
</rss>

