<?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: Passing the parameter in the Function module MESSAGE_SEND_AS_MAIL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-the-parameter-in-the-function-module-message-send-as-mail/m-p/4104943#M981630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see if this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  Z_MESSAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data receiv type standard table of SOMLRECI1 initial size 0.&lt;/P&gt;&lt;P&gt;data wa type SOMLRECI1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-receiver = 'email address in caps'.&lt;/P&gt;&lt;P&gt;wa-REC_TYPE = 'U'.&lt;/P&gt;&lt;P&gt;append wa to receiv.&lt;/P&gt;&lt;P&gt;wa-receiver = 'email address in caps'.&lt;/P&gt;&lt;P&gt;wa-REC_TYPE = 'U'.&lt;/P&gt;&lt;P&gt;append wa to receiv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do so more more three&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MESSAGE_SEND_AS_MAIL'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    msgid           = 'Z_ZZZ_CA_MESSAGES'&lt;/P&gt;&lt;P&gt;    msgno           = '000'&lt;/P&gt;&lt;P&gt;   MSGV1           = 'material'&lt;/P&gt;&lt;P&gt;   MSGV2           = 'MAT'&lt;/P&gt;&lt;P&gt;   MSGV3           = 'MM'&lt;/P&gt;&lt;P&gt;   MSGV4           = 'MMM'&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    receivers       = receiv[]&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;          COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then u can go to SOST transaction and see that the mail has been or is yet to be sent. It worked for me. The message comes in an PDF form to the mail box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Biswadeep Ghosh on Jun 25, 2008 2:28 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Biswadeep Ghosh on Jun 25, 2008 2:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jun 2008 12:25:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-25T12:25:33Z</dc:date>
    <item>
      <title>Passing the parameter in the Function module MESSAGE_SEND_AS_MAIL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-the-parameter-in-the-function-module-message-send-as-mail/m-p/4104939#M981626</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;I have to send the same message to five different mail ID's using the Function module &lt;STRONG&gt;MESSAGE_SEND_AS_MAIL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to pass this five mail ID's in the Parameter &lt;STRONG&gt;Reciever&lt;/STRONG&gt; of the Function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 11:59:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-the-parameter-in-the-function-module-message-send-as-mail/m-p/4104939#M981626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T11:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Passing the parameter in the Function module MESSAGE_SEND_AS_MAIL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-the-parameter-in-the-function-module-message-send-as-mail/m-p/4104940#M981627</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;create an internal table with structure SOMLRECI1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fill your internal table and use it as parameter for the FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function MESSAGE_SEND_AS_MAIL&lt;/P&gt;&lt;P&gt;  importing&lt;/P&gt;&lt;P&gt;     msgid = sy-msgid&lt;/P&gt;&lt;P&gt;     msgno = sy-msgno&lt;/P&gt;&lt;P&gt;     msgv1 = sy-msgv1&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    receivers = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 12:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-the-parameter-in-the-function-module-message-send-as-mail/m-p/4104940#M981627</guid>
      <dc:creator>peter_ruiz2</dc:creator>
      <dc:date>2008-06-25T12:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Passing the parameter in the Function module MESSAGE_SEND_AS_MAIL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-the-parameter-in-the-function-module-message-send-as-mail/m-p/4104941#M981628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Recievers is a tables parameter you can have as many recievers as u want try like this..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  data it_recievers like table of SOMLRECI1 with header line.
  it_recievers-RECEIVER = 'Name of the reciever'
  it_recievers-REC_TYPE = 'o'. for sap mail(U for internet address)
it_recievers-REC_ID = 'email'
append it_recievers.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and pass this to the fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu Verma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 12:04:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-the-parameter-in-the-function-module-message-send-as-mail/m-p/4104941#M981628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T12:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Passing the parameter in the Function module MESSAGE_SEND_AS_MAIL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-the-parameter-in-the-function-module-message-send-as-mail/m-p/4104942#M981629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fill the RECEIVER and REC_TYPE fields and append it to a internal table table type SOMLRECI1. RECEIVER contains the mail address and REC_TYPE contains the Adress type.Refer the domain so_ESCAPE for types. Pass the internal table to the Function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran Bobbal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 12:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-the-parameter-in-the-function-module-message-send-as-mail/m-p/4104942#M981629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T12:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Passing the parameter in the Function module MESSAGE_SEND_AS_MAIL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-the-parameter-in-the-function-module-message-send-as-mail/m-p/4104943#M981630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see if this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  Z_MESSAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data receiv type standard table of SOMLRECI1 initial size 0.&lt;/P&gt;&lt;P&gt;data wa type SOMLRECI1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-receiver = 'email address in caps'.&lt;/P&gt;&lt;P&gt;wa-REC_TYPE = 'U'.&lt;/P&gt;&lt;P&gt;append wa to receiv.&lt;/P&gt;&lt;P&gt;wa-receiver = 'email address in caps'.&lt;/P&gt;&lt;P&gt;wa-REC_TYPE = 'U'.&lt;/P&gt;&lt;P&gt;append wa to receiv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do so more more three&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MESSAGE_SEND_AS_MAIL'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    msgid           = 'Z_ZZZ_CA_MESSAGES'&lt;/P&gt;&lt;P&gt;    msgno           = '000'&lt;/P&gt;&lt;P&gt;   MSGV1           = 'material'&lt;/P&gt;&lt;P&gt;   MSGV2           = 'MAT'&lt;/P&gt;&lt;P&gt;   MSGV3           = 'MM'&lt;/P&gt;&lt;P&gt;   MSGV4           = 'MMM'&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    receivers       = receiv[]&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;          COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then u can go to SOST transaction and see that the mail has been or is yet to be sent. It worked for me. The message comes in an PDF form to the mail box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Biswadeep Ghosh on Jun 25, 2008 2:28 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Biswadeep Ghosh on Jun 25, 2008 2:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 12:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-the-parameter-in-the-function-module-message-send-as-mail/m-p/4104943#M981630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T12:25:33Z</dc:date>
    </item>
  </channel>
</rss>

