<?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: Email excel attachment issues in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-excel-attachment-issues/m-p/7618725#M1570092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BCS_EXAMPLE7 is the right solution for email functionalities&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Feb 2011 07:16:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-07T07:16:39Z</dc:date>
    <item>
      <title>Email excel attachment issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-excel-attachment-issues/m-p/7618719#M1570086</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;My requirement is to convert the alv output to an excel and send it to email in background processing.&lt;/P&gt;&lt;P&gt;Am creating the headers through the field cat headings as the headings are dynamic.&lt;/P&gt;&lt;P&gt;And the item data through the output internal table of ALV.&lt;/P&gt;&lt;P&gt;My issue is always the second row's first column is taking spaces in the start because of this the data starts getting truncated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am using a tab delimter to seprate 2 fields and at the end of a row am using line breaker cl_abap_char_utilities=&amp;gt;cr_lf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the below is how am filling the packing lists.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill Packing List For body&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lw_packing_list-transf_bin = space.&lt;/P&gt;&lt;P&gt;  lw_packing_list-head_start = 1.&lt;/P&gt;&lt;P&gt;  lw_packing_list-head_num = 0.&lt;/P&gt;&lt;P&gt;  lw_packing_list-body_start = 1.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE lt_message LINES  lw_packing_list-body_num.&lt;/P&gt;&lt;P&gt;  lw_packing_list-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;  APPEND lw_packing_list TO lt_packing_list.&lt;/P&gt;&lt;P&gt;  clear lw_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill the fields of the packing_list for creating the attachment:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lw_packing_list-transf_bin = lc_x.&lt;/P&gt;&lt;P&gt;  lw_packing_list-head_start = 1.&lt;/P&gt;&lt;P&gt;  lw_packing_list-head_num = 1.&lt;/P&gt;&lt;P&gt;  lw_packing_list-body_start = 1.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE t_attach LINES lw_packing_list-body_num.&lt;/P&gt;&lt;P&gt;   lw_packing_list-doc_type =  lv_format.&lt;/P&gt;&lt;P&gt;   lw_packing_list-obj_descr = lv_attdesc.&lt;/P&gt;&lt;P&gt;  lw_packing_list-doc_size = lw_packing_list-body_num * 255.&lt;/P&gt;&lt;P&gt;  APPEND lw_packing_list TO lt_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill the mail recipient list&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lw_reclist-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;  lw_reclist-com_type = 'INT'.&lt;/P&gt;&lt;P&gt;  LOOP AT t_recipient_list INTO w_recipient_list.&lt;/P&gt;&lt;P&gt;    lw_reclist-receiver = w_recipient_list-ZSMTP_ADR.&lt;/P&gt;&lt;P&gt;    APPEND lw_reclist TO lt_reclist.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have surfed the google and SDN but could not find any solution to my problem Please help guys..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 07:20:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-excel-attachment-issues/m-p/7618719#M1570086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-10T07:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Email excel attachment issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-excel-attachment-issues/m-p/7618720#M1570087</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;go to se38--&amp;gt;enter program name BCS_EXAMPLE_7&lt;/P&gt;&lt;P&gt;  and see the sample code to send XLS attachment...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this program it shows how to send the internal table or ALV report data into excel mail attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 07:38:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-excel-attachment-issues/m-p/7618720#M1570087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-10T07:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Email excel attachment issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-excel-attachment-issues/m-p/7618721#M1570088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can first convert the alv to excel file using gui_download and then attach the same and mail it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;akshay ruia.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 13:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-excel-attachment-issues/m-p/7618721#M1570088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-10T13:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Email excel attachment issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-excel-attachment-issues/m-p/7618722#M1570089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can first convert the alv to excel file using gui_download and then attach the same and mail it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But that's completely unnecessary, not to mention extra overhead.  The BCS_EXAMPLE_7 program is the correct approach as Prabhu Das mentioned...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 19:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-excel-attachment-issues/m-p/7618722#M1570089</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-01-10T19:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Email excel attachment issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-excel-attachment-issues/m-p/7618723#M1570090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your replies&lt;/P&gt;&lt;P&gt;I have data more than 255 char in header as well as items.&lt;/P&gt;&lt;P&gt;so will the BCS_example7 will be helpfull to me.&lt;/P&gt;&lt;P&gt;And multiple recipients are also available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 06:32:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-excel-attachment-issues/m-p/7618723#M1570090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-11T06:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Email excel attachment issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-excel-attachment-issues/m-p/7618724#M1570091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u pls post the code for bcs_example_7 as it is not available in the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got the code from some other forum but the code has an error that the class &lt;STRONG&gt;cl_bcs_convert&lt;/STRONG&gt; is not availble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;akshay ruia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 06:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-excel-attachment-issues/m-p/7618724#M1570091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-11T06:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Email excel attachment issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-excel-attachment-issues/m-p/7618725#M1570092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BCS_EXAMPLE7 is the right solution for email functionalities&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 07:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-excel-attachment-issues/m-p/7618725#M1570092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-07T07:16:39Z</dc:date>
    </item>
  </channel>
</rss>

