<?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 Problem while sending an email. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422535#M1549501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm facing the problem while sending a mail to the user with the details in the text document which is attached to the email.&lt;/P&gt;&lt;P&gt;In my text document the length of the each record is about 500 to 600 characters.&lt;/P&gt;&lt;P&gt;but while downloading the attachment from SOST tcode, each record is &lt;STRONG&gt;&lt;U&gt;breaking at 255&lt;/U&gt;&lt;/STRONG&gt; characters and the remaining record details are passed to the next line.&lt;/P&gt;&lt;P&gt;but I need to display in a single line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help to solve this issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Nov 2010 14:15:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-14T14:15:18Z</dc:date>
    <item>
      <title>Problem while sending an email.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422535#M1549501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm facing the problem while sending a mail to the user with the details in the text document which is attached to the email.&lt;/P&gt;&lt;P&gt;In my text document the length of the each record is about 500 to 600 characters.&lt;/P&gt;&lt;P&gt;but while downloading the attachment from SOST tcode, each record is &lt;STRONG&gt;&lt;U&gt;breaking at 255&lt;/U&gt;&lt;/STRONG&gt; characters and the remaining record details are passed to the next line.&lt;/P&gt;&lt;P&gt;but I need to display in a single line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help to solve this issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Nov 2010 14:15:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422535#M1549501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-14T14:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while sending an email.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422536#M1549502</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;How do you insert the attachement in the mail?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Nov 2010 14:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422536#M1549502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-14T14:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while sending an email.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422537#M1549503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a function module 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;and in this FM  i'm passing the SOLISTL internal table as parameters.&lt;/P&gt;&lt;P&gt;the problem is with SOLISTL structure as the field length of SOLISTL is limited to 255 characters.&lt;/P&gt;&lt;P&gt;if i'm trying to pass the internal table other than SOLISTL then  this FM is giving dump.&lt;/P&gt;&lt;P&gt;how can i resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: skrishna1235 on Nov 14, 2010 5:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Nov 2010 16:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422537#M1549503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-14T16:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while sending an email.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422538#M1549504</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 should split ypur text into several records of SOLISTL &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you have an input line of 500 char, you should transfer the first 255 char to the first record of SOLISTL and the rest to the second one and try to use TXT fiormat instead of RAW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Nov 14, 2010 6:27 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Nov 14, 2010 6:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Nov 2010 17:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422538#M1549504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-14T17:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while sending an email.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422539#M1549505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is to display the single record details in a single line in the text document.&lt;/P&gt;&lt;P&gt;while i'm passing the 500 (&amp;gt;255) character record details in the SOLISTL then this structure is splitting into two records.&lt;/P&gt;&lt;P&gt;so how to combine these two records into a single line and pass it into the function  module. 'SO_NEW_DOCUMENT_ATT_SEND_API1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know if anymore details are required...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx max,&lt;/P&gt;&lt;P&gt;sai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Nov 2010 18:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422539#M1549505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-14T18:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while sending an email.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422540#M1549506</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;just do not use SO_NEW_DOCUMENT_ATT_SEND_API1. Check BCS*  reports.&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;Clemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Ever wondered why you have tons of questions about SO_NEW_DOCUMENT_ATT_SEND_API1 but nearly none about CL_BCS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Nov 2010 18:52:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422540#M1549506</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-11-14T18:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while sending an email.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422541#M1549507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ciemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm able to send the mail successfully&lt;/P&gt;&lt;P&gt;its the problem with the attachment as CL_BCS is related to sending the email.&lt;/P&gt;&lt;P&gt;As i have never used the classes before.&lt;/P&gt;&lt;P&gt;so can anyone please elaborate if you have the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx in advance,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 05:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422541#M1549507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-15T05:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while sending an email.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422542#M1549508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt; PFB code to get each record details on a single line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLASS cl_abap_char_utilities DEFINITION LOAD.&lt;/P&gt;&lt;P&gt;  CONSTANTS:&lt;/P&gt;&lt;P&gt;      c_tab  TYPE c VALUE cl_abap_char_utilities=&amp;gt;horizontal_tab,&lt;/P&gt;&lt;P&gt;      c_cret TYPE c VALUE cl_abap_char_utilities=&amp;gt;cr_lf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--concatenate header&lt;/P&gt;&lt;P&gt;  CONCATENATE 'Material No'(f01)&lt;/P&gt;&lt;P&gt;              'Material Description'(f02)&lt;/P&gt;&lt;P&gt;              'Plant'(f03)&lt;/P&gt;&lt;P&gt;              'Requirement Type'(f04)&lt;/P&gt;&lt;P&gt;              'Version'(f05)&lt;/P&gt;&lt;P&gt;              'Indicator-Version Active'(f06)&lt;/P&gt;&lt;P&gt;              'Requirements Plan'(f07)&lt;/P&gt;&lt;P&gt;              'BOM Explosion Number'(f08)&lt;/P&gt;&lt;P&gt;              'Production Version'(f09)&lt;/P&gt;&lt;P&gt;              'Base UoM'(f10)&lt;/P&gt;&lt;P&gt;              'Manufacture Name'(f11)&lt;/P&gt;&lt;P&gt;              'Manufacturer No'(f12)&lt;/P&gt;&lt;P&gt;  INTO wl_attach SEPARATED BY c_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CONCATENATE  'Planned qty 01'(f15)&lt;/P&gt;&lt;P&gt;              'Planned qty 02'(f16)&lt;/P&gt;&lt;P&gt;              'Planned qty 03'(f17)&lt;/P&gt;&lt;P&gt;              'Planned qty 04'(f18)&lt;/P&gt;&lt;P&gt;              'Planned qty 05'(f19)&lt;/P&gt;&lt;P&gt;              'Planned qty 06'(f20)&lt;/P&gt;&lt;P&gt;              'Planned qty 07'(f21)&lt;/P&gt;&lt;P&gt;              'Planned qty 08'(f22)&lt;/P&gt;&lt;P&gt;              'Planned qty 09'(f23)&lt;/P&gt;&lt;P&gt;              'Planned qty 10'(f24)&lt;/P&gt;&lt;P&gt;              'Planned qty 11'(f25)&lt;/P&gt;&lt;P&gt;              'Planned qty 12'(f26)&lt;/P&gt;&lt;P&gt;              'Planned qty 13'(f27)&lt;/P&gt;&lt;P&gt;              'Planned qty 14'(f28)&lt;/P&gt;&lt;P&gt;              'Planned qty 15'(f29)&lt;/P&gt;&lt;P&gt;              'Planned qty 16'(f30)&lt;/P&gt;&lt;P&gt;              'Planned qty 17'(f31)&lt;/P&gt;&lt;P&gt;  INTO wl_attach SEPARATED BY c_tab.&lt;/P&gt;&lt;P&gt;  CONCATENATE wl_attach c_cret INTO wl_attach.&lt;/P&gt;&lt;P&gt;  APPEND  wl_attach TO t_attach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Concatenate data records one by one&lt;/P&gt;&lt;P&gt;  LOOP AT t_output INTO wl_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE wl_output-matnr&lt;/P&gt;&lt;P&gt;                wl_output-yynsdesc&lt;/P&gt;&lt;P&gt;                wl_output-werks&lt;/P&gt;&lt;P&gt;                wl_output-bedae&lt;/P&gt;&lt;P&gt;                wl_output-versb&lt;/P&gt;&lt;P&gt;                wl_output-vervs&lt;/P&gt;&lt;P&gt;                wl_output-pbdnr&lt;/P&gt;&lt;P&gt;                wl_output-sernr&lt;/P&gt;&lt;P&gt;                wl_output-verid&lt;/P&gt;&lt;P&gt;                wl_output-meins&lt;/P&gt;&lt;P&gt;                wl_output-yymfcname&lt;/P&gt;&lt;P&gt;                wl_output-yymfgno&lt;/P&gt;&lt;P&gt;    INTO wl_attach SEPARATED BY c_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CONCATENATE  l_vpln01&lt;/P&gt;&lt;P&gt;                l_vpln02&lt;/P&gt;&lt;P&gt;                l_vpln03&lt;/P&gt;&lt;P&gt;                l_vpln04&lt;/P&gt;&lt;P&gt;                l_vpln05&lt;/P&gt;&lt;P&gt;                l_vpln06&lt;/P&gt;&lt;P&gt;                l_vpln07&lt;/P&gt;&lt;P&gt;                l_vpln08&lt;/P&gt;&lt;P&gt;                l_vpln09&lt;/P&gt;&lt;P&gt;                l_vpln10&lt;/P&gt;&lt;P&gt;                l_vpln11&lt;/P&gt;&lt;P&gt;                l_vpln12&lt;/P&gt;&lt;P&gt;                l_vpln13&lt;/P&gt;&lt;P&gt;                l_vpln14&lt;/P&gt;&lt;P&gt;                l_vpln15&lt;/P&gt;&lt;P&gt;                l_vpln16&lt;/P&gt;&lt;P&gt;                l_vpln17&lt;/P&gt;&lt;P&gt;    INTO wl_attach SEPARATED BY c_tab.&lt;/P&gt;&lt;P&gt;    CONCATENATE wl_attach c_cret INTO wl_attach.&lt;/P&gt;&lt;P&gt;    APPEND wl_attach TO t_attach.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In above code c_cret will create a new line only when you want to create a new line. Eg. if your single record contains 500 chars, move first 255 chars of that record to t_attach separated by c_tab and next 255 chars of that record again to t_attach and before  inserting  2nd record to t_attach, append c_cret(new line) to t_attach.&lt;/P&gt;&lt;P&gt;I hope your problem is solved now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pranjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 05:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422542#M1549508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-15T05:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while sending an email.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422543#M1549509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please go through this example bcs_example_8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanku,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 06:17:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422543#M1549509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-15T06:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while sending an email.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422544#M1549510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think, this FM have limitation for sending more than 255 characters for each line because SOLISTI1 structure field LINE length is 255 char. I recomend to copy this FM into custom name space and change the associated data types.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 06:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422544#M1549510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-15T06:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while sending an email.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422545#M1549511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;problem resolved by removing a field from the record details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 12:21:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-sending-an-email/m-p/7422545#M1549511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-16T12:21:55Z</dc:date>
    </item>
  </channel>
</rss>

