<?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: How to down load data from table maintainance screen to excel ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-down-load-data-from-table-maintainance-screen-to-excel/m-p/3745956#M901307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dharma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3rd post on the same query!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have answered the previous one. Please refer to that, and kindly close this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Rekha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 May 2008 07:01:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-05T07:01:40Z</dc:date>
    <item>
      <title>How to down load data from table maintainance screen to excel ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-down-load-data-from-table-maintainance-screen-to-excel/m-p/3745950#M901301</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;Could you please tell me how to down load data from table maintainance screen to excel ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SM30 -&amp;gt; Ztable -&amp;gt; display--from here user wants  to down load the data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we need to code that functionality , how we will do that? , any sample code is appreciable . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance ,&lt;/P&gt;&lt;P&gt;Dharma .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 11:15:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-down-load-data-from-table-maintainance-screen-to-excel/m-p/3745950#M901301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T11:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to down load data from table maintainance screen to excel ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-down-load-data-from-table-maintainance-screen-to-excel/m-p/3745951#M901302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dharma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to satisfy your requirement first you must define a table maintenance generator.after that you have two chances.one is already there in the tablemaintenance screen you have a facility to download data into excel ,another one is customizing the screen means providing your own button and code.&lt;/P&gt;&lt;P&gt;for first one follow these steps.&lt;/P&gt;&lt;P&gt;1) go to sm30&lt;/P&gt;&lt;P&gt;2)open the table in display mode&lt;/P&gt;&lt;P&gt;3)press shift+ f1.it will show you a screen with values in a in grid view.&lt;/P&gt;&lt;P&gt;4)then press ctrl&lt;EM&gt;shift&lt;/EM&gt;F7(direct download to excel)&lt;/P&gt;&lt;P&gt;  or&lt;/P&gt;&lt;P&gt;ctrl + shift + F9&lt;/P&gt;&lt;P&gt;5)it will show you a modaldialog in which you have to select to which format means whether to excel,word or html you want  to download the data.&lt;/P&gt;&lt;P&gt;6)select spreadsheet and click on ok&lt;/P&gt;&lt;P&gt;7)it will ask you path and file name.&lt;/P&gt;&lt;P&gt;8)after giving both click on generate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for customizing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow these steps carefully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)go to se11&lt;/P&gt;&lt;P&gt;2)type the tablename and click on display.&lt;/P&gt;&lt;P&gt;3)go to utilities-&amp;gt;tablemaintenance&lt;/P&gt;&lt;P&gt;4)you will get tablemaintenance screen.in that double click on&lt;/P&gt;&lt;P&gt;overview screen.&lt;/P&gt;&lt;P&gt;5)you will go to the tablemaintenance screen program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there in the PAI module type MODULE DOWNLOADEXCEL.&lt;/P&gt;&lt;P&gt;and then double click on DOWNLOADEXCEL.it will show a message ,click tickmark then it will create a include for your module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that module write the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of itab occurs o.&lt;/P&gt;&lt;P&gt;       include structure ztable.    "ztable is the table for which you want to do all these&lt;/P&gt;&lt;P&gt;data:end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt; when 'SHOW'.   "fcode for display button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get the data from dbtable to the internal table. "its not code what you have to do&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                        = 'c:\test.xls'&lt;/P&gt;&lt;P&gt;   FILETYPE                        = 'ASC'&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    data_tab                        = itab&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FILE_WRITE_ERROR                = 1&lt;/P&gt;&lt;P&gt;   NO_BATCH                        = 2&lt;/P&gt;&lt;P&gt;   GUI_REFUSE_FILETRANSFER         = 3&lt;/P&gt;&lt;P&gt;   INVALID_TYPE                    = 4&lt;/P&gt;&lt;P&gt;   NO_AUTHORITY                    = 5&lt;/P&gt;&lt;P&gt;   UNKNOWN_ERROR                   = 6&lt;/P&gt;&lt;P&gt;   HEADER_NOT_ALLOWED              = 7&lt;/P&gt;&lt;P&gt;   SEPARATOR_NOT_ALLOWED           = 8&lt;/P&gt;&lt;P&gt;   FILESIZE_NOT_ALLOWED            = 9&lt;/P&gt;&lt;P&gt;   HEADER_TOO_LONG                 = 10&lt;/P&gt;&lt;P&gt;   DP_ERROR_CREATE                 = 11&lt;/P&gt;&lt;P&gt;   DP_ERROR_SEND                   = 12&lt;/P&gt;&lt;P&gt;   DP_ERROR_WRITE                  = 13&lt;/P&gt;&lt;P&gt;   UNKNOWN_DP_ERROR                = 14&lt;/P&gt;&lt;P&gt;   ACCESS_DENIED                   = 15&lt;/P&gt;&lt;P&gt;   DP_OUT_OF_MEMORY                = 16&lt;/P&gt;&lt;P&gt;   DISK_FULL                       = 17&lt;/P&gt;&lt;P&gt;   DP_TIMEOUT                      = 18&lt;/P&gt;&lt;P&gt;   FILE_NOT_FOUND                  = 19&lt;/P&gt;&lt;P&gt;   DATAPROVIDER_EXCEPTION          = 20&lt;/P&gt;&lt;P&gt;   CONTROL_FLUSH_ERROR             = 21&lt;/P&gt;&lt;P&gt;   OTHERS                          = 22&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;better to use existed one.if you have any doubts let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 11:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-down-load-data-from-table-maintainance-screen-to-excel/m-p/3745951#M901302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T11:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to down load data from table maintainance screen to excel ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-down-load-data-from-table-maintainance-screen-to-excel/m-p/3745952#M901303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dharma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a function module called gui_download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use that in an ABAP program and download the data to excel sheet.&lt;/P&gt;&lt;P&gt;Give the values like file name, separator and table name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The required table is to be copied to an internal table and this is to be used as table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you want more help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I shall give a sample code as soon as possible if u want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if this finds helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 11:44:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-down-load-data-from-table-maintainance-screen-to-excel/m-p/3745952#M901303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T11:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to down load data from table maintainance screen to excel ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-down-load-data-from-table-maintainance-screen-to-excel/m-p/3745953#M901304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dharma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is no option to download data excel from SM30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but there is one alternative option to you that u need to go SE11 and give table name and fetch data whatecer as per your requirment once data displayed in ALV then you need to follow...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table entry&amp;gt;list&amp;gt;export&amp;gt;spreed sheet.....from se11 itself..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here you can transport data to excel..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this would help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward if solve!&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 11:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-down-load-data-from-table-maintainance-screen-to-excel/m-p/3745953#M901304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T11:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to down load data from table maintainance screen to excel ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-down-load-data-from-table-maintainance-screen-to-excel/m-p/3745954#M901305</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;Goto SE11-&amp;gt; Utilities-&amp;gt;Tablecontents-&amp;gt;create entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that screen, TABLEVIEW MENU -&amp;gt; PRINT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in that screen you have 5 and 7 Buttons for downloading data to excel files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5 button for direct EXCEL sheet. save the sheet after data gets displayed in to the sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7 button for Spreadsheet, HTML, Rich text format, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Same can be done with SM30.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that screen, TABLEVIEW MENU -&amp;gt; PRINT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in that screen you have 5 and 7 Buttons for downloading data to excel files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5 button for direct EXCEL sheet. save the sheet after data gets displayed in to the sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7 button for Spreadsheet, HTML, Rich text format, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Rewards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ammavajjala Narayana on Apr 24, 2008 2:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 12:18:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-down-load-data-from-table-maintainance-screen-to-excel/m-p/3745954#M901305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T12:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to down load data from table maintainance screen to excel ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-down-load-data-from-table-maintainance-screen-to-excel/m-p/3745955#M901306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishan/Shyam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy to see you responses.. Thank you very much . Solution provided by you is working well . But the problem is , if main screen regenerated (Tablemaintainance screen) for any reason later , Our cutom code in PAI section will get vanished . Hence is there any chance that we can code in Table maintanance events .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request Every  body to advice on this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Dharma .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dharma Rao potladhurthi on Apr 25, 2008 6:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 13:02:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-down-load-data-from-table-maintainance-screen-to-excel/m-p/3745955#M901306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T13:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to down load data from table maintainance screen to excel ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-down-load-data-from-table-maintainance-screen-to-excel/m-p/3745956#M901307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dharma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3rd post on the same query!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have answered the previous one. Please refer to that, and kindly close this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Rekha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 07:01:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-down-load-data-from-table-maintainance-screen-to-excel/m-p/3745956#M901307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T07:01:40Z</dc:date>
    </item>
  </channel>
</rss>

