<?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: Catch db table modification failure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797230#M1953772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Chintu, but the modification is not my problem, it's working good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to catch the the failure before getting a dump.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2016 08:24:40 GMT</pubDate>
    <dc:creator>former_member342346</dc:creator>
    <dc:date>2016-07-28T08:24:40Z</dc:date>
    <item>
      <title>Catch db table modification failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797222#M1953764</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 searched the forum for a way to catch the reason for failure of a DB table modification but didn't find any clue for a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the modify statement I only get sy-subrc as 0 or 4 as an indication to the modification.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;How can I understand the reason for failure when sy-subrc = 4?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hagit &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:25:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797222#M1953764</guid>
      <dc:creator>former_member342346</dc:creator>
      <dc:date>2016-07-28T07:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Catch db table modification failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797223#M1953765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you modifying From from work area or From the table.&lt;/P&gt;&lt;P&gt;Where is modify statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797223#M1953765</guid>
      <dc:creator>former_member196331</dc:creator>
      <dc:date>2016-07-28T07:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Catch db table modification failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797224#M1953766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The modify is within an ABAP program not from work area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:54:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797224#M1953766</guid>
      <dc:creator>former_member342346</dc:creator>
      <dc:date>2016-07-28T07:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Catch db table modification failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797225#M1953767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Not understood. &lt;/P&gt;&lt;P&gt;You said.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;When I use the modify statement I only get sy-subrc as 0 or 4 as an indication to the modification.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;May i know modify Statement from the program.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797225#M1953767</guid>
      <dc:creator>former_member196331</dc:creator>
      <dc:date>2016-07-28T07:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Catch db table modification failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797226#M1953768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my db table name to be updated is MY_DB_TAB.&lt;/P&gt;&lt;P&gt;this table is modified by source structure MY_SRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The update is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;my_bd_tab-f1= my_src&lt;SPAN style="font-size: 13.3333px;"&gt;-f1.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;my_db_tab-f2= my_scr&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;-f2.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MODIFY my_db_tab.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 08:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797226#M1953768</guid>
      <dc:creator>former_member342346</dc:creator>
      <dc:date>2016-07-28T08:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Catch db table modification failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797227#M1953769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you capture in debugging while sy-subrc eq 4.&lt;/P&gt;&lt;P&gt;if you say yes.&lt;/P&gt;&lt;P&gt;Take Structure value try to insert the values in the Database manually you can capture the what is the reason behind it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to See Key fields also.&lt;/P&gt;&lt;P&gt;if key field values already exist in the table it will modify the data from structure other wise&lt;/P&gt;&lt;P&gt;it will insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understood.&lt;/P&gt;&lt;P&gt;Try to modify manually from the structure values, you will get the reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 08:10:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797227#M1953769</guid>
      <dc:creator>former_member196331</dc:creator>
      <dc:date>2016-07-28T08:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Catch db table modification failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797228#M1953770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use the reason in my code in order to send an email with the reason for the update failure.&lt;/P&gt;&lt;P&gt;how do I do this in code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 08:13:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797228#M1953770</guid>
      <dc:creator>former_member342346</dc:creator>
      <dc:date>2016-07-28T08:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Catch db table modification failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797229#M1953771</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;you cannot pass values direct to table structure.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; background: transparent;"&gt;my_bd_tab-f1= my_src&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; background: transparent;"&gt;-f1. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; background: transparent;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; background: transparent;"&gt;my_db_tab-f2= my_scr&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; background: transparent;"&gt;-f2.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P&gt;write your modify statement like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY MY_DB_TAB FROM MY_SRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where MY_SRC is of type MY_DB_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 08:18:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797229#M1953771</guid>
      <dc:creator>Chintu6august</dc:creator>
      <dc:date>2016-07-28T08:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Catch db table modification failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797230#M1953772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Chintu, but the modification is not my problem, it's working good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to catch the the failure before getting a dump.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 08:24:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797230#M1953772</guid>
      <dc:creator>former_member342346</dc:creator>
      <dc:date>2016-07-28T08:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Catch db table modification failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797231#M1953773</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;put a check like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;MODIFY MY_DB_TAB FROM MY_SRC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;if sy-subrc is not initial.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;write:/ 'Modification failed..error captured'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;endif.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;thanks!!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 08:32:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797231#M1953773</guid>
      <dc:creator>Chintu6august</dc:creator>
      <dc:date>2016-07-28T08:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Catch db table modification failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797232#M1953774</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;It should be very rare event, because the MODIFY statament can be both INSERT or UPDATE (it depends on the record to be updated),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyway frim the help:&lt;/P&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;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR style="font-size: 13.3333px;"&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;All lines were inserted or changed.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-size: 13.3333px;"&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 10pt;"&gt;At least one line could not be processed as there is already a line with the same unique name &lt;A href="https://community.sap.com/" style="color: #505050;"&gt;secondary index&lt;/A&gt; in the database table.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-size: 13.3333px;"&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it could be a conflict due to the secondary index&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 08:57:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797232#M1953774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-28T08:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Catch db table modification failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797233#M1953775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case there is a wrong value (for example: a string instead of decimal) there is a short dump with Except.&amp;nbsp; CX_SY_CONVERSION_NO_NUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to catch this exception before the dump (using TRY...ENDTRY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hagit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 10:06:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797233#M1953775</guid>
      <dc:creator>former_member342346</dc:creator>
      <dc:date>2016-07-28T10:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Catch db table modification failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797234#M1953776</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;So have you a dump? I've understood you need to know why the MODIFY returns a SY-SUBRC = 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to prevent that dump, you need to use TRY/ENDRTY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;MY_ERROR&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;CX_SY_CONVERSION_NO_NUMBER&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;MSG_ERROR &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;STRING&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; &lt;SPAN class="L0S52"&gt;TRY&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;COMMAND&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CATCH &lt;/SPAN&gt;CX_SY_CONVERSION_NO_NUMBER &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;MY_ERROR&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MSG_ERROR &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;MY_ERROR&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;GET_TEXT&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;SPAN class="L0S52"&gt;ENDTRY&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;MSG_ERROR &lt;SPAN class="L0S52"&gt;IS &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NOT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INITIAL&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S55"&gt;&amp;nbsp;&amp;nbsp; .................do something................................&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;MESSAGE &lt;/SPAN&gt;I208&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;00&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;MSG_ERROR&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 10:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797234#M1953776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-28T10:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Catch db table modification failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797235#M1953777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="font-color-meta" style="padding: 0 0 5px; font-size: 1.2em; color: #8b8b8b; background: #e6e6e6;"&gt; &lt;SPAN class="replyToName" style="font-weight: inherit; font-style: inherit; font-size: 14.4px; font-family: inherit; background: transparent;"&gt;Hagit Peretz&lt;/SPAN&gt; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my understanding by reading this thread come to know that you need to get the real time message during database updation. Try code as shown in below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATA :lx_root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE REF TO cx_root,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; err_msg&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE char200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT &lt;SPAN style="color: #333333; font-size: 12px;"&gt;MY_SRC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRY.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #333333; font-size: 12px;"&gt;MODIFY MY_DB_TAB FROM MY_SRC&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CATCH cx_root INTO lx_root.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; err_msg = lx_root-&amp;gt;get_text( ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDTRY.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" It's in loop so that for each record you will get the status. Populate err_msg status in final table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PrAvIn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 11:19:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797235#M1953777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-28T11:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Catch db table modification failure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797236#M1953778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your kind help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 12:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-db-table-modification-failure/m-p/11797236#M1953778</guid>
      <dc:creator>former_member342346</dc:creator>
      <dc:date>2016-07-28T12:43:29Z</dc:date>
    </item>
  </channel>
</rss>

