<?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 mail help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-mail-help/m-p/2537815#M576322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give me direction i dont now if to do loop or concatenete to one field (wa_mail_addr1)all the adress that i wont spereted by space or ;&lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;P&gt;recipient = cl_cam_address_bcs=&amp;gt;create_internet_address( wa_mail_addr ).&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2007 10:09:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-11T10:09:30Z</dc:date>
    <item>
      <title>send mail help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-mail-help/m-p/2537814#M576321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here I send maail to one person and ts working o.k. but the problem is when I wont to send To more then one person how can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&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;DEL&gt;( Mail Text)&lt;/DEL&gt;----------------&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE text-003 wa_emp_tab-werks text-004 wa_emp_tab-btrtl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTO p_line1 SEPARATED BY space.&lt;/P&gt;&lt;P&gt;APPEND p_line1 TO text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_line1 = text-013 .&lt;/P&gt;&lt;P&gt;APPEND p_line1 TO text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_line1 = '----&lt;/P&gt;&lt;HR originaltext="-------------------------------------" /&gt;&lt;P&gt;'.&lt;/P&gt;&lt;P&gt;APPEND p_line1 TO text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT descreption_tab INTO wa_descreption_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE text-006 wa_descreption_tab-out_hagbla wa_descreption_tab-text_hagbla ' '&lt;/P&gt;&lt;P&gt;text-007 wa_descreption_tab-out_rama wa_descreption_tab-text_description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTO p_line1 SEPARATED BY space.&lt;/P&gt;&lt;P&gt;APPEND p_line1 TO text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_line1 = '----&lt;/P&gt;&lt;HR originaltext="-------------------------------------" /&gt;&lt;P&gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND p_line1 TO text. "Text of mail table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT single value&lt;/P&gt;&lt;P&gt;FROM yhr_parameters " Adress Table&lt;/P&gt;&lt;P&gt;INTO  wa_mail_addr &lt;/P&gt;&lt;P&gt;WHERE title = 'YHR'&lt;/P&gt;&lt;P&gt;AND subtitle = 'MU'&lt;/P&gt;&lt;P&gt;AND name = 'SEND_MAIL'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&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 = text-010 ). "Header Of Mail&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;/UL&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;/UL&gt;&lt;P&gt;recipient = cl_cam_address_bcs=&amp;gt;create_internet_address( wa_mail_addr ).&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;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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 09:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-mail-help/m-p/2537814#M576321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T09:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: send mail help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-mail-help/m-p/2537815#M576322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give me direction i dont now if to do loop or concatenete to one field (wa_mail_addr1)all the adress that i wont spereted by space or ;&lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;P&gt;recipient = cl_cam_address_bcs=&amp;gt;create_internet_address( wa_mail_addr ).&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 10:09:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-mail-help/m-p/2537815#M576322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T10:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: send mail help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-mail-help/m-p/2537816#M576323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i send mail to one person its working well the problem is just when i send to more then one person&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 10:40:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-mail-help/m-p/2537816#M576323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T10:40:00Z</dc:date>
    </item>
  </channel>
</rss>

