<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-problem/m-p/2701991#M625775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nawanandana,&lt;/P&gt;&lt;P&gt;well, function GUI_UPLOAD will not work as a background process (nor will GUI_DOWNLOAD), because these functions need the presentation server to be available, in order to get/put the file. Instead, use OPEN/CLOSE DATASET or FTPs if the source file is allocated in some cluster available thru FTP (not your local drives).&lt;/P&gt;&lt;P&gt;I hope it helps. Best regards,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Aug 2007 07:28:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-21T07:28:57Z</dc:date>
    <item>
      <title>background job problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-problem/m-p/2701990#M625774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai&lt;/P&gt;&lt;P&gt;i create the data upload program but when i run it as background job its not wking... hoh should i fix that problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use the function GUI_UPLOAD....to upload the data ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_data_from_as400_file .&lt;/P&gt;&lt;P&gt;v_filename = dataset.&lt;/P&gt;&lt;P&gt;call function 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;filename = v_filename&lt;/P&gt;&lt;P&gt;filetype = 'ASC'&lt;/P&gt;&lt;P&gt;has_field_separator = 'X'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;data_tab = it_as400&lt;/P&gt;&lt;P&gt;exceptions "+&lt;/P&gt;&lt;P&gt;file_open_error = 1 "+&lt;/P&gt;&lt;P&gt;file_read_error = 2 "+&lt;/P&gt;&lt;P&gt;no_batch = 3 "+&lt;/P&gt;&lt;P&gt;gui_refuse_filetransfer = 4 "+&lt;/P&gt;&lt;P&gt;invalid_type = 5 "+&lt;/P&gt;&lt;P&gt;no_authority = 6 "+&lt;/P&gt;&lt;P&gt;unknown_error = 7 "+&lt;/P&gt;&lt;P&gt;bad_data_format = 8 "+&lt;/P&gt;&lt;P&gt;header_not_allowed = 9 "+&lt;/P&gt;&lt;P&gt;separator_not_allowed = 10 "+&lt;/P&gt;&lt;P&gt;header_too_long = 11 "+&lt;/P&gt;&lt;P&gt;unknown_dp_error = 12 "+&lt;/P&gt;&lt;P&gt;access_denied = 13 "+&lt;/P&gt;&lt;P&gt;dp_out_of_memory = 14 "+&lt;/P&gt;&lt;P&gt;disk_full = 15 "+&lt;/P&gt;&lt;P&gt;dp_timeout = 16 "+&lt;/P&gt;&lt;P&gt;others = 17. "+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-subrc.&lt;/P&gt;&lt;P&gt;when '1'. "+&lt;/P&gt;&lt;P&gt;write: /'ERROR WHILE OPENING THE FILE'.&lt;/P&gt;&lt;P&gt;when '2'. "+&lt;/P&gt;&lt;P&gt;write: /'ERROR WHILE READING THE FILE'.&lt;/P&gt;&lt;P&gt;when '3'. "+&lt;/P&gt;&lt;P&gt;write: /'NO BATCH'.&lt;/P&gt;&lt;P&gt;when '4'. "+&lt;/P&gt;&lt;P&gt;write: /'ERROR IN FILE TRANSFERING'.&lt;/P&gt;&lt;P&gt;when '5'. "+&lt;/P&gt;&lt;P&gt;write: /'INVALID TYPE'.&lt;/P&gt;&lt;P&gt;when '6'. "+&lt;/P&gt;&lt;P&gt;write: /'NO AUTHORITY TO RUN THIS PROGRAM'.&lt;/P&gt;&lt;P&gt;when '7'. "+&lt;/P&gt;&lt;P&gt;write: /'UNKNOWN ERROR'.&lt;/P&gt;&lt;P&gt;when '8'. "+&lt;/P&gt;&lt;P&gt;write: /'BAD DATA FORMAT'.&lt;/P&gt;&lt;P&gt;when '9'. "+&lt;/P&gt;&lt;P&gt;write: /'HEADER NOT ALLOWED'.&lt;/P&gt;&lt;P&gt;when '10'. "+&lt;/P&gt;&lt;P&gt;write: /'SEPERATOR NOT ALLOWED'.&lt;/P&gt;&lt;P&gt;when '11'. "+&lt;/P&gt;&lt;P&gt;write: /'TOO LONG HEADER'.&lt;/P&gt;&lt;P&gt;when '12'. "+&lt;/P&gt;&lt;P&gt;write: /'UNKNOWN DP ERROR'.&lt;/P&gt;&lt;P&gt;when '13'. "+&lt;/P&gt;&lt;P&gt;write: /'ACCESS DENIED'.&lt;/P&gt;&lt;P&gt;when '14'. "+&lt;/P&gt;&lt;P&gt;write: /'DP OUT OF MEMORY'.&lt;/P&gt;&lt;P&gt;when '15'. "+&lt;/P&gt;&lt;P&gt;write: /'DISK IS FULL'.&lt;/P&gt;&lt;P&gt;when '16'. "+&lt;/P&gt;&lt;P&gt;write: /'DP TIME OUT'.&lt;/P&gt;&lt;P&gt;when '17'. "+&lt;/P&gt;&lt;P&gt;write: /'OTHERS'.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;stop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endform. " get_data_from_as400_file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 07:04:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-problem/m-p/2701990#M625774</guid>
      <dc:creator>Nawanandana</dc:creator>
      <dc:date>2007-08-21T07:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: background job problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-problem/m-p/2701991#M625775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nawanandana,&lt;/P&gt;&lt;P&gt;well, function GUI_UPLOAD will not work as a background process (nor will GUI_DOWNLOAD), because these functions need the presentation server to be available, in order to get/put the file. Instead, use OPEN/CLOSE DATASET or FTPs if the source file is allocated in some cluster available thru FTP (not your local drives).&lt;/P&gt;&lt;P&gt;I hope it helps. Best regards,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 07:28:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-problem/m-p/2701991#M625775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-21T07:28:57Z</dc:date>
    </item>
  </channel>
</rss>

