<?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 Excel Sheet attachment to mail - Some problem. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-attachment-to-mail-some-problem/m-p/2474657#M556923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having 5 records in ITAB and all these needs to be in the excel attachment along with a mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when I open the attachment when sent in the mail.&lt;/P&gt;&lt;P&gt;I have all the records in the First Cell.. 1A...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need each record in each Colum like 1A, 2A, 3A .....5A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. I have used the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually this will be used in Back ground...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have gone checked many post in this forum but no one talks abt this in Back ground..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement in a nut shell .....&lt;/P&gt;&lt;P&gt;Background -&amp;gt; ITAB -&amp;gt; EXCEL -&amp;gt; Attachment - &amp;gt; Mail - Display should be proper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will reward with full points for any positive help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLY ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2007 07:52:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-02T07:52:00Z</dc:date>
    <item>
      <title>Excel Sheet attachment to mail - Some problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-attachment-to-mail-some-problem/m-p/2474657#M556923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having 5 records in ITAB and all these needs to be in the excel attachment along with a mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when I open the attachment when sent in the mail.&lt;/P&gt;&lt;P&gt;I have all the records in the First Cell.. 1A...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need each record in each Colum like 1A, 2A, 3A .....5A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. I have used the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually this will be used in Back ground...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have gone checked many post in this forum but no one talks abt this in Back ground..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement in a nut shell .....&lt;/P&gt;&lt;P&gt;Background -&amp;gt; ITAB -&amp;gt; EXCEL -&amp;gt; Attachment - &amp;gt; Mail - Display should be proper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will reward with full points for any positive help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLY ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 07:52:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-attachment-to-mail-some-problem/m-p/2474657#M556923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T07:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheet attachment to mail - Some problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-attachment-to-mail-some-problem/m-p/2474658#M556924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CONSTANTS: CON_CRET TYPE X VALUE '0D',  "OK for non Unicode
             CON_TAB TYPE X VALUE '09'.   "OK for non Unicode
DATA: IT_ATTACHMENT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
 DATA: WA_ATTACHMENT TYPE SOLISTI1.
loop at itab.
if sy-tabix = 1.
concatenate CON_CRET itab-field1 CON_TAB WA_ATTACHMENT.
else.
concatenate WA_ATTACHMENT itab-field1  SEPARATED BY CON_TAB.
endif.
APPEND WA_ATTACHMENT   TO IT_ATTACHMENT.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves ur problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 07:57:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-attachment-to-mail-some-problem/m-p/2474658#M556924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T07:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheet attachment to mail - Some problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-attachment-to-mail-some-problem/m-p/2474659#M556925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the function module SAP_CONVERT_TO_XLS_FORMAT to download the internal table to an excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_file LIKE rlgrap-filename DEFAULT 'c:\tmp\test.xls'.&lt;/P&gt;&lt;P&gt;DATA: t100_Lines TYPE STANDARD TABLE OF t001 WITH DEFAULT KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM t001 INTO TABLE t100_Lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    i_filename     = p_file&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    i_tab_sap_data = t100_Lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aparna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 08:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-attachment-to-mail-some-problem/m-p/2474659#M556925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T08:02:43Z</dc:date>
    </item>
  </channel>
</rss>

