<?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 error messages captured in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-messages-captured/m-p/1490905#M228428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me with the following requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually i am working on interface from SAP to NON SAP.&lt;/P&gt;&lt;P&gt;depending on teh situation i need to send the occured messages to the user  through email. description given as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error Processing&lt;/P&gt;&lt;P&gt;&amp;#149;	An email notification should be sent if any of the following errors occur:&lt;/P&gt;&lt;P&gt;o	Failure to export file&lt;/P&gt;&lt;P&gt;o	Duplicate file exists&lt;/P&gt;&lt;P&gt;o	Missing parameters in export&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually i used the following code. could u plz correct  and suggest me if i need to add anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;data: maildata type sodocchgi1.&lt;/P&gt;&lt;P&gt;data: mailtxt  type table of solisti1 with header line.&lt;/P&gt;&lt;P&gt;data: mailrec  type table of somlrec90 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear:    maildata, mailtxt,  mailrec.&lt;/P&gt;&lt;P&gt;  refresh:  mailtxt, mailrec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  maildata-obj_name = 'TEST'.&lt;/P&gt;&lt;P&gt;    maildata-obj_descr = 'Test'.&lt;/P&gt;&lt;P&gt;  maildata-obj_langu = sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  mailtxt-line = 'This is a test'.&lt;/P&gt;&lt;P&gt;  append mailtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  mailrec-receiver = 'you@yourcompany.com'.&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;    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.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ragards,&lt;/P&gt;&lt;P&gt;siri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Sep 2006 15:30:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-05T15:30:00Z</dc:date>
    <item>
      <title>error messages captured</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-messages-captured/m-p/1490905#M228428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me with the following requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually i am working on interface from SAP to NON SAP.&lt;/P&gt;&lt;P&gt;depending on teh situation i need to send the occured messages to the user  through email. description given as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error Processing&lt;/P&gt;&lt;P&gt;&amp;#149;	An email notification should be sent if any of the following errors occur:&lt;/P&gt;&lt;P&gt;o	Failure to export file&lt;/P&gt;&lt;P&gt;o	Duplicate file exists&lt;/P&gt;&lt;P&gt;o	Missing parameters in export&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually i used the following code. could u plz correct  and suggest me if i need to add anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;data: maildata type sodocchgi1.&lt;/P&gt;&lt;P&gt;data: mailtxt  type table of solisti1 with header line.&lt;/P&gt;&lt;P&gt;data: mailrec  type table of somlrec90 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear:    maildata, mailtxt,  mailrec.&lt;/P&gt;&lt;P&gt;  refresh:  mailtxt, mailrec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  maildata-obj_name = 'TEST'.&lt;/P&gt;&lt;P&gt;    maildata-obj_descr = 'Test'.&lt;/P&gt;&lt;P&gt;  maildata-obj_langu = sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  mailtxt-line = 'This is a test'.&lt;/P&gt;&lt;P&gt;  append mailtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  mailrec-receiver = 'you@yourcompany.com'.&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;    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.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ragards,&lt;/P&gt;&lt;P&gt;siri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 15:30:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-messages-captured/m-p/1490905#M228428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-05T15:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: error messages captured</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-messages-captured/m-p/1490906#M228429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's all you need.   Just add your error messages in the MAILTXT internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


mailtxt-line = 'This is a text line 1'.
append mailtxt.

mailtxt-line = 'This is a text line 2'.
append mailtxt.


mailtxt-line = 'This is a text line 3'.
append mailtxt.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this, you will need to run the SCOT program to force the send process.  You can do this via the transaction SCOT or you can just submit this program from the end of your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;submit rsconn01 with mode = 'INT' and return.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 15:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-messages-captured/m-p/1490906#M228429</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-05T15:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: error messages captured</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-messages-captured/m-p/1490907#M228430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one quick change is you must add the following as an EXPORTING parameter..&lt;/P&gt;&lt;P&gt;COMMIT_WORK = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 15:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-messages-captured/m-p/1490907#M228430</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-09-05T15:34:14Z</dc:date>
    </item>
  </channel>
</rss>

