<?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: Program not working in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506859#M1654551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you issue message type E in a background job, then the job is cancelled. Obviously, the directory your writing to doesn't exist. Change your program, so that just before you open the dataset, use a message type I with the dataset name. That way, you'll be able to see in the log what dataset you're attempting to write to. Also, the OPEN DATASET has a an addition to trap the message from the operating system. Look at the syntax through F1 help, and use that addition. ( MESSAGE msg )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess would be the user you're running the background job under has insufficient privilege.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Feb 2012 09:06:38 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2012-02-14T09:06:38Z</dc:date>
    <item>
      <title>Program not working in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506851#M1654543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a Z program that uses open dataset stmts that writes the file out into a specified directory in the appl server path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The prgram runs fine in foreground.  But when scheduled in background it fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The job logs are : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dierctory does not exist  &lt;/P&gt;&lt;P&gt;Job cancelled after system exception ERROR_MESSAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The destination path can read, write and edit files in the directory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried to create .txt file &amp;amp; also without any extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone suggest me what i am doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 16:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506851#M1654543</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2012-02-09T16:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Program not working in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506852#M1654544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Goto SM37,&lt;/P&gt;&lt;P&gt;select the job and type JDBG in teh command box on top left. this will take you to debug mode, debug you program here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 17:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506852#M1654544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-09T17:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Program not working in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506853#M1654545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on your error message, one would ask what is the directory (folder) named supplied in background, since it does not exist?  How is this directory path different from what is supplied when the program executes in foreground?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 17:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506853#M1654545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-09T17:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Program not working in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506854#M1654546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarla,&lt;/P&gt;&lt;P&gt;What is the tcode ? JDBG does not exist it seems.&lt;/P&gt;&lt;P&gt;If not, what is the sequence to execute this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 20:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506854#M1654546</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2012-02-09T20:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Program not working in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506855#M1654547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;            May be you are not doing anything wrong, check the path in APP server, use T-Code AL11 for the same ensure program is picking the correct path. If that is there, check "authority-check dataset" this checks whether your user id have authorization to write to application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : DATA SET works both on foreground and background, so you should not worry about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Tapodipta Khan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 22:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506855#M1654547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-09T22:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Program not working in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506856#M1654548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Tarla,&lt;/P&gt;&lt;P&gt;&amp;gt; What is the tcode ? JDBG does not exist it seems.&lt;/P&gt;&lt;P&gt;&amp;gt; If not, what is the sequence to execute this .&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks&lt;/P&gt;&lt;P&gt;&amp;gt; Ricky&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this wiki on how to use jdbg&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=156697598" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=156697598&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 10:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506856#M1654548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-10T10:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Program not working in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506857#M1654549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tarla,&lt;/P&gt;&lt;P&gt;I am still unable to get the tcode JDBG.&lt;/P&gt;&lt;P&gt;It gives me the msg  "Transaction JDBG does not exist"  on the status bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 23:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506857#M1654549</guid>
      <dc:creator>ricky_shaw</dc:creator>
      <dc:date>2012-02-13T23:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Program not working in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506858#M1654550</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;JDBG is not Transaction, It will work in below process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. GOTO t-code  SM37 And give your JOB Details like name.. then Click on Execute.&lt;/P&gt;&lt;P&gt;2. Now YOur in Job Overview Screen Select your Job (any one check Box) and Now Enter JDBG in Command Field(Transaction field) , then Program automatically start in Debugging Mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Actually JDBG is used to DEbug Bacground job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 07:16:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506858#M1654550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T07:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Program not working in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506859#M1654551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you issue message type E in a background job, then the job is cancelled. Obviously, the directory your writing to doesn't exist. Change your program, so that just before you open the dataset, use a message type I with the dataset name. That way, you'll be able to see in the log what dataset you're attempting to write to. Also, the OPEN DATASET has a an addition to trap the message from the operating system. Look at the syntax through F1 help, and use that addition. ( MESSAGE msg )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess would be the user you're running the background job under has insufficient privilege.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 09:06:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506859#M1654551</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2012-02-14T09:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Program not working in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506860#M1654552</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;Has anyone got any solution to this problem. I'm able to create forlder and write some files using ABAP program in foreground process and also in background with JDBG but the same doesnt happen when run in backgroud. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user id used to run the program has SAP ALL access so doesnt seem to be an&amp;nbsp; authorisation issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using function module TMP_GUI_CREATE_DIRECTORY to create folder and &lt;/P&gt;&lt;P&gt;&amp;nbsp; GUI_DOWNLOAD to write files in designated folders. The program doesnt have any BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 13:19:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-not-working-in-background/m-p/8506860#M1654552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-28T13:19:30Z</dc:date>
    </item>
  </channel>
</rss>

