<?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: down load the data into EXCEL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-the-data-into-excel/m-p/4171226#M997248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sreenu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also faced the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use concatenate for this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following coding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_excel.
CONCATENATE  '''' it_excel-posnr INTO it_excel-posnr.
CONCATENATE  '''' it_excel-matnr INTO it_excel-matnr.
CONCATENATE  '''' it_excel-mandt INTO it_excel-mandt.
CONCATENATE  '''' it_excel-bukrs INTO it_excel-bukrs.
CONCATENATE  '''' it_excel-time INTO it_excel-time.
MODIFY it_excel.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help&lt;/P&gt;&lt;P&gt;If you found answer pls close this thread&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anbu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jul 2008 01:44:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-24T01:44:21Z</dc:date>
    <item>
      <title>down load the data into EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-the-data-into-excel/m-p/4171222#M997244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want down load the data into EXCEL ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but my  ztable consists of some fields having preceding &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZEROS. like 000111 , 000075555 in file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want download the data with these ZEROS DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 17:28:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-the-data-into-excel/m-p/4171222#M997244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T17:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: down load the data into EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-the-data-into-excel/m-p/4171223#M997245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the data in excel is going to be processed again later?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF not the only way of getting leading zeroes that i know is by concatenating a quote(') or Period(.) before the number( For GUI_DOWNLOAD) . This will also show up in the excel file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eq. your field should have '000111 intead of just 000111.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other inconvinent way is to write the output as a tab limited txt file...and then use the excel open wizard to import the txt file with the particular field as Text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 17:49:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-the-data-into-excel/m-p/4171223#M997245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T17:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: down load the data into EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-the-data-into-excel/m-p/4171224#M997246</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; There is one more way. This is from excel side. If you know the maximum length of the field then you can customize excel to display leading zeros from SAP. For customizing excel sheet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Select all the cells in the target excel file.&lt;/P&gt;&lt;P&gt;2) Goto Format-&amp;gt;Cells&lt;/P&gt;&lt;P&gt;3) In the Number tab, click Custom&lt;/P&gt;&lt;P&gt;4) In the Type , put as many zeros( like 000000000) as the maximum length of the field you are going to populate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now save the excel sheet and try downloading data from SAP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 18:08:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-the-data-into-excel/m-p/4171224#M997246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T18:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: down load the data into EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-the-data-into-excel/m-p/4171225#M997247</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;Do the following steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open your ztable. Then go to menu bar.  &lt;/P&gt;&lt;P&gt;Select System -&amp;gt; List -&amp;gt; Save -&amp;gt; Local file.&lt;/P&gt;&lt;P&gt;Select Spreadsheet radiobutton -&amp;gt; select ok.&lt;/P&gt;&lt;P&gt;Enter file name -&amp;gt; select generate button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The entire table data will be downloaded into excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the program in the following link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/download-to-excel-with-format-border-color-cell-etc.htm" target="test_blank"&gt;http://www.sap-img.com/abap/download-to-excel-with-format-border-color-cell-etc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 21:05:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-the-data-into-excel/m-p/4171225#M997247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T21:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: down load the data into EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-the-data-into-excel/m-p/4171226#M997248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sreenu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also faced the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use concatenate for this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following coding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_excel.
CONCATENATE  '''' it_excel-posnr INTO it_excel-posnr.
CONCATENATE  '''' it_excel-matnr INTO it_excel-matnr.
CONCATENATE  '''' it_excel-mandt INTO it_excel-mandt.
CONCATENATE  '''' it_excel-bukrs INTO it_excel-bukrs.
CONCATENATE  '''' it_excel-time INTO it_excel-time.
MODIFY it_excel.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help&lt;/P&gt;&lt;P&gt;If you found answer pls close this thread&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anbu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 01:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-the-data-into-excel/m-p/4171226#M997248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T01:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: down load the data into EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-the-data-into-excel/m-p/4171227#M997249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sreenu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM 'WS_DOWNLOAD' or&lt;/P&gt;&lt;P&gt;'GUI_DOWNLOAD' OR 'DOWNLOAD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While declaring the data, use 'LIKE',&lt;/P&gt;&lt;P&gt;for example, stlkn LIKE stpo-stlkn. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 02:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-the-data-into-excel/m-p/4171227#M997249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T02:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: down load the data into EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-the-data-into-excel/m-p/4171228#M997250</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;You can download your data using FM 'GUI_DOWNLOAD'.&lt;/P&gt;&lt;P&gt;here is a sample code which not only download the data but with formulas also in excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  Z123_EXCEL.&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF ls_test,&lt;/P&gt;&lt;P&gt;         line  type string,&lt;/P&gt;&lt;P&gt;       END OF ls_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : lw_test type ls_test,&lt;/P&gt;&lt;P&gt;       li_test TYPE STANDARD TABLE OF ls_test,&lt;/P&gt;&lt;P&gt;       int1 TYPE C,&lt;/P&gt;&lt;P&gt;       int2 TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : gv_tab(1) TYPE c&lt;/P&gt;&lt;P&gt;           VALUE cl_abap_char_utilities=&amp;gt;horizontal_tab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       int1 = '1'.&lt;/P&gt;&lt;P&gt;       int2 = '2'.&lt;/P&gt;&lt;P&gt;       CONCATENATE int1 gv_tab int2 gv_tab '=SUM(A1:B1)'&lt;/P&gt;&lt;P&gt;                   INTO lw_test-line  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       APPEND lw_test to li_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          filename                        = 'E:\EXCELFORM.XLS'&lt;/P&gt;&lt;P&gt;          FILETYPE                        = 'ASC'&lt;/P&gt;&lt;P&gt;         tables&lt;/P&gt;&lt;P&gt;           data_tab                        = li_test&lt;/P&gt;&lt;P&gt;                ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 03:46:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-load-the-data-into-excel/m-p/4171228#M997250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-24T03:46:40Z</dc:date>
    </item>
  </channel>
</rss>

