<?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: Send email Message - Create body text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-email-message-create-body-text/m-p/1432838#M206759</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;DATA :  tl_ltext       TYPE bcsy_text.&lt;/P&gt;&lt;P&gt;  DATA :  l_sent_to_all  TYPE os_boolean,&lt;/P&gt;&lt;P&gt;          l_send_request TYPE REF TO cl_bcs,&lt;/P&gt;&lt;P&gt;          l_document     TYPE REF TO cl_document_bcs,&lt;/P&gt;&lt;P&gt;          l_recipient    TYPE REF TO if_recipient_bcs,&lt;/P&gt;&lt;P&gt;          l_recpt        TYPE adr6-smtp_addr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      l_send_request = cl_bcs=&amp;gt;create_persistent( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CATCH cx_send_req_bcs.&lt;/P&gt;&lt;P&gt;      PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*C--&amp;gt; lines of the internal table have the error messages&lt;/P&gt;&lt;P&gt;  REFRESH tl_ltext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF t_err_crchg[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    APPEND LINES OF t_err_crchg TO tl_ltext.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND LINES OF t_error TO tl_ltext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF t_error1[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    wa_error-error = text-018.&lt;/P&gt;&lt;P&gt;    APPEND wa_error TO tl_ltext.&lt;/P&gt;&lt;P&gt;    CLEAR wa_error.&lt;/P&gt;&lt;P&gt;    APPEND LINES OF t_error1 TO tl_ltext.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*C--&amp;gt; Create the document and catch any exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      l_document = cl_document_bcs=&amp;gt;create_document(  i_type = text-015&lt;/P&gt;&lt;P&gt;                     i_text = tl_ltext  i_subject = text-006 ).&lt;/P&gt;&lt;P&gt;    CATCH cx_document_bcs.&lt;/P&gt;&lt;P&gt;      PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      CALL METHOD l_send_request-&amp;gt;set_document( l_document ).&lt;/P&gt;&lt;P&gt;    CATCH cx_send_req_bcs.&lt;/P&gt;&lt;P&gt;      PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*C--&amp;gt; Create the internet address and catch any exceptions&lt;/P&gt;&lt;P&gt;  CLEAR l_recpt.&lt;/P&gt;&lt;P&gt;  LOOP AT t_email INTO wa_email.&lt;/P&gt;&lt;P&gt;    l_recpt = wa_email-val1.&lt;/P&gt;&lt;P&gt;    TRY.&lt;/P&gt;&lt;P&gt;  l_recipient =  cl_cam_address_bcs=&amp;gt;create_internet_address( l_recpt )&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;      CATCH cx_address_bcs.&lt;/P&gt;&lt;P&gt;        PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;    ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TRY.&lt;/P&gt;&lt;P&gt;        CALL METHOD l_send_request-&amp;gt;add_recipient&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            i_recipient = l_recipient&lt;/P&gt;&lt;P&gt;            i_express   = c_x.&lt;/P&gt;&lt;P&gt;      CATCH cx_send_req_bcs.&lt;/P&gt;&lt;P&gt;        PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;    ENDTRY.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*C--&amp;gt; send the mail document to all the email addresses specified&lt;/P&gt;&lt;P&gt;  CLEAR l_sent_to_all.&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      CALL METHOD l_send_request-&amp;gt;send&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          i_with_error_screen = c_x&lt;/P&gt;&lt;P&gt;        RECEIVING&lt;/P&gt;&lt;P&gt;          result              = l_sent_to_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;    CATCH cx_send_req_bcs.&lt;/P&gt;&lt;P&gt;      PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: here the internal table tl_text is a system defined internal table, it can hold the body or the contents of the mail . . . .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it suits your requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jul 2006 11:25:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-19T11:25:36Z</dc:date>
    <item>
      <title>Send email Message - Create body text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-email-message-create-body-text/m-p/1432837#M206758</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;&lt;/P&gt;&lt;P&gt;    We are sending Purchase Orders, and Order Confirmations by email. At this Moment i can change the Subject and the name of the attch file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   What i need to know is if its possibel to Create a Boby Text to the email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Thansk In advanced&lt;/P&gt;&lt;P&gt;PMR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 11:20:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-email-message-create-body-text/m-p/1432837#M206758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T11:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Send email Message - Create body text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-email-message-create-body-text/m-p/1432838#M206759</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;DATA :  tl_ltext       TYPE bcsy_text.&lt;/P&gt;&lt;P&gt;  DATA :  l_sent_to_all  TYPE os_boolean,&lt;/P&gt;&lt;P&gt;          l_send_request TYPE REF TO cl_bcs,&lt;/P&gt;&lt;P&gt;          l_document     TYPE REF TO cl_document_bcs,&lt;/P&gt;&lt;P&gt;          l_recipient    TYPE REF TO if_recipient_bcs,&lt;/P&gt;&lt;P&gt;          l_recpt        TYPE adr6-smtp_addr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      l_send_request = cl_bcs=&amp;gt;create_persistent( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CATCH cx_send_req_bcs.&lt;/P&gt;&lt;P&gt;      PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*C--&amp;gt; lines of the internal table have the error messages&lt;/P&gt;&lt;P&gt;  REFRESH tl_ltext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF t_err_crchg[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    APPEND LINES OF t_err_crchg TO tl_ltext.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND LINES OF t_error TO tl_ltext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF t_error1[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    wa_error-error = text-018.&lt;/P&gt;&lt;P&gt;    APPEND wa_error TO tl_ltext.&lt;/P&gt;&lt;P&gt;    CLEAR wa_error.&lt;/P&gt;&lt;P&gt;    APPEND LINES OF t_error1 TO tl_ltext.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*C--&amp;gt; Create the document and catch any exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      l_document = cl_document_bcs=&amp;gt;create_document(  i_type = text-015&lt;/P&gt;&lt;P&gt;                     i_text = tl_ltext  i_subject = text-006 ).&lt;/P&gt;&lt;P&gt;    CATCH cx_document_bcs.&lt;/P&gt;&lt;P&gt;      PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      CALL METHOD l_send_request-&amp;gt;set_document( l_document ).&lt;/P&gt;&lt;P&gt;    CATCH cx_send_req_bcs.&lt;/P&gt;&lt;P&gt;      PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*C--&amp;gt; Create the internet address and catch any exceptions&lt;/P&gt;&lt;P&gt;  CLEAR l_recpt.&lt;/P&gt;&lt;P&gt;  LOOP AT t_email INTO wa_email.&lt;/P&gt;&lt;P&gt;    l_recpt = wa_email-val1.&lt;/P&gt;&lt;P&gt;    TRY.&lt;/P&gt;&lt;P&gt;  l_recipient =  cl_cam_address_bcs=&amp;gt;create_internet_address( l_recpt )&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;      CATCH cx_address_bcs.&lt;/P&gt;&lt;P&gt;        PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;    ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TRY.&lt;/P&gt;&lt;P&gt;        CALL METHOD l_send_request-&amp;gt;add_recipient&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            i_recipient = l_recipient&lt;/P&gt;&lt;P&gt;            i_express   = c_x.&lt;/P&gt;&lt;P&gt;      CATCH cx_send_req_bcs.&lt;/P&gt;&lt;P&gt;        PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;    ENDTRY.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*C--&amp;gt; send the mail document to all the email addresses specified&lt;/P&gt;&lt;P&gt;  CLEAR l_sent_to_all.&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      CALL METHOD l_send_request-&amp;gt;send&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          i_with_error_screen = c_x&lt;/P&gt;&lt;P&gt;        RECEIVING&lt;/P&gt;&lt;P&gt;          result              = l_sent_to_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;    CATCH cx_send_req_bcs.&lt;/P&gt;&lt;P&gt;      PERFORM catch_exception.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: here the internal table tl_text is a system defined internal table, it can hold the body or the contents of the mail . . . .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it suits your requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 11:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-email-message-create-body-text/m-p/1432838#M206759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T11:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Send email Message - Create body text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-email-message-create-body-text/m-p/1432839#M206760</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;   Thanks Sudhir. For your replay.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   But may question at this moment is if its possible to in a automatic way, change the boby off the email when the Message off the Purchase order is send via SCOT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 11:47:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-email-message-create-body-text/m-p/1432839#M206760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T11:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Send email Message - Create body text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-email-message-create-body-text/m-p/1432840#M206761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a lot of posts asking about adding text to the automatic e-mail containing a PDF attchment sent from 5 - External send but no solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone confirm if this is possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Karen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Karen Dean&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 11:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-email-message-create-body-text/m-p/1432840#M206761</guid>
      <dc:creator>former_member498918</dc:creator>
      <dc:date>2006-08-04T11:19:54Z</dc:date>
    </item>
  </channel>
</rss>

