<?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: export to excel, notepad in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-notepad/m-p/1974120#M399380</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;PRE&gt;&lt;CODE&gt;PARAMETERS: R1 RADIOBUTTON GROUP RAD1,
                         R2 RADIOBUTTON GROUP RAD1 DEFAULT 'X'.

*   Download internal table to presentation server file(PC)

  DATA: ld_filename TYPE string,
* Pre version 4.7 declaration e_file like rlgrap-filename.

  DATA: begin of it_datatab occurs 0,
  row(500) type c,
 end of it_datatab.


IF R1 = 'X'.
ld_filename = 'c://doc_________--/test.xls'.    " For Excel sheet
ELSEIF R2 = 'X'.
ld_filename = 'c://doc_________--/test.txt'.    " For Text file
ENDIF.


  call function 'GUI_DOWNLOAD'
       exporting
            filename         = ld_filename
            filetype         = 'ASC'
       tables
            data_tab         = it_datatab[]
       exceptions
            file_open_error  = 1
            file_write_error = 2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;            others           = 3.&lt;/P&gt;&lt;P&gt;&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>Wed, 28 Feb 2007 15:00:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-28T15:00:41Z</dc:date>
    <item>
      <title>export to excel, notepad</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-notepad/m-p/1974118#M399378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a selection screen. The user will give some input and he should also select a mode in which he wants the results, say excel or notepad. According to that i should give the output in excel or notepad. Can someone give me idea on how to go about this. Any sample code will be of great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 14:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-notepad/m-p/1974118#M399378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T14:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: export to excel, notepad</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-notepad/m-p/1974119#M399379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CHECK FM WS_EXCEL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&amp;lt; JAcek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 14:47:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-notepad/m-p/1974119#M399379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T14:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: export to excel, notepad</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-notepad/m-p/1974120#M399380</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;PRE&gt;&lt;CODE&gt;PARAMETERS: R1 RADIOBUTTON GROUP RAD1,
                         R2 RADIOBUTTON GROUP RAD1 DEFAULT 'X'.

*   Download internal table to presentation server file(PC)

  DATA: ld_filename TYPE string,
* Pre version 4.7 declaration e_file like rlgrap-filename.

  DATA: begin of it_datatab occurs 0,
  row(500) type c,
 end of it_datatab.


IF R1 = 'X'.
ld_filename = 'c://doc_________--/test.xls'.    " For Excel sheet
ELSEIF R2 = 'X'.
ld_filename = 'c://doc_________--/test.txt'.    " For Text file
ENDIF.


  call function 'GUI_DOWNLOAD'
       exporting
            filename         = ld_filename
            filetype         = 'ASC'
       tables
            data_tab         = it_datatab[]
       exceptions
            file_open_error  = 1
            file_write_error = 2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;            others           = 3.&lt;/P&gt;&lt;P&gt;&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>Wed, 28 Feb 2007 15:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-to-excel-notepad/m-p/1974120#M399380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T15:00:41Z</dc:date>
    </item>
  </channel>
</rss>

