<?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: call transaction error message capturing failed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036970#M1350273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soniya &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the piece of code for capturing the error messages... i hope u will get some help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Calling Transaction FB50 .&lt;/P&gt;&lt;P&gt;    call transaction 'FB50' using BDCDATA mode 'N' messages into MESSTAB.&lt;/P&gt;&lt;P&gt;*Reading Internal Table MESSTAB.&lt;/P&gt;&lt;P&gt;    read table MESSTAB.&lt;/P&gt;&lt;P&gt;    if SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;*Selecting TEXT From Table T100 Into Variable V_TEXT.&lt;/P&gt;&lt;P&gt;      select single TEXT into V_TEXT from T100  where SPRSL = MESSTAB-MSGSPRA&lt;/P&gt;&lt;P&gt;                                  and   ARBGB = MESSTAB-MSGID&lt;/P&gt;&lt;P&gt;                                  and   MSGNR = MESSTAB-MSGNR.&lt;/P&gt;&lt;P&gt;      if SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        V_LMSTRING = V_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if V_LMSTRING cs '&amp;amp;1'.&lt;/P&gt;&lt;P&gt;          replace '&amp;amp;1' with MESSTAB-MSGV1 into V_LMSTRING.&lt;/P&gt;&lt;P&gt;          replace '&amp;amp;2' with MESSTAB-MSGV2 into V_LMSTRING.&lt;/P&gt;&lt;P&gt;          replace '&amp;amp;3' with MESSTAB-MSGV3 into V_LMSTRING.&lt;/P&gt;&lt;P&gt;          replace '&amp;amp;4' with MESSTAB-MSGV4 into V_LMSTRING.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;          replace '&amp;amp;' with MESSTAB-MSGV1 into V_LMSTRING.&lt;/P&gt;&lt;P&gt;          replace '&amp;amp;' with MESSTAB-MSGV2 into V_LMSTRING.&lt;/P&gt;&lt;P&gt;          replace '&amp;amp;' with MESSTAB-MSGV3 into V_LMSTRING.&lt;/P&gt;&lt;P&gt;          replace '&amp;amp;' with MESSTAB-MSGV4 into V_LMSTRING.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        condense V_LMSTRING.&lt;/P&gt;&lt;P&gt;*Checking The Message Type and Display The Message Accordingly.&lt;/P&gt;&lt;P&gt;        if MESSTAB-MSGTYP = 'E'.&lt;/P&gt;&lt;P&gt;          V_ERROR = V_ERROR + C_INCREMENT.&lt;/P&gt;&lt;P&gt;          IT_RESULT-MEGTYPE = 'Error'.&lt;/P&gt;&lt;P&gt;          IT_RESULT-MESSAGE = V_LMSTRING.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if MESSTAB-MSGTYP = 'S'.&lt;/P&gt;&lt;P&gt;          V_SUCCESS = V_SUCCESS + C_INCREMENT.&lt;/P&gt;&lt;P&gt;          IT_RESULT-MEGTYPE = 'Successful'.&lt;/P&gt;&lt;P&gt;          IT_RESULT-MESSAGE = V_LMSTRING.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     write: / MESSTAB.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;*Appending Table IT_RESULT.&lt;/P&gt;&lt;P&gt;    append IT_RESULT.&lt;/P&gt;&lt;P&gt;*Delete Rows of  Internal Table MESSTAB.&lt;/P&gt;&lt;P&gt;    refresh MESSTAB.&lt;/P&gt;&lt;P&gt;*Clear Header of MESSTAB.&lt;/P&gt;&lt;P&gt;    clear MESSTAB.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashu Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2009 05:33:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-10T05:33:50Z</dc:date>
    <item>
      <title>call transaction error message capturing failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036962#M1350265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using call transaction method for ME21N tcode for uploading data.Here in messtab i am not getting any error message of type E.i tried using 'N' and 'E' but still i am not able to capture message of type 'E' .i debug and checked in messtab table but there too there is no message of type 'E'.but i have faulty data in transaction.Suggest me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Soniya s.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 10:40:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036962#M1350265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-08T10:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction error message capturing failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036963#M1350266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;ME21N makes use of OOPs functionality and the error messages in the transaction are shown as a pop up and not as messages in normal transactions.&lt;/P&gt;&lt;P&gt;So it would be difficult to obtain the same in the messages table when you do CALL TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not use a BAPI instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 11:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036963#M1350266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-08T11:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction error message capturing failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036964#M1350267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ankur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no in me21n error messages are not shown in box its normal as its in other transactions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 11:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036964#M1350267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-08T11:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction error message capturing failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036965#M1350268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Error handling is always not good in Call Transaction.Use  Session Methods for Upload as Error handling is much more better than Call Transaction.&lt;/P&gt;&lt;P&gt;use:BAPI_PO_CREATE or BAPI_PO_CREATE1 for creation because data validation is much better here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 20:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036965#M1350268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-08T20:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction error message capturing failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036966#M1350269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does Faulty data means error?&lt;/P&gt;&lt;P&gt;While Directly passing such data in ME21N ,giving error?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not than Call Transaction Message will also not give..please check once.&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;Mayank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 20:32:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036966#M1350269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-08T20:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction error message capturing failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036967#M1350270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Even if i directly enter data in me21n then also i get an error there if data is wrong.but while debuging my bdc program in messtab i dont get that error message.suggest me how to solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;soniya s.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 05:21:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036967#M1350270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-10T05:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction error message capturing failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036968#M1350271</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;Did u check if the transaction is stopping with the faulty data when the BDC is run in the mode 'A'? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 05:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036968#M1350271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-10T05:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction error message capturing failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036969#M1350272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Avoid BDC with Enjoy transactons and go for BAPI as Ankur said ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or do it with ME21.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 05:26:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036969#M1350272</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-08-10T05:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction error message capturing failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036970#M1350273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soniya &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the piece of code for capturing the error messages... i hope u will get some help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Calling Transaction FB50 .&lt;/P&gt;&lt;P&gt;    call transaction 'FB50' using BDCDATA mode 'N' messages into MESSTAB.&lt;/P&gt;&lt;P&gt;*Reading Internal Table MESSTAB.&lt;/P&gt;&lt;P&gt;    read table MESSTAB.&lt;/P&gt;&lt;P&gt;    if SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;*Selecting TEXT From Table T100 Into Variable V_TEXT.&lt;/P&gt;&lt;P&gt;      select single TEXT into V_TEXT from T100  where SPRSL = MESSTAB-MSGSPRA&lt;/P&gt;&lt;P&gt;                                  and   ARBGB = MESSTAB-MSGID&lt;/P&gt;&lt;P&gt;                                  and   MSGNR = MESSTAB-MSGNR.&lt;/P&gt;&lt;P&gt;      if SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        V_LMSTRING = V_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if V_LMSTRING cs '&amp;amp;1'.&lt;/P&gt;&lt;P&gt;          replace '&amp;amp;1' with MESSTAB-MSGV1 into V_LMSTRING.&lt;/P&gt;&lt;P&gt;          replace '&amp;amp;2' with MESSTAB-MSGV2 into V_LMSTRING.&lt;/P&gt;&lt;P&gt;          replace '&amp;amp;3' with MESSTAB-MSGV3 into V_LMSTRING.&lt;/P&gt;&lt;P&gt;          replace '&amp;amp;4' with MESSTAB-MSGV4 into V_LMSTRING.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;          replace '&amp;amp;' with MESSTAB-MSGV1 into V_LMSTRING.&lt;/P&gt;&lt;P&gt;          replace '&amp;amp;' with MESSTAB-MSGV2 into V_LMSTRING.&lt;/P&gt;&lt;P&gt;          replace '&amp;amp;' with MESSTAB-MSGV3 into V_LMSTRING.&lt;/P&gt;&lt;P&gt;          replace '&amp;amp;' with MESSTAB-MSGV4 into V_LMSTRING.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        condense V_LMSTRING.&lt;/P&gt;&lt;P&gt;*Checking The Message Type and Display The Message Accordingly.&lt;/P&gt;&lt;P&gt;        if MESSTAB-MSGTYP = 'E'.&lt;/P&gt;&lt;P&gt;          V_ERROR = V_ERROR + C_INCREMENT.&lt;/P&gt;&lt;P&gt;          IT_RESULT-MEGTYPE = 'Error'.&lt;/P&gt;&lt;P&gt;          IT_RESULT-MESSAGE = V_LMSTRING.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if MESSTAB-MSGTYP = 'S'.&lt;/P&gt;&lt;P&gt;          V_SUCCESS = V_SUCCESS + C_INCREMENT.&lt;/P&gt;&lt;P&gt;          IT_RESULT-MEGTYPE = 'Successful'.&lt;/P&gt;&lt;P&gt;          IT_RESULT-MESSAGE = V_LMSTRING.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     write: / MESSTAB.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;*Appending Table IT_RESULT.&lt;/P&gt;&lt;P&gt;    append IT_RESULT.&lt;/P&gt;&lt;P&gt;*Delete Rows of  Internal Table MESSTAB.&lt;/P&gt;&lt;P&gt;    refresh MESSTAB.&lt;/P&gt;&lt;P&gt;*Clear Header of MESSTAB.&lt;/P&gt;&lt;P&gt;    clear MESSTAB.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashu Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 05:33:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036970#M1350273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-10T05:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction error message capturing failed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036971#M1350274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Soniya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with Ankur &amp;amp; Keshu, it is not advisable to do BDC with e &lt;STRONG&gt;N&lt;/STRONG&gt; joy trxns. I will prefer use of BAPIs instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2009 05:34:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-message-capturing-failed/m-p/6036971#M1350274</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-08-10T05:34:17Z</dc:date>
    </item>
  </channel>
</rss>

