<?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: Excel generated based on layout and send into mail in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-generated-based-on-layout-and-send-into-mail/m-p/382907#M9140</link>
    <description>&lt;P&gt;From
a spool (abap list or even OTF) I don't think you will be successful, but from an ALV you may be
luckier:&lt;/P&gt;&lt;P&gt;Using&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;cl_salv_bs_runtime_info=&amp;gt;set " prevent ALV display and store data/metadata&lt;/LI&gt;&lt;LI&gt;submit report " execute ALV&lt;/LI&gt;&lt;LI&gt;cl_salv_bs_runtime_info=&amp;gt;get_data_ref " get data&lt;/LI&gt;&lt;LI&gt;cl_salv_bs_runtime_info=&amp;gt;get_metadata " get metadata&lt;/LI&gt;&lt;LI&gt;cl_salv_ex_util=&amp;gt;factory_result_data_table " prepare data&lt;/LI&gt;&lt;LI&gt;cl_salv_bs_tt_util=&amp;gt;if_salv_bs_tt_util~transform " generate xml&lt;/LI&gt;&lt;LI&gt;cl_salv_bs_runtime_info=&amp;gt;clear_all " cleanup&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;you should get a xml similar to the result of menu List, Export, Spreadsheet.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2017 06:32:54 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2017-02-14T06:32:54Z</dc:date>
    <item>
      <title>Excel generated based on layout and send into mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-generated-based-on-layout-and-send-into-mail/m-p/382906#M9139</link>
      <description>&lt;P&gt;I need to send excel in mail based on selected layout.&lt;/P&gt;&lt;P&gt;Any function module to convert spool in excel and send into mail.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 04:33:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-generated-based-on-layout-and-send-into-mail/m-p/382906#M9139</guid>
      <dc:creator>former_member261787</dc:creator>
      <dc:date>2017-02-14T04:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Excel generated based on layout and send into mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-generated-based-on-layout-and-send-into-mail/m-p/382907#M9140</link>
      <description>&lt;P&gt;From
a spool (abap list or even OTF) I don't think you will be successful, but from an ALV you may be
luckier:&lt;/P&gt;&lt;P&gt;Using&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;cl_salv_bs_runtime_info=&amp;gt;set " prevent ALV display and store data/metadata&lt;/LI&gt;&lt;LI&gt;submit report " execute ALV&lt;/LI&gt;&lt;LI&gt;cl_salv_bs_runtime_info=&amp;gt;get_data_ref " get data&lt;/LI&gt;&lt;LI&gt;cl_salv_bs_runtime_info=&amp;gt;get_metadata " get metadata&lt;/LI&gt;&lt;LI&gt;cl_salv_ex_util=&amp;gt;factory_result_data_table " prepare data&lt;/LI&gt;&lt;LI&gt;cl_salv_bs_tt_util=&amp;gt;if_salv_bs_tt_util~transform " generate xml&lt;/LI&gt;&lt;LI&gt;cl_salv_bs_runtime_info=&amp;gt;clear_all " cleanup&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;you should get a xml similar to the result of menu List, Export, Spreadsheet.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 06:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-generated-based-on-layout-and-send-into-mail/m-p/382907#M9140</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-02-14T06:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Excel generated based on layout and send into mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-generated-based-on-layout-and-send-into-mail/m-p/382908#M9141</link>
      <description>&lt;P&gt;I wrote a program to do this. There are function module to read the spool. You can then, after writing code (similar to a screen scraper) to get the information in some kind of order, using some standard code (search for it - it's not hard to find) or abap2xlsx to output an Excel spreadsheet.&lt;/P&gt;&lt;P&gt;Sending it by mail is very simple and well documented - you should search to see how it is done. There are some useful blogs.&lt;/P&gt;&lt;P&gt;There is no single function module that does what you want. You have to write ABAP code yourself.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 06:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-generated-based-on-layout-and-send-into-mail/m-p/382908#M9141</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2017-02-14T06:57:47Z</dc:date>
    </item>
  </channel>
</rss>

