<?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 BDC Error handling in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/3759526#M904522</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;friends how to error handing in BDC in EEC 5.) where as we have msg tab in 4.7 version .that was not present in EEC 5 can any one tell which table should we use&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2008 07:10:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-29T07:10:10Z</dc:date>
    <item>
      <title>BDC Error handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/3759526#M904522</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;friends how to error handing in BDC in EEC 5.) where as we have msg tab in 4.7 version .that was not present in EEC 5 can any one tell which table should we use&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/3759526#M904522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T07:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Error handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/3759527#M904523</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;&lt;/P&gt;&lt;P&gt;How will we handle the errors in call transaction method? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'/00' is generally the BDC_OKCODE for the ENTER key. &lt;/P&gt;&lt;P&gt;You don't need to know the list of the BDC_OKCODE s. &lt;/P&gt;&lt;P&gt;You go to the transaction SHDB. &lt;/P&gt;&lt;P&gt;You can execute any transaction here. &lt;/P&gt;&lt;P&gt;Then you can replay the execution of the trasaction afterwards. &lt;/P&gt;&lt;P&gt;Select 'display all screens' mode. &lt;/P&gt;&lt;P&gt;BDC_OKCODEs for each one functions you use is displayed on the screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, regarding the error handling in call transaction. &lt;/P&gt;&lt;P&gt;The BDCMSGCOLL does not have the messages text. It has only the message type, number and message parameters. &lt;/P&gt;&lt;P&gt;You have to read the message text.  (recall that the database table T100 stores all the messages.) &lt;/P&gt;&lt;P&gt;There are more than one method of doing this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the psuedocode for one of the methods. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP for the internal table IT1 which has data value from flat file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transcation using.... &lt;/P&gt;&lt;P&gt;if SY-SUBRC &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the dictionary table T100 FOR ALL ENTRIES in BDCMSGCOLL. &lt;/P&gt;&lt;P&gt;(also use the condition T100-SPRAS  =  SY-LANGU (the log on language. This is because you need only the message texts in English if the user is logged in English language) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF message type is E , then, transfer the contents of this particular error record to file x. (TRANSFER......) &lt;/P&gt;&lt;P&gt;( Ignore all other messages. Only consider type 'E' messages. Ignore other types of messages.) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(You can also store the message text from T100 and the error record in another internal table IT2) &lt;/P&gt;&lt;P&gt;..... &lt;/P&gt;&lt;P&gt;.... &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 07:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/3759527#M904523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T07:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Error handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/3759528#M904524</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;To capture the errors from bdcmsgcoll and to display those error msgs, we use FORMAT_MESSAGE  function module............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;P&gt;sravani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plz reward if helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 09:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/3759528#M904524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T09:15:17Z</dc:date>
    </item>
  </channel>
</rss>

