<?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: Inputs needed : Logic implementation on sending mail and database update. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inputs-needed-logic-implementation-on-sending-mail-and-database-update/m-p/5390066#M1239042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why do you think database will not update?  update or insert statement should help u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2009 04:16:53 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2009-04-01T04:16:53Z</dc:date>
    <item>
      <title>Inputs needed : Logic implementation on sending mail and database update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inputs-needed-logic-implementation-on-sending-mail-and-database-update/m-p/5390065#M1239041</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 a requirement in which I need to send a mail and then update a database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sending mail and table update should work as one transaction i.e should be consistent.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your inputs to implement the above.As per my understanding :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE I : Send mail and then update database.&lt;/P&gt;&lt;P&gt;ISSUE  : If database table is not updated, a 'ROLLBACK WORK' is called but mail cannot be reterived.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE 2 :Update database and then send mail.&lt;/P&gt;&lt;P&gt;ISSUE : IF database update is successful but mail sending failed??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 04:12:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inputs-needed-logic-implementation-on-sending-mail-and-database-update/m-p/5390065#M1239041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T04:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Inputs needed : Logic implementation on sending mail and database update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inputs-needed-logic-implementation-on-sending-mail-and-database-update/m-p/5390066#M1239042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why do you think database will not update?  update or insert statement should help u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 04:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inputs-needed-logic-implementation-on-sending-mail-and-database-update/m-p/5390066#M1239042</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-04-01T04:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Inputs needed : Logic implementation on sending mail and database update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inputs-needed-logic-implementation-on-sending-mail-and-database-update/m-p/5390067#M1239043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are exception : Table Load Failure&lt;/P&gt;&lt;P&gt;  and Others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 04:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inputs-needed-logic-implementation-on-sending-mail-and-database-update/m-p/5390067#M1239043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T04:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Inputs needed : Logic implementation on sending mail and database update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inputs-needed-logic-implementation-on-sending-mail-and-database-update/m-p/5390068#M1239044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi its very simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to regist your subroutine with on commit addition  .&lt;/P&gt;&lt;P&gt;for your case1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform send_mail on commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform update_table.&lt;/P&gt;&lt;P&gt;*--here you have to evaluvate sy-subrc of database update .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*here you are sending mail if update has beeen sucess or trigger error what every you need.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;endif.&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;Peranandam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 04:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inputs-needed-logic-implementation-on-sending-mail-and-database-update/m-p/5390068#M1239044</guid>
      <dc:creator>Peranandam</dc:creator>
      <dc:date>2009-04-01T04:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Inputs needed : Logic implementation on sending mail and database update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inputs-needed-logic-implementation-on-sending-mail-and-database-update/m-p/5390069#M1239045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if mail sending fails??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database is updated and mail sending fails, This is also not desired.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 04:45:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inputs-needed-logic-implementation-on-sending-mail-and-database-update/m-p/5390069#M1239045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T04:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inputs needed : Logic implementation on sending mail and database update.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inputs-needed-logic-implementation-on-sending-mail-and-database-update/m-p/5390070#M1239046</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 my point of view if you coded properly for sending mail by considering all the failiure factor then there is no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If mail sending fails, revert back all the changes you have updated in the table and display error log.&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;Peranandam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 13:46:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inputs-needed-logic-implementation-on-sending-mail-and-database-update/m-p/5390070#M1239046</guid>
      <dc:creator>Peranandam</dc:creator>
      <dc:date>2009-04-01T13:46:55Z</dc:date>
    </item>
  </channel>
</rss>

