<?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 fm SO_NEW_DOCUMENT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663183#M293798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everybody&lt;/P&gt;&lt;P&gt;im using fm SO_NEW_DOCUMENT_SEND_API1 to send mail, &lt;/P&gt;&lt;P&gt;i have 2 receivers, the mail is being sent properly but the sender is getting the mails twice in his mailbox&lt;/P&gt;&lt;P&gt;there are 2 receivers and 1 sender&lt;/P&gt;&lt;P&gt;the sender should receive the mail once, isnt it?&lt;/P&gt;&lt;P&gt;heres my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   concatenate '9118' '@email.net' into mailrec-receiver.&lt;/P&gt;&lt;P&gt;   mailrec-rec_type  = 'U'.&lt;/P&gt;&lt;P&gt;   append mailrec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   concatenate '9808' '@email.net' into mailrec-receiver.&lt;/P&gt;&lt;P&gt;   mailrec-rec_type  = 'U'.&lt;/P&gt;&lt;P&gt;   append mailrec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at mailrec.&lt;/P&gt;&lt;P&gt;   call function 'SO_NEW_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            document_data              = maildata&lt;/P&gt;&lt;P&gt;            document_type              = 'RAW'&lt;/P&gt;&lt;P&gt;            put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            object_header              = mailtxt&lt;/P&gt;&lt;P&gt;            object_content             = mailtxt&lt;/P&gt;&lt;P&gt;            receivers                  = mailrec&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            too_many_receivers         = 1&lt;/P&gt;&lt;P&gt;            document_not_sent          = 2&lt;/P&gt;&lt;P&gt;            document_type_not_exist    = 3&lt;/P&gt;&lt;P&gt;            operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;            parameter_error            = 5&lt;/P&gt;&lt;P&gt;            x_error                    = 6&lt;/P&gt;&lt;P&gt;            enqueue_error              = 7&lt;/P&gt;&lt;P&gt;            others                     = 8.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is my code wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2006 12:35:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-31T12:35:54Z</dc:date>
    <item>
      <title>fm SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663183#M293798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everybody&lt;/P&gt;&lt;P&gt;im using fm SO_NEW_DOCUMENT_SEND_API1 to send mail, &lt;/P&gt;&lt;P&gt;i have 2 receivers, the mail is being sent properly but the sender is getting the mails twice in his mailbox&lt;/P&gt;&lt;P&gt;there are 2 receivers and 1 sender&lt;/P&gt;&lt;P&gt;the sender should receive the mail once, isnt it?&lt;/P&gt;&lt;P&gt;heres my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   concatenate '9118' '@email.net' into mailrec-receiver.&lt;/P&gt;&lt;P&gt;   mailrec-rec_type  = 'U'.&lt;/P&gt;&lt;P&gt;   append mailrec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   concatenate '9808' '@email.net' into mailrec-receiver.&lt;/P&gt;&lt;P&gt;   mailrec-rec_type  = 'U'.&lt;/P&gt;&lt;P&gt;   append mailrec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at mailrec.&lt;/P&gt;&lt;P&gt;   call function 'SO_NEW_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            document_data              = maildata&lt;/P&gt;&lt;P&gt;            document_type              = 'RAW'&lt;/P&gt;&lt;P&gt;            put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            object_header              = mailtxt&lt;/P&gt;&lt;P&gt;            object_content             = mailtxt&lt;/P&gt;&lt;P&gt;            receivers                  = mailrec&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            too_many_receivers         = 1&lt;/P&gt;&lt;P&gt;            document_not_sent          = 2&lt;/P&gt;&lt;P&gt;            document_type_not_exist    = 3&lt;/P&gt;&lt;P&gt;            operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;            parameter_error            = 5&lt;/P&gt;&lt;P&gt;            x_error                    = 6&lt;/P&gt;&lt;P&gt;            enqueue_error              = 7&lt;/P&gt;&lt;P&gt;            others                     = 8.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is my code wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 12:35:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663183#M293798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T12:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: fm SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663184#M293799</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;there is nothing wrong in your code.&lt;/P&gt;&lt;P&gt;i guess in your outbox you are able to see two mails separately is it so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since you are sending it to two peoples, you will see two mails in your out box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 12:42:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663184#M293799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T12:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: fm SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663185#M293800</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;just refresh the internal table &amp;lt;b&amp;gt;mailrec&amp;lt;/b&amp;gt; before&lt;/P&gt;&lt;P&gt;the appending of mail id's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 12:43:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663185#M293800</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-10-31T12:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: fm SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663186#M293801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there a way to receive it only once in the sender's outbox?&lt;/P&gt;&lt;P&gt;because the user wants the email to appear only once in the sender's outbox, can that be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 12:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663186#M293801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T12:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: fm SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663187#M293802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sia,&lt;/P&gt;&lt;P&gt;the problem is, that you loop?&lt;/P&gt;&lt;P&gt;in the FM there is the table mailrec with 2 receiver&lt;/P&gt;&lt;P&gt;and you execute the FM 2 times.&lt;/P&gt;&lt;P&gt;You don't have to loop!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 12:44:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663187#M293802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T12:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: fm SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663188#M293803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The following code will work properly and sending the mail twice as u have used loop at mailrec.So Mail has been sent two times thats why sender has two mails in sent items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just remove loop and endloop from ur code and execute&lt;/P&gt;&lt;P&gt;that will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can try like this&lt;/P&gt;&lt;P&gt;concatenate '9118''@email.net' into mailrec1-receiver1.&lt;/P&gt;&lt;P&gt;concatenate '9808''@email.net' into mailrec-receiver2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate mailrec1-receiver1 mailrec-receiver2 into mailrec-receiver separeted by ';'.&lt;/P&gt;&lt;P&gt;mailrec-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;append mailrec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SO_NEW_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;document_data = maildata&lt;/P&gt;&lt;P&gt;document_type = 'RAW'&lt;/P&gt;&lt;P&gt;put_in_outbox = 'X'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;object_header = mailtxt&lt;/P&gt;&lt;P&gt;object_content = mailtxt&lt;/P&gt;&lt;P&gt;receivers = mailrec&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;too_many_receivers = 1&lt;/P&gt;&lt;P&gt;document_not_sent = 2&lt;/P&gt;&lt;P&gt;document_type_not_exist = 3&lt;/P&gt;&lt;P&gt;operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;parameter_error = 5&lt;/P&gt;&lt;P&gt;x_error = 6&lt;/P&gt;&lt;P&gt;enqueue_error = 7&lt;/P&gt;&lt;P&gt;others = 8.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it should work&lt;/P&gt;&lt;P&gt;just correct syntax errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If helpful reward points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs&lt;/P&gt;&lt;P&gt;Manas Ranjan Panda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: MANAS PANDA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 12:48:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663188#M293803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T12:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: fm SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663189#M293804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anjali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove the loop at mailrec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the mailrec internal table will have the mail ids of the receiver so you need not to loop this internal table to send the mail to each receiver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM it self will send the mail to all the receiver which are populated in this internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 12:52:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663189#M293804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T12:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: fm SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663190#M293805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur replies!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 13:08:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-so-new-document-send-api1/m-p/1663190#M293805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T13:08:55Z</dc:date>
    </item>
  </channel>
</rss>

