<?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 Small issue with CL_BCS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344744#M517174</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 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;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;Now please tell me how to link the created object Document with the method set_message_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;P&gt;&lt;/P&gt;&lt;P&gt;try.&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;&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 = i_subject ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;*subject line more than 50 chars&lt;/P&gt;&lt;P&gt;data: t_sub type string.&lt;/P&gt;&lt;P&gt;t_sub = 'This is too ridiculous but lets just test this whether this will work out for more than 50 chars'.&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;P&gt;&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;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>Tue, 05 Jun 2007 11:27:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-05T11:27:32Z</dc:date>
    <item>
      <title>Small issue with CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344744#M517174</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 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;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;Now please tell me how to link the created object Document with the method set_message_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;P&gt;&lt;/P&gt;&lt;P&gt;try.&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;&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 = i_subject ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;*subject line more than 50 chars&lt;/P&gt;&lt;P&gt;data: t_sub type string.&lt;/P&gt;&lt;P&gt;t_sub = 'This is too ridiculous but lets just test this whether this will work out for more than 50 chars'.&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;P&gt;&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;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>Tue, 05 Jun 2007 11:27:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344744#M517174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T11:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Small issue with CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344745#M517175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the code is right , you just need to call the following code &lt;/P&gt;&lt;P&gt;data: t_sub type string.&lt;/P&gt;&lt;P&gt;t_sub = 'This is too ridiculous but lets just test this whether this will work out for more than 50 chars'.&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;&lt;/P&gt;&lt;P&gt;just before&lt;/P&gt;&lt;P&gt;CALL METHOD send_request-&amp;gt;set_document( document ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and blank out the subject iin&lt;/P&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 = i_subject ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however though the subj parameter is of type string there is a limitation. it will only pass 255 characters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344745#M517175</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-06-05T12:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Small issue with CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344746#M517176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried just like that now, i have made the i_subject blank and executed the program, but now i dont get any subject line in my e-mail... &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&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;&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;&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>Tue, 05 Jun 2007 12:16:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344746#M517176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T12:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Small issue with CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344747#M517177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i use similar code and it works&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: send_request       type ref to cl_bcs.

clear document .
          document = cl_document_bcs=&amp;gt;create_document(
                          i_type    = 'HTM'
                          i_text    = text
                          i_length  = conlengths
                          i_subject = '' ).

*TRY.
data: sub type string  .
sub = '12345678901234567890123456789012345678901234567890123456789012345678901234567890' .
call method send_request-&amp;gt;set_message_subject
  exporting
    ip_subject = sub .
* CATCH CX_SEND_REQ_BCS .
*ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344747#M517177</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-06-05T12:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Small issue with CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344748#M517178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to get this subject line.. can you post the whole part of the code if you have it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any settings I need to do ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:30:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344748#M517178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T12:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Small issue with CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344749#M517179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is the code relevant for email&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

      try.
          clear send_request .

          send_request = cl_bcs=&amp;gt;create_persistent( ).

          clear document .
          document = cl_document_bcs=&amp;gt;create_document(
                          i_type    = 'HTM'
                          i_text    = text
                          i_length  = conlengths
                          i_subject = '' ).

          call method document-&amp;gt;add_attachment
            exporting
              i_attachment_type    = 'XLS'
              i_attachment_subject = atta_sub
              i_att_content_hex    = binary_content.

*     add document to send request
*TRY.
data: sub type string  .
sub = '12345678901234567890123456789012345678901234567890123456789012345678901234567890' .
call method send_request-&amp;gt;set_message_subject
  exporting
    ip_subject = sub .
* CATCH CX_SEND_REQ_BCS .
*ENDTRY.

          call method send_request-&amp;gt;set_document( document ).

          clear sender .
          sender = cl_cam_address_bcs=&amp;gt;create_internet_address( sender_id ).
          call method send_request-&amp;gt;set_sender
            exporting
              i_sender = sender.

          clear wa_rec .

          loop at recepients into wa_rec  .
            clear recipient .

            recipient = cl_cam_address_bcs=&amp;gt;create_internet_address(
                                              wa_rec ).

*     add recipient with its respective attributes to send request
            call method send_request-&amp;gt;add_recipient
              exporting
                i_recipient = recipient
                i_express   = 'X'.
          endloop .
          call method send_request-&amp;gt;set_status_attributes
            exporting
              i_requested_status = 'E'
              i_status_mail      = 'E'.

          call method send_request-&amp;gt;set_send_immediately( 'X' ).
*     ---------- send document ---------------------------------------
          call method send_request-&amp;gt;send(
            exporting
              i_with_error_screen = 'X'
            receiving
              result              = sent_to_all ).
          if sent_to_all = 'X'.
            append 'Mail sent successfully ' to return .
          endif.

          commit work.

        catch cx_bcs into bcs_exception.
          bcs_message = bcs_exception-&amp;gt;get_text( ).
          append bcs_message to return .
          exit.

      endtry.
    endif .
  else .

    append 'Specify email address for sending' to return .
  endif .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344749#M517179</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-06-05T12:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Small issue with CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344750#M517180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i thought there must be a problem with my program and then i replicated the standard program BCS_EXAMPLE_1 to a Z program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still the mail comes without subject line........ &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it something goto do with the format type or length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM MAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    -------- create and set document -------------------------------&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;      APPEND 'Hello world!' TO text.&lt;/P&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;&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;*TRY.&lt;/P&gt;&lt;P&gt;data: sub type string  .&lt;/P&gt;&lt;P&gt;sub = '12345678901234567890123456789012345678901234567890123456789012345678901234567890' .&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 = sub .&lt;/P&gt;&lt;P&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;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    --------- set sender -------------------------------------------&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    note: this is necessary only if you want to set the sender&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          different from actual user (SY-UNAME). Otherwise sender is&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          set automatically with actual user.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      sender = cl_sapuser_bcs=&amp;gt;create( sy-uname ).&lt;/P&gt;&lt;P&gt;      CALL METHOD send_request-&amp;gt;set_sender&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          i_sender = sender.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    --------- add recipient (e-mail address) -----------------------&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    create recipient - please replace e-mail address !!!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      recipient = cl_cam_address_bcs=&amp;gt;create_internet_address(&lt;/P&gt;&lt;P&gt;                                        'kavuri.rahul@adc.com' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    add recipient with its respective attributes to send request&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL METHOD send_request-&amp;gt;add_recipient&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          i_recipient = recipient&lt;/P&gt;&lt;P&gt;          i_express   = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD send_request-&amp;gt;set_send_immediately( 'X' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    ---------- send document ---------------------------------------&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL METHOD send_request-&amp;gt;send(&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          i_with_error_screen = 'X'&lt;/P&gt;&lt;P&gt;        RECEIVING&lt;/P&gt;&lt;P&gt;          result              = sent_to_all ).&lt;/P&gt;&lt;P&gt;      IF sent_to_all = 'X'.&lt;/P&gt;&lt;P&gt;        WRITE text-003.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 12:42:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344750#M517180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T12:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Small issue with CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344751#M517181</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:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344751#M517181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-11T10:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Small issue with CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344752#M517182</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;I have used this example to send email BCS_EXAMPLE_1 it worked fine, but I am receiving email with &lt;STRONG&gt;Importance: High&lt;/STRONG&gt; I tried to set the parameter i_importance of the method create_document of class cl_document_bcs with different values from 1 to 9. I can not stop the Importance: High with email. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know your issue is solved. If you have an idea of this please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Surya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 00:21:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344752#M517182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-19T00:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Small issue with CL_BCS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344753#M517183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Durairaj Athavan Raja... iam facing one problem 'user wants email attachment name more than 50 chars but in add_attchmnet method call method document-&amp;gt;add_attachment&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exporting&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_attachment_type&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'XLS'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_attachment_subject = atta_sub&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_att_content_hex&amp;nbsp;&amp;nbsp;&amp;nbsp; = binary_content. the parameter i_attachment_subject is limited to 50 chars. how to solve this pbm? can any one provide solution for this? regards Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 12:30:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/small-issue-with-cl-bcs/m-p/2344753#M517183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-02T12:30:22Z</dc:date>
    </item>
  </channel>
</rss>

