<?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: SO_NEW_DOCUMENT_SEND_API1 multiple recipients in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279105#M1531217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code seems to be fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is LT_MAILRECIPIENTS declared ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Sep 2010 14:15:14 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-09-13T14:15:14Z</dc:date>
    <item>
      <title>SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279103#M1531215</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 am using SO_NEW_DOCUMENT_SEND_API1 and it is working fine for me if there is one recipient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to send the email to more than one recipient, so I just added the additional recipients into the table LT_MAILRECIPIENTS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LT_MAILRECIPIENTS-REC_TYPE  = 'U'.
LT_MAILRECIPIENTS-RECEIVER = 'email1address'.
APPEND LT_MAILRECIPIENTS .
LT_MAILRECIPIENTS-RECEIVER = 'email2address'.
APPEND LT_MAILRECIPIENTS .
CLEAR LT_MAILRECIPIENTS.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if I call the function, it will only send to the first recipient in the table!&lt;/P&gt;&lt;P&gt;I tried to do  a loop at   LT_MAILRECIPIENTS and then call the function. Then it will send to all of them, but in the above case, every recipient will receive 2 emails instead of only 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
      EXPORTING
        DOCUMENT_DATA              = LT_MAILSUBJECT
      TABLES
        OBJECT_CONTENT             = LT_MAILTXT
        RECEIVERS                  = LT_MAILRECIPIENTS
      EXCEPTIONS
        TOO_MANY_RECEIVERS         = 1
        DOCUMENT_NOT_SENT          = 2
        DOCUMENT_TYPE_NOT_EXIST    = 3
        OPERATION_NO_AUTHORIZATION = 4
        PARAMETER_ERROR            = 5
        X_ERROR                    = 6
        ENQUEUE_ERROR              = 7
        OTHERS                     = 8.
    IF SY-SUBRC EQ 0.
      COMMIT WORK.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions how I can send the email to all recipients in my table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 13:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279103#M1531215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T13:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279104#M1531216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go through this already available program on Wiki carefully, i hope it will help you solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://wiki.sdn.sap.com/wiki/display/Snippets/Send&lt;EM&gt;Multiple&lt;/EM&gt;Attachments&lt;EM&gt;of&lt;/EM&gt;Spool&lt;EM&gt;with&lt;/EM&gt;E-mail]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 14:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279104#M1531216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T14:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279105#M1531217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code seems to be fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is LT_MAILRECIPIENTS declared ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 14:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279105#M1531217</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-09-13T14:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279106#M1531218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LT_MAILRECIPIENTS-REC_TYPE  = 'U'.
LT_MAILRECIPIENTS-RECEIVER = 'email1address'.
APPEND LT_MAILRECIPIENTS .

LT_MAILRECIPIENTS-REC_TYPE  = 'U'.
LT_MAILRECIPIENTS-RECEIVER = 'email2address'.
APPEND LT_MAILRECIPIENTS .


CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
      EXPORTING
        DOCUMENT_DATA              = LT_MAILSUBJECT
      TABLES
        OBJECT_CONTENT             = LT_MAILTXT
        RECEIVERS                  = LT_MAILRECIPIENTS
      EXCEPTIONS
        TOO_MANY_RECEIVERS         = 1
        DOCUMENT_NOT_SENT          = 2
        DOCUMENT_TYPE_NOT_EXIST    = 3
        OPERATION_NO_AUTHORIZATION = 4
        PARAMETER_ERROR            = 5
        X_ERROR                    = 6
        ENQUEUE_ERROR              = 7
        OTHERS                     = 8.
    IF SY-SUBRC EQ 0.
      COMMIT WORK.
    ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 14:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279106#M1531218</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2010-09-13T14:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279107#M1531219</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;this is how LT_MAILRECIPIENTS  is declared:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: LT_MAILRECIPIENTS  TYPE STANDARD TABLE OF SOMLREC90 WITH HEADER&lt;/P&gt;&lt;P&gt;LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 14:17:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279107#M1531219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T14:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279108#M1531220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anne,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can refer to this link, it is talking about the same topic as yours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="527083"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 14:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279108#M1531220</guid>
      <dc:creator>JerryWang</dc:creator>
      <dc:date>2010-09-13T14:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279109#M1531221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass it like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RECEIVERS                  = LT_MAILRECIPIENTS[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its time to get rid of header lines &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of this fm i suggest you to use the BCS classes available. This fm doesnt support certain code pages.&lt;/P&gt;&lt;P&gt;For BCS classes example sin SE38 just search for BCS&lt;STRONG&gt;EXAMPLE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@gautham - I dont see any difference in OP's code and yours &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 14:19:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279109#M1531221</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-09-13T14:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279110#M1531222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: LT_MAILRECIPIENTS type standard table of SOMLRECI1.

or 

DATA: LT_MAILRECIPIENTS TYPE STANDARD TABLE OF SOMLREC90 . "WITH HEADERLINE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 14:20:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279110#M1531222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T14:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279111#M1531223</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 tried the following, but it didn't help.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: LT_MAILRECIPIENTS type standard table of SOMLRECI1 WITH HEADER
LINE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just realized that I forgot to copy the last 2 lines of my function call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Send Mail
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
      EXPORTING
        DOCUMENT_DATA              = LT_MAILSUBJECT
      TABLES
        OBJECT_CONTENT             = LT_MAILTXT
        RECEIVERS                  = LT_MAILRECIPIENTS
      EXCEPTIONS
        TOO_MANY_RECEIVERS         = 1
        DOCUMENT_NOT_SENT          = 2
        DOCUMENT_TYPE_NOT_EXIST    = 3
        OPERATION_NO_AUTHORIZATION = 4
        PARAMETER_ERROR            = 5
        X_ERROR                    = 6
        ENQUEUE_ERROR              = 7
        OTHERS                     = 8.
    IF SY-SUBRC EQ 0.
      COMMIT WORK.

*   Push mail out from SAP outbox
      SUBMIT RSCONN01 WITH MODE = 'INT' AND RETURN.
    ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can it have something to do with the line?&lt;/P&gt;&lt;P&gt;SUBMIT RSCONN01 WITH MODE = 'INT' AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 14:30:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279111#M1531223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T14:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279112#M1531224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: LT_MAILRECIPIENTS type standard table of SOMLRECI1. " WITH HEADER LINE.

* Send Mail
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
      EXPORTING
        DOCUMENT_DATA              = LT_MAILSUBJECT
      TABLES
        OBJECT_CONTENT             = LT_MAILTXT
        RECEIVERS                  = LT_MAILRECIPIENTS
      EXCEPTIONS
        TOO_MANY_RECEIVERS         = 1
        DOCUMENT_NOT_SENT          = 2
        DOCUMENT_TYPE_NOT_EXIST    = 3
        OPERATION_NO_AUTHORIZATION = 4
        PARAMETER_ERROR            = 5
        X_ERROR                    = 6
        ENQUEUE_ERROR              = 7
        OTHERS                     = 8.
    IF SY-SUBRC EQ 0.
      COMMIT WORK.
 
*   Push mail out from SAP outbox
      SUBMIT RSCONN01 WITH MODE = 'INT' AND RETURN.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If you declaring internal table with header line, then pass  LT_MAILRECIPIENTS[] to FM as Keshav mentioned. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: LT_MAILRECIPIENTS type standard table of SOMLRECI1 WITH HEADER LINE.
* Send Mail
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
      EXPORTING
        DOCUMENT_DATA              = LT_MAILSUBJECT
      TABLES
        OBJECT_CONTENT             = LT_MAILTXT
        RECEIVERS                  = LT_MAILRECIPIENTS[]. "LT_MAILRECIPIENTS
      EXCEPTIONS
        TOO_MANY_RECEIVERS         = 1
        DOCUMENT_NOT_SENT          = 2
        DOCUMENT_TYPE_NOT_EXIST    = 3
        OPERATION_NO_AUTHORIZATION = 4
        PARAMETER_ERROR            = 5
        X_ERROR                    = 6
        ENQUEUE_ERROR              = 7
        OTHERS                     = 8.
    IF SY-SUBRC EQ 0.
      COMMIT WORK.
 
*   Push mail out from SAP outbox
      SUBMIT RSCONN01 WITH MODE = 'INT' AND RETURN.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 14:38:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279112#M1531224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T14:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279113#M1531225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  gvsastry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried both of your options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the first, I cannot activate the code, I get:&lt;/P&gt;&lt;P&gt;"LT_MAILRECIPIENTS" is a table without a header line and therefore has no component called "REC_TYPE".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can activate the 2nd option, but here I only get one email instead of two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 14:50:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279113#M1531225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T14:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279114#M1531226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi  gvsastry,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I tried both of your options.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; For the first, I cannot activate the code, I get:&lt;/P&gt;&lt;P&gt;&amp;gt; "LT_MAILRECIPIENTS" is a table without a header line and therefore has no component called "REC_TYPE".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;DATA: LS_MAILRECIPIENTS TYPE SOMLRECI1.
   APPEND LS_MAILRECIPIENTS TO LT_MAILRECIPIENTS.&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I can activate the 2nd option, but here I only get one email instead of two.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks&lt;/P&gt;&lt;P&gt;&amp;gt; Anne&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you debug and see how many entries are present in lt_mailrecipients when you are passing to FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 14:56:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279114#M1531226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T14:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279115#M1531227</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 just debugged and there are two entries in LT[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strange thing for me is, when I do the following, everyone in the list gets 2 emails. So it is behaving actually correct with the loop. Of course I don't want 2 emails, but it seems to send to EVERYONE in the list (vs. just for the first one) for each loop. Does that make sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP at LT_MAILRECIPIENTS.
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
      EXPORTING
        DOCUMENT_DATA              = LT_MAILSUBJECT
      TABLES
        OBJECT_CONTENT             = LT_MAILTXT
        RECEIVERS                  = LT_MAILRECIPIENTS
      EXCEPTIONS
        TOO_MANY_RECEIVERS         = 1
        DOCUMENT_NOT_SENT          = 2
        DOCUMENT_TYPE_NOT_EXIST    = 3
        OPERATION_NO_AUTHORIZATION = 4
        PARAMETER_ERROR            = 5
        X_ERROR                    = 6
        ENQUEUE_ERROR              = 7
        OTHERS                     = 8.
    IF SY-SUBRC EQ 0.
      COMMIT WORK.

*   Push mail out from SAP outbox
      SUBMIT RSCONN01 WITH MODE = 'INT' AND RETURN.
    ENDIF.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 15:09:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279115#M1531227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T15:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279116#M1531228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't call FM in loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 15:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279116#M1531228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T15:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279117#M1531229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. Do you have any other suggestions how I could get it to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 15:32:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279117#M1531229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T15:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279118#M1531230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't call FM in loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;didnt notice it !!!! Gr8.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 16:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279118#M1531230</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-09-13T16:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 multiple recipients</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279119#M1531231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In debug, look at the contents of your recipient table and be sure it is correct.  See SAP Note 609696 for update documentation and working code, should you decide to continue to use this out-of-date method for email.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 16:39:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-multiple-recipients/m-p/7279119#M1531231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T16:39:11Z</dc:date>
    </item>
  </channel>
</rss>

