<?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: Problem in creating notepad file with mail in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-notepad-file-with-mail/m-p/8499027#M1653820</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;Use the following statement while creating notepad attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; concatenate cl_abap_char_utilities=&amp;gt;newline &amp;lt;contents&amp;gt; into &amp;lt;attachment&amp;gt; SEPARATED by horizontal tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aravind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2012 12:41:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-16T12:41:22Z</dc:date>
    <item>
      <title>Problem in creating notepad file with mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-notepad-file-with-mail/m-p/8499023#M1653816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I have create a notepad file at run time and attached with mail...&lt;/P&gt;&lt;P&gt;But notepad file is not properly created.. It display 1 space between 2 letter and also facing problem if there are more than 1 line..&lt;/P&gt;&lt;P&gt;2nd line is not started in new line.. it started after 1st line...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 04:45:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-notepad-file-with-mail/m-p/8499023#M1653816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T04:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating notepad file with mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-notepad-file-with-mail/m-p/8499024#M1653817</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 use CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB for seperating the data in a formatted fashion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: LOOP AT T_OUT_SUBSCRIBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE T_OUTPUT-FIELD1&lt;/P&gt;&lt;P&gt;T_OUTPUT-FIELD2&lt;/P&gt;&lt;P&gt;T_OUTPUT-FIELD3&lt;/P&gt;&lt;P&gt;T_OUTPUT-FIELD4&lt;/P&gt;&lt;P&gt;INTO WA_T_OUT_TABLE&lt;/P&gt;&lt;P&gt;SEPARATED BY CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE WA_T_OUT_TABLE&lt;/P&gt;&lt;P&gt;CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF&lt;/P&gt;&lt;P&gt;INTO WA_T_OUT_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 05:14:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-notepad-file-with-mail/m-p/8499024#M1653817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T05:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating notepad file with mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-notepad-file-with-mail/m-p/8499025#M1653818</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 use the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS:  gc_crlf         type char1      value cl_bcs_convert=&amp;gt;gc_crlf,&lt;/P&gt;&lt;P&gt;                        gc_htab       type char1      value cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gi_tab INTO gw_tab.&lt;/P&gt;&lt;P&gt;*/.. Sepearting fields by horizontal tab.&lt;/P&gt;&lt;P&gt;      CONCATENATE gw_tab-col1 gw_tab-col2 INTO gv_string SEPERATED BY gc_htab.&lt;/P&gt;&lt;P&gt;*/.. Store data row wise&lt;/P&gt;&lt;P&gt;    CONCATENATE gv_string gc_crlf INTO gv_string.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;begging removed by moderator&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrads,&lt;/P&gt;&lt;P&gt;Gaurav.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Feb 14, 2012&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 05:30:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-notepad-file-with-mail/m-p/8499025#M1653818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-14T05:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating notepad file with mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-notepad-file-with-mail/m-p/8499026#M1653819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I had a simular problem when using  cl_document_bcs. Most examples that use this class use i_type = 'RAW'. But then blanks will be added at the end of each text line in i_text. Using i_type = 'TXT' works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Jack &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD cl_document_bcs=&amp;gt;create_document
  EXPORTING
    i_type    = 'TXT'
    i_subject = zlv_objdes
    i_text    = zlt_soli
  RECEIVING
    result    = zlr_document_bcs.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 05:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-notepad-file-with-mail/m-p/8499026#M1653819</guid>
      <dc:creator>JackGraus</dc:creator>
      <dc:date>2012-02-14T05:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in creating notepad file with mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-notepad-file-with-mail/m-p/8499027#M1653820</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;Use the following statement while creating notepad attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; concatenate cl_abap_char_utilities=&amp;gt;newline &amp;lt;contents&amp;gt; into &amp;lt;attachment&amp;gt; SEPARATED by horizontal tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aravind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 12:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-creating-notepad-file-with-mail/m-p/8499027#M1653820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-16T12:41:22Z</dc:date>
    </item>
  </channel>
</rss>

