<?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: Problem in Error Message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4231028#M1010473</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;Try to use the Call transaction and Session in combintaion.&lt;/P&gt;&lt;P&gt;We can pass the error records to session method and are handled by session itself. Error-free records are processed in call transaction and when ever the error arises the Session is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION............................&lt;/P&gt;&lt;P&gt;if sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;appennd these error records into other internal table and then send this to the session methods as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_OPEN_GROUP&lt;/P&gt;&lt;P&gt;BDC_INSERT....&lt;/P&gt;&lt;P&gt;BDC_CLOSE_GROUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refer to this for more understanding-&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="939584"&gt;&lt;/A&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;Please refer to this link for detailed uage of both -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="855367"&gt;&lt;/A&gt;&lt;/STRONG&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;/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;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chandralekha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2008 17:22:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-28T17:22:40Z</dc:date>
    <item>
      <title>Problem in Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4231027#M1010472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abappers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the errorr message is displayed in an execution of the report, it get out of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to continue the execution of the report from that point where the error message was came?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It partly updates the Database table.&lt;/P&gt;&lt;P&gt;Suppose i have 100 records to upload.&lt;/P&gt;&lt;P&gt;On 51st error msg was handled as Duplicate entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it comes out of the program leaving rest of the record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to continue with the uploading of the next all records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 17:16:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4231027#M1010472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T17:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4231028#M1010473</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;Try to use the Call transaction and Session in combintaion.&lt;/P&gt;&lt;P&gt;We can pass the error records to session method and are handled by session itself. Error-free records are processed in call transaction and when ever the error arises the Session is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION............................&lt;/P&gt;&lt;P&gt;if sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;appennd these error records into other internal table and then send this to the session methods as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_OPEN_GROUP&lt;/P&gt;&lt;P&gt;BDC_INSERT....&lt;/P&gt;&lt;P&gt;BDC_CLOSE_GROUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refer to this for more understanding-&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="939584"&gt;&lt;/A&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;Please refer to this link for detailed uage of both -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="855367"&gt;&lt;/A&gt;&lt;/STRONG&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;/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;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chandralekha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 17:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4231028#M1010473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T17:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4231029#M1010474</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 update the dbtable on a bulk from an itab instead of updating each record from the workarea. It would update the valid rows and doesnt update the invalid ones. In your example, it updates the rest of 99 rows ignoring the 51st one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 17:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4231029#M1010474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T17:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4231030#M1010475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you ever you feel that there may be a chance that error will occur that place you have to handle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if suppose function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'TEST'&lt;/P&gt;&lt;P&gt; ....&lt;/P&gt;&lt;P&gt;&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; continue.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using sy-subrc check you can control that. instead of raising the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there exceptions you can handle using TRY ,CATCH .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 17:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4231030#M1010475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T17:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4231031#M1010476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to handle duplicate issue is , before trying to load&lt;/P&gt;&lt;P&gt;the data ,  execute this statement in your report -&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from &amp;lt;itab&amp;gt; comparing &amp;lt;field1&amp;gt; &amp;lt;field2&amp;gt; &amp;lt;field3&amp;gt;.......&lt;/P&gt;&lt;P&gt;This way you won't have duplicate data to run into this error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 19:38:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4231031#M1010476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T19:38:50Z</dc:date>
    </item>
  </channel>
</rss>

