<?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 not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541740#M1072901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venu Gopal's Answer is totally correct. run that program (&lt;STRONG&gt;rsconn01&lt;/STRONG&gt;) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gopal Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Oct 2008 11:10:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-20T11:10:04Z</dc:date>
    <item>
      <title>SO_NEW_DOCUMENT_SEND_API1 not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541733#M1072894</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 FM &lt;STRONG&gt;SO_NEW_DOCUMENT_SEND_API1&lt;/STRONG&gt; to send mail to the external user but it is showing in waiting state in my outbox.When i execute the FM sy-subrc is 0, suggesting FM executed correctly and i can see the mail in my outbox as well in waiting status showing message &lt;STRONG&gt;Wait for communications service&lt;/STRONG&gt; but i am not able to see the mail in SOST in queue.I tried with program rsconn01 with following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT rsconn01 USING SELECTION-SET 'INTERNET-EMAIL' AND RETURN.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*CALL FUNCTION 'SO_DEQUEUE_UPDATE_LOCKS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but still its not working.&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;&lt;/P&gt;&lt;P&gt;Rushikesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 04:52:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541733#M1072894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T04:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541734#M1072895</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;&lt;/P&gt;&lt;P&gt;excute the program &lt;STRONG&gt;rsconn01&lt;/STRONG&gt; and then excute your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: venu gopal on Oct 8, 2008 6:55 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 04:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541734#M1072895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T04:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541735#M1072896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like basis issue, pls contact your basis team&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Madhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 04:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541735#M1072896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T04:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541736#M1072897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;*"     VALUE(COMMIT_WORK) LIKE  SONV-FLAG DEFAULT SPACE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you using the commit_work option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'SO_NEW_DOCUMENT_SEND_API1'
...
..
commit_work  = 'X' "&amp;lt;-----add this&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 05:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541736#M1072897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T05:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541737#M1072898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the commit but it is giving me SHORT DUMP giving error analysis...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;++The call of a COMMIT WORK in a FORM, that will not be executed until++
++the commit or rollback point of the caller using the variant++
++PERFORM ... ON COMMIT or PERFORM ... ON ROLLBACK is not permitted.+&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;+&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 05:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541737#M1072898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T05:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541738#M1072899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the program/include name which causing the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;show your function call related code.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 05:42:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541738#M1072899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T05:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541739#M1072900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an exit ZXCO1U01 inwhich i am calling FM Z_PP_POCHNGE_EMAIL_NOTIFY which contain &lt;/P&gt;&lt;P&gt;subroutine where FM to send external mail is getting called...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*--Send Mail To Sales Associate
    PERFORM send_mail TABLES lt_mailbody
                             lt_receiver_tab
                       USING lf_doc_data
                    CHANGING lf_subrc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In This subroutine i am calling SO_NEW_DOCUMENT_SEND_API1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM send_mail  TABLES   lt_mailbody
                         lt_receiver_tab
                USING    lf_doc_data     TYPE sodocchgi1
                Changing lf_subrc  type SYSUBRC.

  DATA:      lf_doc TYPE so_obj_tp.

  CONSTANTS: c_x TYPE so_text001 VALUE 'X'.

  lf_doc = 'RAW'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;*-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Send External Mail To Sales Associate{&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;code}  CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      document_data              = lf_doc_data&lt;/P&gt;&lt;P&gt;      document_type              = lf_doc&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     COMMIT_WORK                = c_x&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      put_in_outbox              = c_x&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      object_content             = lt_mailbody&lt;/P&gt;&lt;P&gt;      receivers                  = lt_receiver_tab&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;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using commit at all possible places like in FM,exit even after the routine but still it is giving me DUMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rushikesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 05:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541739#M1072900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T05:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541740#M1072901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venu Gopal's Answer is totally correct. run that program (&lt;STRONG&gt;rsconn01&lt;/STRONG&gt;) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gopal Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 11:10:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541740#M1072901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T11:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541741#M1072902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I am having the same issue,&lt;/P&gt;&lt;P&gt;   i even tried doing it through se37 test ..&lt;/P&gt;&lt;P&gt;   It worked even there..!&lt;/P&gt;&lt;P&gt;   But not in my ABAP CODE.&lt;/P&gt;&lt;P&gt;   If I get the answer I will reply with it ASAP..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 09:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541741#M1072902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T09:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541742#M1072903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is basis issue, receiver destination is not defind. I also faced this issue like I have to send mail externally. Once basis person has made change, it is working well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 10:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541742#M1072903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T10:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541743#M1072904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you check the status in t code &lt;STRONG&gt;SOST&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Is it yellow or green or red?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is yellow then select it and send it from SOST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change ur code like this.&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;SUBMIT rsconn01 USING SELECTION-SET 'INTERNET-EMAIL' AND RETURN.&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;SUBMIT rsconn01 USING SELECTION-SET 'INT' AND RETURN.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SO_DEQUEUE_UPDATE_LOCKS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of &lt;STRONG&gt;INTERNET-EMAI&lt;/STRONG&gt; use &lt;STRONG&gt;INT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Also after calling Mail FM issue explicit &lt;STRONG&gt;COMMIT WORK if sy-subrc IS ZERO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Reddy Vemuru on Dec 24, 2008 3:49 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 10:18:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541743#M1072904</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-12-24T10:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541744#M1072905</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;in the below code commit_work is commented. remove the comment pass 'X' to commit_work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Send External Mail To Sales Associate{{code}code}  CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      document_data              = lf_doc_data&lt;/P&gt;&lt;P&gt;      document_type              = lf_doc&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;     COMMIT_WORK                = c_x*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;      put_in_outbox              = c_x&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      object_content             = lt_mailbody&lt;/P&gt;&lt;P&gt;      receivers                  = lt_receiver_tab&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 10:23:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541744#M1072905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T10:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541745#M1072906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Couple of questions for clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Is there a entry is SOST for your mail?&lt;/P&gt;&lt;P&gt;    If yes, &lt;/P&gt;&lt;P&gt;then either the mail server id for your SAP box is not defined or the system couldn't resolve the e-mail id to be used.&lt;/P&gt;&lt;P&gt;Check the setting for the Internet mail sever in transaction SCOT under the node SMTP. If a sever is not existing there then ask you Basis team to configure that for you.&lt;/P&gt;&lt;P&gt;If server address exists trace the message in SOST and see if it can find the e-mail ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If No (no entry in SOST),&lt;/P&gt;&lt;P&gt;this FM requires a commit work to get triggered and sent a mail to SOST. If there are no entries in SOST then the you need to commit the transaction. But, as are coding inside a User Exit, you can't use the 'commit' parameter or the statement 'COMMIT WORK' there. It is bound to give you a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now usually if you are using a user exit, the LUW gets executed with the main transaction commit. So, please check that you can execute the transaction without a dump or error message (so that commit work is triggered).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Barada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 11:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541745#M1072906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T11:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541746#M1072907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In addition to above replies, If u r calling this in USER EXIT it is not advisable to use commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So only option i can thing of is place ur code in an &lt;STRONG&gt;UPDATE FM&lt;/STRONG&gt;(Create one FM and place ur code in the FM) (In tributes of FM select UPDATE FM)and call this FM in UPDATE TASK. So do COMMIT WORK in side this FM. It won't affect the functionality in any way. But only difference is Ur commit happens only if every thing in the transaction goes well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 11:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541746#M1072907</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-12-24T11:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541747#M1072908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPORT  zsendemail                    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: psubject(40) type c default  'Hello',&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;p_email(40)   type c default 'WRITE MAIL ID' .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:   it_packing_list like sopcklsti1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;        it_contents like solisti1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;        it_receivers like somlreci1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;        it_attachment like solisti1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;        gd_cnt type i,&lt;/P&gt;&lt;P&gt;        gd_sent_all(1) type c,&lt;/P&gt;&lt;P&gt;        gd_doc_data like sodocchgi1,&lt;/P&gt;&lt;P&gt;        gd_error type sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:   it_message type standard table of SOLISTI1 initial size 0&lt;/P&gt;&lt;P&gt;                with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;*START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform populate_message_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Send email message, although is not sent from SAP until mail send&lt;/P&gt;&lt;P&gt;*program has been executed(rsconn01)&lt;/P&gt;&lt;P&gt;PERFORM send_email_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Instructs mail send program for SAPCONNECT to send email(rsconn01)&lt;/P&gt;&lt;P&gt;perform initiate_mail_execute_program.&lt;/P&gt;&lt;P&gt;&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;*&amp;amp;      Form  POPULATE_MESSAGE_TABLE&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Adds text to email text table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form populate_message_table.&lt;/P&gt;&lt;P&gt;  Append 'Email line 1' to it_message.&lt;/P&gt;&lt;P&gt;  Append 'Email line 2' to it_message.&lt;/P&gt;&lt;P&gt;  Append 'Email line 3' to it_message.&lt;/P&gt;&lt;P&gt;  Append 'Email line 4' to it_message.&lt;/P&gt;&lt;P&gt;endform.                    " POPULATE_MESSAGE_TABLE&lt;/P&gt;&lt;P&gt;&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;*&amp;amp;      Form  SEND_EMAIL_MESSAGE&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Send email message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form send_email_message.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill the document data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  gd_doc_data-doc_size = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate the subject/generic message attributes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  gd_doc_data-obj_langu = sy-langu.&lt;/P&gt;&lt;P&gt;  gd_doc_data-obj_name  = 'SAPRPT'.&lt;/P&gt;&lt;P&gt;  gd_doc_data-obj_descr = psubject.&lt;/P&gt;&lt;P&gt;  gd_doc_data-sensitivty = 'F'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Describe the body of the message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear it_packing_list.&lt;/P&gt;&lt;P&gt;  refresh it_packing_list.&lt;/P&gt;&lt;P&gt;  it_packing_list-transf_bin = space.&lt;/P&gt;&lt;P&gt;  it_packing_list-head_start = 1.&lt;/P&gt;&lt;P&gt;  it_packing_list-head_num = 0.&lt;/P&gt;&lt;P&gt;  it_packing_list-body_start = 1.&lt;/P&gt;&lt;P&gt;  describe table it_message lines it_packing_list-body_num.&lt;/P&gt;&lt;P&gt;  it_packing_list-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;  append it_packing_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add the recipients email address&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear it_receivers.&lt;/P&gt;&lt;P&gt;  refresh it_receivers.&lt;/P&gt;&lt;P&gt;  it_receivers-receiver = p_email.&lt;/P&gt;&lt;P&gt;  it_receivers-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;  it_receivers-com_type = 'INT'.&lt;/P&gt;&lt;P&gt;  it_receivers-notif_del = 'X'.&lt;/P&gt;&lt;P&gt;  it_receivers-notif_ndel = 'X'.&lt;/P&gt;&lt;P&gt;  append it_receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call the FM to post the message to SAPMAIL&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;STRONG&gt;call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            document_data              = gd_doc_data&lt;/P&gt;&lt;P&gt;            put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            sent_to_all                = gd_sent_all&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            packing_list               = it_packing_list&lt;/P&gt;&lt;P&gt;            contents_txt               = it_message&lt;/P&gt;&lt;P&gt;            receivers                  = it_receivers&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;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Store function module return code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  gd_error = sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get it_receivers return code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at it_receivers.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;endform.                    " SEND_EMAIL_MESSAGE&lt;/P&gt;&lt;P&gt;&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;*&amp;amp;      Form  INITIATE_MAIL_EXECUTE_PROGRAM&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Instructs mail send program for SAPCONNECT to send email.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form initiate_mail_execute_program.&lt;/P&gt;&lt;P&gt;  wait up to 2 seconds.&lt;/P&gt;&lt;P&gt;  if gd_error eq 0.&lt;/P&gt;&lt;P&gt;      submit rsconn01 with mode = 'INT'&lt;/P&gt;&lt;P&gt;                    with output = 'X'&lt;/P&gt;&lt;P&gt;                    and return.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2008 11:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541747#M1072908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-25T11:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1 not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541748#M1072909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly my case and i just solved it.  thanks to those who mentioned the solution although this thread is still tagged as "not anwered".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did was:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create a Z-FM to send the email.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Make the attribute of the FM to Update Module&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Did not put X in the Commit_Work in FM SO_NEW_DOCUMENT_SEND_API1 .&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add "IN UPDATE TASK" when the Z-FM is called.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the reason is that, when the original Z-FM is in normal mode, the sending of email does NOT get included in the UPDATE task of the ON COMMIT process that triggered the user-exit.  So, the mail is not sending out (not in queue).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the FM is changed to the UPDATE MODULE and with IN UPDATE TASK, the required work of sending the email is included in the UPDATE task (LUW) of the main program that triggered the user-exit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 08:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1-not-working/m-p/4541748#M1072909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T08:13:38Z</dc:date>
    </item>
  </channel>
</rss>

