<?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 how to capture the errors ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors/m-p/3426644#M822933</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;how to capture the errors Call transaction method?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Feb 2008 07:09:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-24T07:09:11Z</dc:date>
    <item>
      <title>how to capture the errors ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors/m-p/3426644#M822933</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;how to capture the errors Call transaction method?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2008 07:09:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors/m-p/3426644#M822933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-24T07:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to capture the errors ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors/m-p/3426645#M822934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it progr4amatically.&lt;/P&gt;&lt;P&gt;take one internal table as errormessages.&lt;/P&gt;&lt;P&gt;keep the structure similar as components inm message like&lt;/P&gt;&lt;P&gt;message,message no,id,etc.&lt;/P&gt;&lt;P&gt;whenever call transaction fials add the entry of error to errormessage table and finally display the internal table in alv/list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2008 08:04:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors/m-p/3426645#M822934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-24T08:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to capture the errors ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors/m-p/3426646#M822935</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 CALL TRANSACTION TO CAPTURE THE ERRORS WE SHOULD PERFORM THE FOLLOWING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIRST ME MUST DECLARE AN INTERNAL TABLE WITH THE STRUCTURE OF BDCMSGCOLL TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THEN WHILE WRITING THE CALL TRANSACTION STATEMENT WE SHOULD PUT THE 'E' MODE FOR CAPTURING ALL THE ERRORS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THEN FINALLY THE CAPTURED ERRORS MUST TO SENT TO THE INTERNAL TABLE WHICH WE DECLARED IN THE BEGINNING WITH BDCMSGCOLL BY USING THE FUNCTION MODULE "FORMAT_MESSAGE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND THUS THE ERROR MESSAGES WILL BE SENT TO THE INTERNAL TABLE WHICH WE DECLARED AT THE BEGINNI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward Points if found helpfull..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cheers,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Chandra Sekhar.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2008 08:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors/m-p/3426646#M822935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-24T08:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to capture the errors ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors/m-p/3426647#M822936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SESSION method errors are handled by session only. You error log in session method .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In CALL TRANSACTION method you need to handle errors explicitly.&lt;/P&gt;&lt;P&gt;See the code for error handling &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF i_mess OCCURS 0,&lt;/P&gt;&lt;P&gt;        l_mstring(480),&lt;/P&gt;&lt;P&gt;        msgnr(5),&lt;/P&gt;&lt;P&gt;        msgv1(15),&lt;/P&gt;&lt;P&gt;      END OF i_mess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM mess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM mess .                                               &lt;/P&gt;&lt;P&gt;  LOOP AT messtab.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        id        = messtab-msgid&lt;/P&gt;&lt;P&gt;        lang      = messtab-msgspra&lt;/P&gt;&lt;P&gt;        no        = messtab-msgnr&lt;/P&gt;&lt;P&gt;        v1        = messtab-msgv1&lt;/P&gt;&lt;P&gt;        v2        = messtab-msgv2&lt;/P&gt;&lt;P&gt;        v3        = messtab-msgv3&lt;/P&gt;&lt;P&gt;        v4        = messtab-msgv4&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        msg       = l_mstring&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        not_found = 1&lt;/P&gt;&lt;P&gt;        OTHERS    = 2.&lt;/P&gt;&lt;P&gt;    CONDENSE l_mstring.&lt;/P&gt;&lt;P&gt;    i_mess-l_mstring = l_mstring(250).&lt;/P&gt;&lt;P&gt;    i_mess-msgnr = messtab-msgnr.&lt;/P&gt;&lt;P&gt;    i_mess-msgv1 = messtab-msgv1.&lt;/P&gt;&lt;P&gt;    APPEND i_mess.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM.                   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This perform is used to handle eroor in Call transaction method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;Jagadeesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2008 09:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors/m-p/3426647#M822936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-24T09:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to capture the errors ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors/m-p/3426648#M822937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can also use funtion modules &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message_text_build&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Devanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2008 17:05:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors/m-p/3426648#M822937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-24T17:05:29Z</dc:date>
    </item>
  </channel>
</rss>

