<?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: Background Job in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/5775488#M1307331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If the folder is on you persentation layer ie on your desktop then you cannot acheive your task by scheduling a background job because background job cannot communicate with the presentation server.&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;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2009 05:58:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-24T05:58:08Z</dc:date>
    <item>
      <title>Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/5775487#M1307330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; My requirement is to copy a file from one folder to another folder and this will be scheduled and run as a  background job. So, i am calling a function module 'WS_execute'  to run my application as well as copy the file from a source folder to destination folder. When i run this report in front end, it works well. But, when the same report is being scheduled as a background job in sm36, the file doesnot get copied to the destination folder . Can anyone please tell me the solution for this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 05:48:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/5775487#M1307330</guid>
      <dc:creator>lijisusan_mathews</dc:creator>
      <dc:date>2009-06-24T05:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/5775488#M1307331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If the folder is on you persentation layer ie on your desktop then you cannot acheive your task by scheduling a background job because background job cannot communicate with the presentation server.&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;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 05:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/5775488#M1307331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T05:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/5775489#M1307332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i think that you have to specify the file name properly.&lt;/P&gt;&lt;P&gt;try calling the function module in a report and specify all the parameters.&lt;/P&gt;&lt;P&gt;then schedule the report in background..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help you!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Punit Raval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 06:16:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/5775489#M1307332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T06:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/5775490#M1307333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suzie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             WS_EXECUTE is to Execute External Programs on Presentation Server.&lt;/P&gt;&lt;P&gt;    It will not work if you schedule this in backgroud.Usually Background job is done for Application Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More over WS_EXECUTE is OBSOLETE in ECC6 . Instead you can use &lt;STRONG&gt;GUI_EXEC&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&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;Ranjitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 06:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/5775490#M1307333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T06:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/5775491#M1307334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx for your replies.. &lt;/P&gt;&lt;P&gt;The file is not stord in the presentation server but it is in a network path which will be specified by the users.. and can I use GUI_EXEC  if I am connecting using CItrix???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suzie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2009 05:47:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/5775491#M1307334</guid>
      <dc:creator>lijisusan_mathews</dc:creator>
      <dc:date>2009-06-27T05:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/5775492#M1307335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Suzie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess what you can do is, try to write one unix command to copy the file from one folder to another folder.&lt;/P&gt;&lt;P&gt;It gets copied. Simple method to achieve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to search SDN with the keyword CALL'SYSTEM'&lt;/P&gt;&lt;P&gt;You will get lot many posts with examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a sample code for you. Try the below example first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZUNIXCOMMAND.

TYPES: BEGIN OF y_return,
       line(400) TYPE c,
       END OF y_return.

DATA:  t_return TYPE STANDARD TABLE OF y_return.

PARAMETERS: w_cmnd(256) TYPE c LOWER CASE DEFAULT 'cp /tmp/file_a.txt /bin/file_b.txt'.

CALL 'SYSTEM' ID 'COMMAND' FIELD w_cmnd
              ID 'TAB'     FIELD t_return[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Babu Kilari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2009 15:07:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/5775492#M1307335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-27T15:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/5775493#M1307336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx a lot.. achieved the result using a slightly different manner.. did it using Dos command and executing it using statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 13:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/5775493#M1307336</guid>
      <dc:creator>lijisusan_mathews</dc:creator>
      <dc:date>2009-09-23T13:25:27Z</dc:date>
    </item>
  </channel>
</rss>

