<?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: Help with Class CL_BCS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-class-cl-bcs/m-p/2326067#M511200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : subject type SOTR_TXT.
subject = '[ D01 TEST] CCS0000096 NJ 8A7192 21 CONSTITUTION AVE'.
document = cl_document_bcs=&amp;gt;create_document(
                     i_type    = 'RAW'
                     i_text = text
                     i_length = '12'
                     i_subject = subject ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jun 2007 14:17:15 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2007-06-06T14:17:15Z</dc:date>
    <item>
      <title>Help with Class CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-class-cl-bcs/m-p/2326063#M511196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am pasting a part of the code which I am working on now... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is related to sending an e-mail using class CL_BCS.. I am trying to send an e-mail with subject line more than 50 characters in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The e-mail is already working, i get an e-mail immediately but with a shortened subject line.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can use the set_message_subject method to get the subject line longer but it doesnt work still due to some strange reason...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that the problem is with the bolded part.. when i went into the debugger mode i see that it compares the subject line which is passed on to the i_subject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points are guaranteed.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-------- create persistent send request ------------------------&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;send_request = cl_bcs=&amp;gt;create_persistent( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear i_subject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-------- create and set document with attachment ---------------&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create document from internal table with text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;document = cl_document_bcs=&amp;gt;create_document(&lt;/P&gt;&lt;P&gt;i_type = 'RAW'&lt;/P&gt;&lt;P&gt;i_text = text&lt;/P&gt;&lt;P&gt;i_length = '12'&lt;/P&gt;&lt;P&gt;i_subject = '' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*changing the content of the attachment&lt;/P&gt;&lt;P&gt;binary_content[] = l_iobjbin[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*change the name of the PDF attachment&lt;/P&gt;&lt;P&gt;concatenate 'Build ID' s_buildid_i 'Rev' v_buildid_rev&lt;/P&gt;&lt;P&gt;into i_att_sub separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;add attachment to document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD document-&amp;gt;add_attachment&lt;/P&gt;&lt;P&gt;EXPORTING i_attachment_type = 'PDF'&lt;/P&gt;&lt;P&gt;i_attachment_subject = i_att_sub&lt;/P&gt;&lt;P&gt;i_att_content_hex = binary_content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*subject line more than 50 chars&lt;/P&gt;&lt;P&gt;t_sub = '[ D01 TEST] CCS0000096 NJ 8A7192 21 CONSTITUTION AVE'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;CALL METHOD send_request-&amp;gt;set_message_subject&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ip_subject = t_sub.&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;add document to send request&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD send_request-&amp;gt;set_document( document ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 13:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-class-cl-bcs/m-p/2326063#M511196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T13:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Class CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-class-cl-bcs/m-p/2326064#M511197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is  T_SUB defined?  Less than 50 characters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 13:24:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-class-cl-bcs/m-p/2326064#M511197</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-06T13:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Class CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-class-cl-bcs/m-p/2326065#M511198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;T_SUB is a string...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 13:27:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-class-cl-bcs/m-p/2326065#M511198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T13:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Class CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-class-cl-bcs/m-p/2326066#M511199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see no DATA statement for T_SUB.  &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;  But I'll take your word for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 13:30:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-class-cl-bcs/m-p/2326066#M511199</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-06T13:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Class CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-class-cl-bcs/m-p/2326067#M511200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : subject type SOTR_TXT.
subject = '[ D01 TEST] CCS0000096 NJ 8A7192 21 CONSTITUTION AVE'.
document = cl_document_bcs=&amp;gt;create_document(
                     i_type    = 'RAW'
                     i_text = text
                     i_length = '12'
                     i_subject = subject ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 14:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-class-cl-bcs/m-p/2326067#M511200</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-06-06T14:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Class CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-class-cl-bcs/m-p/2326068#M511201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that doesnt work as the i_subject cannot exceed 50 chars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2007 06:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-class-cl-bcs/m-p/2326068#M511201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-07T06:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Class CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-class-cl-bcs/m-p/2326069#M511202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the solution for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to change the configuration settings in SCOT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set SMTP node to node in use, goto Internet settings and then say '*' in the address area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will do the work....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 10:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-class-cl-bcs/m-p/2326069#M511202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-11T10:12:18Z</dc:date>
    </item>
  </channel>
</rss>

