<?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: how to capture the errors BDC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors-bdc/m-p/2806227#M655793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;capture error in call transaction -&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&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;FIRST ME MUST DECLARE AN INTERNAL TABLE WITH THE STRUCTURE OF BDCMSGCOLL TABLE. &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;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;AND THUS THE ERROR MESSAGES WILL BE SENT TO THE INTERNAL TABLE WHICH WE DECLARED AT THE BEGINNING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for uploading Ms Excel Sheet use fm -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KCD_EXCEL_OLE_TO_INT_CONVERT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2007 09:09:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-12T09:09:00Z</dc:date>
    <item>
      <title>how to capture the errors BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors-bdc/m-p/2806226#M655792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Call transaction method, how to capture the errors ? &lt;/P&gt;&lt;P&gt;How to load data from MS Excel sheet to SAP by using BDC method ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 09:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors-bdc/m-p/2806226#M655792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T09:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to capture the errors BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors-bdc/m-p/2806227#M655793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;capture error in call transaction -&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&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;FIRST ME MUST DECLARE AN INTERNAL TABLE WITH THE STRUCTURE OF BDCMSGCOLL TABLE. &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;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;AND THUS THE ERROR MESSAGES WILL BE SENT TO THE INTERNAL TABLE WHICH WE DECLARED AT THE BEGINNING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for uploading Ms Excel Sheet use fm -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KCD_EXCEL_OLE_TO_INT_CONVERT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 09:09:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors-bdc/m-p/2806227#M655793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T09:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to capture the errors BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors-bdc/m-p/2806228#M655794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Call transaction method, how to capture the errors ? &lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'FK01' USING IT_BDCDATA MODE 'A'&lt;/P&gt;&lt;P&gt;                        UPDATE 'S'&lt;/P&gt;&lt;P&gt;                        MESSAGES INTO IT_MESSAGES.&lt;/P&gt;&lt;P&gt;WRITe:/ SY-SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM FORMAT_MESSAGES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR IT_BDCDATA.&lt;/P&gt;&lt;P&gt;REFRESH IT_BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form FORMAT_MESSAGES .&lt;/P&gt;&lt;P&gt;DATA: L_MSG(100).&lt;/P&gt;&lt;P&gt;LOOP AT IT_MESSAGES.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;   ID              = IT_MESSAGES-MSGID&lt;/P&gt;&lt;P&gt;   LANG            = SY-LANGU&lt;/P&gt;&lt;P&gt;   NO              = IT_MESSAGES-MSGNR&lt;/P&gt;&lt;P&gt;   V1              = IT_MESSAGES-MSGV1&lt;/P&gt;&lt;P&gt;   V2              = IT_MESSAGES-MSGV2&lt;/P&gt;&lt;P&gt;   V3              = IT_MESSAGES-MSGV3&lt;/P&gt;&lt;P&gt;   V4              = IT_MESSAGES-MSGV4&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   MSG             = L_MSG&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;          .&lt;/P&gt;&lt;P&gt;write:/ l_msg.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to load data from MS Excel sheet to SAP by using BDC method ? &lt;/P&gt;&lt;P&gt;use the FM ALSM_EXCEL_TO_INTERNAL_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 09:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors-bdc/m-p/2806228#M655794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T09:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to capture the errors BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors-bdc/m-p/2806229#M655795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;needed some code for uplaoding excel sheet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 09:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors-bdc/m-p/2806229#M655795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T09:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to capture the errors BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors-bdc/m-p/2806230#M655796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add values to internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SORT t_cells BY row col.&lt;/P&gt;&lt;P&gt;LOOP AT t_cells INTO wa_cells.&lt;/P&gt;&lt;P&gt;MOVE : wa_cells-col TO l_index.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT l_index OF STRUCTURE itab TO &amp;lt;f_value&amp;gt;.&lt;/P&gt;&lt;P&gt;MOVE : wa_cells-value TO &amp;lt;f_value&amp;gt;.&lt;/P&gt;&lt;P&gt;AT END OF row.&lt;/P&gt;&lt;P&gt;APPEND itab&lt;/P&gt;&lt;P&gt;CLEAR itab.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 09:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors-bdc/m-p/2806230#M655796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T09:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to capture the errors BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors-bdc/m-p/2806231#M655797</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;1. To Capture errors in Call transaction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using BDCMSGCOLL Structure we have to declare an itab.&lt;/P&gt;&lt;P&gt;DATA : IT_MSG LIKE TABLE OF BDCMSGCOLL .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then We can catch the messages using:&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'MK01'&lt;/P&gt;&lt;P&gt;USING IT_BDCDATA&lt;/P&gt;&lt;P&gt;MODE 'N'&lt;/P&gt;&lt;P&gt;MESSAGES INTO IT_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;LOOP AT IT_MSG INTO WA_MSG &lt;/P&gt;&lt;P&gt;WHERE MSGTYP = 'E' OR MSGTYP = 'A'..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt; call the FM    FORMAT_MESSAGE to get the Message text and display.&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) To upload data from Excel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; use the FM GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 11:04:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-the-errors-bdc/m-p/2806231#M655797</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-12T11:04:39Z</dc:date>
    </item>
  </channel>
</rss>

