<?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: error while execution in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928405#M384913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI_UPLOAD &amp;amp; GUI_DOWNLOAD works only in Foreground not in backgroung. In background you can download the data to Application server using OPEN DATASET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Feb 2007 14:05:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-20T14:05:10Z</dc:date>
    <item>
      <title>error while execution in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928400#M384908</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;when iam using file download function , it is working fine in foreground but giving &lt;/P&gt;&lt;P&gt;error dump while executing in background&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reply , its urgent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 13:52:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928400#M384908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T13:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: error while execution in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928401#M384909</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;Are U downloading to APllication server. Since when a report is executed in Batch then the file path should be the application server path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u give the local presentation then the SAP will definely throw dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 13:55:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928401#M384909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T13:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: error while execution in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928402#M384910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swati,&lt;/P&gt;&lt;P&gt;   If you are using GUI_DOWNLOAD fm to download, it will dump.&lt;/P&gt;&lt;P&gt;You cannot communicate with presentation server in background mode.&lt;/P&gt;&lt;P&gt;Better download it to an application server and later you can use CG3Z transaction to move the file.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 13:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928402#M384910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T13:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: error while execution in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928403#M384911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swati,&lt;/P&gt;&lt;P&gt;We can not use the WS_DOWNLAOD, GUI_DOWNLOAD, WS_UPLOAD and GUI_UPLOAD function modules in the Background, it always gives the error, so better to Download it to Unix server and later read it and download to your Desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 13:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928403#M384911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T13:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: error while execution in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928404#M384912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Download function doesnt work in background mode. When u run a report in background mode, it runs on application server and download function tries to download teh same on presentation server. Since presentation server is not available dump is produced.Use open dataset, close dataset command and try to download the data onto application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 13:59:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928404#M384912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T13:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: error while execution in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928405#M384913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI_UPLOAD &amp;amp; GUI_DOWNLOAD works only in Foreground not in backgroung. In background you can download the data to Application server using OPEN DATASET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928405#M384913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T14:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: error while execution in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928406#M384914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Check this link it will solves ur problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/ab004.htm" target="test_blank"&gt;http://www.sap-img.com/ab004.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;i am pasting the same information below......&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI_* WS_* Function In Background, CSV Upload &lt;/P&gt;&lt;P&gt;GUI_* and WS_* function modules do not work in background &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When scheduling a job in the background the appropriate statement to read in your file is OPEN DATASET, and the file must be on the file system that the SAP server can see. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At anytime, a user can switch of the Personal Computers even though the job is still running in the background.  Therefore GUI_* and WS_* function modules are not designed to work in that way, as they need to access your personal computer  file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To choose the correct download method to used, you can check the value of SY-BATCH in your code, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is 'X' use OPEN DATASET and if it is ' ' use WS_UPLOAD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Open dataset for reading &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: &lt;/P&gt;&lt;P&gt;  dsn(20) VALUE '/usr/test.dat', &lt;/P&gt;&lt;P&gt;  rec(80). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET dsn FOR INPUT IN TEXT MODE. &lt;/P&gt;&lt;P&gt;IF sy-subrc = 0. &lt;/P&gt;&lt;P&gt;  DO. &lt;/P&gt;&lt;P&gt;    READ DATASET dsn INTO rec. &lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;      EXIT. &lt;/P&gt;&lt;P&gt;    ELSE. &lt;/P&gt;&lt;P&gt;      WRITE / rec. &lt;/P&gt;&lt;P&gt;    ENDIF. &lt;/P&gt;&lt;P&gt;  ENDDO. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;CLOSE DATASET dsn. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Open dataset for writing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA rec(80). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET dsn FOR OUTPUT IN TEXT MODE. &lt;/P&gt;&lt;P&gt;  TRANSFER rec TO '/usr/test.dat'. &lt;/P&gt;&lt;P&gt;CLOSE DATASET dsn. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the difference when we use upload, ws_upload, gui_upload function modules? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPLOAD, WS_UPLOAD, GUI_UPLOAD, are used in BDC concepts.  ie., Batch Data Communication. &lt;/P&gt;&lt;P&gt;Batch Data Conversion is a concept where user can transfer the Data from non SAP to SAP R/3.  So , in these various Function Modules are used. &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;UPLOAD---  upload a file to the presentation server (PC) &lt;/P&gt;&lt;P&gt;WS_UPLOAD----    Load Files from the Presentation Server to Internal ABAP Tables. &lt;/P&gt;&lt;P&gt;WS means Work Station. &lt;/P&gt;&lt;P&gt;This is used upto SAP 4.6 version. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI_UPLOAD-------    Replaces WS_UPLOAD. Upoad file from presentation server to the app server.  From 4.7 SAP version it is replaced. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to Upload csv file to SAP? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Common File Download Upload Questions: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How  you upload the data from text file to sap internal table?  From my knowledge its by upload or gui_upload.  &lt;/P&gt;&lt;P&gt;How you download the data from sap internal table to text file? &lt;/P&gt;&lt;P&gt;How  you upload the data from xls (excel) file to sap internal table how you download the data from sap internal table to xls(excel) file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can upload data from presentation server to an internal table using gui_upload. Use gui_download to download from internal table to flat file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use fm ALSM_EXCEL_TO_INTERNAL_TABLE to upload data frm excel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use function module GUI_UPLOAD &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FILETYPE refer to the type of file format you need: For e.g 'WK1' - Excel format , 'ASC' - Text Format etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                      = 'C:\test.csv'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = itab&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928406#M384914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T14:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: error while execution in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928407#M384915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swati,&lt;/P&gt;&lt;P&gt;  File download functionality would definitely dump in background. This happens because it has screens which needs user's interaction. &lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;But if tou want to escape the DUMP, please write your FILE DOWNLOAD functionality inside the IF BLOCK with condition:-&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IF SY-BATCH NE 'X'.&lt;/P&gt;&lt;P&gt;*File Download functionality..............&lt;/P&gt;&lt;P&gt;ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Please reward points if you feel satisfied with the solution provided here :).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;RAVI &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:57:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-execution-in-background/m-p/1928407#M384915</guid>
      <dc:creator>raviprakash</dc:creator>
      <dc:date>2007-02-20T14:57:24Z</dc:date>
    </item>
  </channel>
</rss>

