<?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: Using GUI_DOWNLOAD Function module in Batch in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636859#M283923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I am doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET p_file FOR OUTPUT IN TEXT MODE&lt;/P&gt;&lt;P&gt;                                   ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  Loop at te070 into se070.&lt;/P&gt;&lt;P&gt;    Transfer se070 to p_file.&lt;/P&gt;&lt;P&gt;  Endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close dataset p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This creates a file in the app server in Batch and I will have to run a program online to dowload the contents from the server. My requirement is that I need to download the contents in Batch to my local file. Is this possible by any means? (Can we create a windows executable file?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Oct 2006 06:50:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-25T06:50:45Z</dc:date>
    <item>
      <title>Using GUI_DOWNLOAD Function module in Batch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636850#M283914</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;I use the subject function module to load the data into a .xls file. I find no error while I run my program directly. But when I run it in Background it throws an unknown_error. Tried to debug, while in background (by introducing a infinite loop and releasing from the loop with the exit condition). I couldn't get into the function module to debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Needed information on how else can I find what the error is and is there any other function module (other than ws_download and gui_download) which I could use and find no errors while running in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aaron.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------" /&gt;&lt;P&gt;This is what I am doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET p_file FOR OUTPUT IN TEXT MODE&lt;/P&gt;&lt;P&gt;ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;Loop at te070 into se070.&lt;/P&gt;&lt;P&gt;Transfer se070 to p_file.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close dataset p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This creates a file in the app server in Batch and I will have to run a program online to dowload the contents from the server. My requirement is that I need to download the contents in Batch to my local file. Is this possible by any means? (Can we create a windows executable file (.EXE) and use it in a windows batch file (.BAT)?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Aaron Anthony&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 11:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636850#M283914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T11:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using GUI_DOWNLOAD Function module in Batch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636851#M283915</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;That fm can't work in background&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 11:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636851#M283915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T11:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using GUI_DOWNLOAD Function module in Batch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636852#M283916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GUI_DOWNLOAD Function module can't be used in Background. When the program is executed in background, store all the data in Application server, write a sample program to take that data from application server and writes to presentation server and execute that program online.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 11:42:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636852#M283916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T11:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using GUI_DOWNLOAD Function module in Batch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636853#M283917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;gui_download cannot work in background.&lt;/P&gt;&lt;P&gt;There is a tedious workaround which may help you.&lt;/P&gt;&lt;P&gt;But just think if it is worth the effort.&lt;/P&gt;&lt;P&gt;This link has the workaround:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2&lt;/A&gt;&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>Thu, 19 Oct 2006 11:55:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636853#M283917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T11:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using GUI_DOWNLOAD Function module in Batch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636854#M283918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max/Prakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there not a way where I could realize this in background process (move data to a .xls file)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aaron.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 11:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636854#M283918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T11:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using GUI_DOWNLOAD Function module in Batch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636855#M283919</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;U can only download the file in a path of application server and then move that file from application to your pc or other destination of presentation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your file has a simple structure, you can download a file in CSV format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 11:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636855#M283919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T11:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using GUI_DOWNLOAD Function module in Batch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636856#M283920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GUI_DOWNLOAD doesnt work in background mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to do transfer in background mode, u need to transfer that file to application server and then read from there by transfering it to presentation server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP/4  provides following statements for handling files on application server:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET&lt;/P&gt;&lt;P&gt;CLOSE DATASET&lt;/P&gt;&lt;P&gt;DELETE DATASET&lt;/P&gt;&lt;P&gt;READ DATASET&lt;/P&gt;&lt;P&gt;TRANSFER&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>Thu, 19 Oct 2006 12:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636856#M283920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T12:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using GUI_DOWNLOAD Function module in Batch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636857#M283921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vibha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET&lt;/P&gt;&lt;P&gt;CLOSE DATASET&lt;/P&gt;&lt;P&gt;DELETE DATASET&lt;/P&gt;&lt;P&gt;READ DATASET&lt;/P&gt;&lt;P&gt;TRANSFER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helps me write in the application server. I will have to write an online program to download its contents locally. Is there any way where I can download locally using Batch? (Is it possible for me to create an (windows) .exe file for my ABAP program? and then run this using the .BAT file?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 06:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636857#M283921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-25T06:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using GUI_DOWNLOAD Function module in Batch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636858#M283922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open Dataset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  catch system-exceptions DATASET_CANT_OPEN = 8.&lt;/P&gt;&lt;P&gt;    open dataset UNIX_FILE for output in text mode encoding default.&lt;/P&gt;&lt;P&gt;  endcatch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write to Dataset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at IT_STR into IS_STR.&lt;/P&gt;&lt;P&gt;    catch system-exceptions DATASET_NOT_OPEN = 0  .&lt;/P&gt;&lt;P&gt;      transfer IS_STR-STR to UNIX_FILE.&lt;/P&gt;&lt;P&gt;    endcatch.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if SY-SUBRC eq 0.&lt;/P&gt;&lt;P&gt;    message S138(ZSM) with 'Data Downloaded to Unix File'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Close Dataset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  close dataset UNIX_FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 06:43:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636858#M283922</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-10-25T06:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using GUI_DOWNLOAD Function module in Batch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636859#M283923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I am doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET p_file FOR OUTPUT IN TEXT MODE&lt;/P&gt;&lt;P&gt;                                   ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  Loop at te070 into se070.&lt;/P&gt;&lt;P&gt;    Transfer se070 to p_file.&lt;/P&gt;&lt;P&gt;  Endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close dataset p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This creates a file in the app server in Batch and I will have to run a program online to dowload the contents from the server. My requirement is that I need to download the contents in Batch to my local file. Is this possible by any means? (Can we create a windows executable file?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 06:50:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636859#M283923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-25T06:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using GUI_DOWNLOAD Function module in Batch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636860#M283924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it can be done, but shud be a part of the BASIS team. Talk to ur basis people, might help u or give in some inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 07:27:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-gui-download-function-module-in-batch/m-p/1636860#M283924</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-10-25T07:27:08Z</dc:date>
    </item>
  </channel>
</rss>

