<?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: Write data to Excel in background mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209044#M133018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is. But you know how these user are, they do not want to take the pain to even format it while opening the file in Excel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I awarded points for all your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Mar 2006 15:51:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-29T15:51:35Z</dc:date>
    <item>
      <title>Write data to Excel in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209037#M133011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to write the data to Excel file when I run the report in background mode. Which function module should I use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 15:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209037#M133011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-29T15:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Write data to Excel in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209038#M133012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can write it to the application server, but not the frontend.  You must use the DATASET statements.  Do F1 help on DATASET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich HEilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 15:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209038#M133012</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-03-29T15:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Write data to Excel in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209039#M133013</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;try to download it to application server and then download it later.&lt;/P&gt;&lt;P&gt;you need to use open dataset and transfer , close data set. since frontend download is not possible in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 15:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209039#M133013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-29T15:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Write data to Excel in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209040#M133014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keep in mind to store the file in CSV format ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 15:19:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209040#M133014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-29T15:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Write data to Excel in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209041#M133015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually like to write as a comma delimited file,  here is a sample program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.


parameters:
            d2 type localfile default '/usr/sap/TST/SYS/Data2.csv'.

data: it001 type table of t001 with header line.
data: iflat type table of string with header line.
field-symbols: &amp;lt;fs&amp;gt;.


start-of-selection.

* Get data
  select * into table it001 from t001.


* Put data into flat structure with comma delimit
  loop at it001.
    clear iflat.
    do.
      assign component sy-index of structure it001 to &amp;lt;fs&amp;gt;.
      if sy-subrc &amp;lt;&amp;gt; 0.
        exit.
      endif.
      if sy-index = 1.
        iflat = &amp;lt;fs&amp;gt;.
      else.
        concatenate iflat &amp;lt;fs&amp;gt; into iflat separated by ','.
      endif.
    enddo.
    append iflat.
  endloop.


* Download to app server
  open dataset d2 for output in text mode.
  loop at iflat.
    transfer iflat to d2.
  endloop.
  close dataset d2.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 15:24:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209041#M133015</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-03-29T15:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Write data to Excel in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209042#M133016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I can write it to the server as a csv/flat file. Its an ALV report and if user runs it in foreground, it times out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was wondering if it can be written to Excel file. Sounds like it cannot be!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sanju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 15:32:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209042#M133016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-29T15:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Write data to Excel in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209043#M133017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Csv File can be viewed in excel, is this not good enough?&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 15:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209043#M133017</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-03-29T15:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Write data to Excel in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209044#M133018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is. But you know how these user are, they do not want to take the pain to even format it while opening the file in Excel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I awarded points for all your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 15:51:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209044#M133018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-29T15:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Write data to Excel in background mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209045#M133019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you run the program above, and then double click on the file when its created, do you have to format it?   I don't, looks like a regular excel file for me.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 15:53:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-excel-in-background-mode/m-p/1209045#M133019</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-03-29T15:53:10Z</dc:date>
    </item>
  </channel>
</rss>

