<?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: Trigger File Generation to a Server from Web Dynpro Application in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-file-generation-to-a-server-from-web-dynpro-application/m-p/4987684#M1161933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well GUI_DOWNLOAD and server, do not go well together. When trying do download to server try using&lt;/P&gt;&lt;P&gt;OPEN DATASET.&lt;/P&gt;&lt;P&gt;TRANSFER DATASET&lt;/P&gt;&lt;P&gt;CLOSE DATASET.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2009 13:19:20 GMT</pubDate>
    <dc:creator>Sm1tje</dc:creator>
    <dc:date>2009-01-05T13:19:20Z</dc:date>
    <item>
      <title>Trigger File Generation to a Server from Web Dynpro Application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-file-generation-to-a-server-from-web-dynpro-application/m-p/4987682#M1161931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi Everybody! Hope you had a good new years eve &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to generate a File on a Server outgoing from Web Dynpro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use GUI_DOWNLOAD. But as I couldn't use the GUI_DOWNLOAD from the Web Dynpro, I wrote a Report "ZCMI_EXPORT_FILE" that generates a Text-File. When I start the Report by myself, the file gets generated. All fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be able to generate the File from Web Dynpro, I created a Batch Input Function Module, that I call in the Web Dynpro. The File is not created and it does not show any errors. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea how i can get this working? I'd also be happy with a different approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards and Thanks,&lt;/P&gt;&lt;P&gt;Steffen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REPORT that is called with Batch Input from Web Dynpro:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'ZFM_GENERATE_EXPORT'
  exporting
    it_detail_record     = lt_records
    is_export            = gs_export
  importing
    ev_string            = gs_export-document
    et_dataset           = data_tab
  exceptions
    parameter_is_initial = 1
    others               = 2.
if sy-subrc &amp;lt;&amp;gt; 0.
endif.

concatenate '\\SERVER\EXPORT\' gs_export-filename into lv_filename.

call function 'GUI_DOWNLOAD'
  exporting
    filename                = lv_filename
  tables
    data_tab                = data_tab
  exceptions
    file_write_error        = 1
    no_batch                = 2
    gui_refuse_filetransfer = 3
    invalid_type            = 4
    others                  = 5.

if sy-subrc &amp;lt;&amp;gt; 0.
  exit.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 13:04:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-file-generation-to-a-server-from-web-dynpro-application/m-p/4987682#M1161931</guid>
      <dc:creator>alpaca</dc:creator>
      <dc:date>2009-01-05T13:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger File Generation to a Server from Web Dynpro Application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-file-generation-to-a-server-from-web-dynpro-application/m-p/4987683#M1161932</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;GUI_DOWNLOAD does not get's executed in the Backgroud.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no way to do it as a background job.. create the folder.. transfer the file to the application server in the backgorund using OPEN DATASET... use the tcode CG3Y to download the file from the app server to your folder..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 13:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-file-generation-to-a-server-from-web-dynpro-application/m-p/4987683#M1161932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T13:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger File Generation to a Server from Web Dynpro Application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-file-generation-to-a-server-from-web-dynpro-application/m-p/4987684#M1161933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well GUI_DOWNLOAD and server, do not go well together. When trying do download to server try using&lt;/P&gt;&lt;P&gt;OPEN DATASET.&lt;/P&gt;&lt;P&gt;TRANSFER DATASET&lt;/P&gt;&lt;P&gt;CLOSE DATASET.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 13:19:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-file-generation-to-a-server-from-web-dynpro-application/m-p/4987684#M1161933</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-01-05T13:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger File Generation to a Server from Web Dynpro Application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-file-generation-to-a-server-from-web-dynpro-application/m-p/4987685#M1161934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! Thanks for the quick answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the TRANSFER Statment work when it is called in the background? For example by a scheduled job or from Web Dynpro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Steffen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 13:28:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-file-generation-to-a-server-from-web-dynpro-application/m-p/4987685#M1161934</guid>
      <dc:creator>alpaca</dc:creator>
      <dc:date>2009-01-05T13:28:54Z</dc:date>
    </item>
  </channel>
</rss>

