<?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: Error data.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-data/m-p/2580552#M590046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  se this code&lt;/P&gt;&lt;P&gt;CALL TRANSACTION tcode USING i_bdcdata MODE l_mode&lt;/P&gt;&lt;P&gt;UPDATE upd_n&lt;/P&gt;&lt;P&gt;MESSAGES INTO err_data.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;IF NOT err_data[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT err_data WHERE msgtyp EQ 'S' OR msgtyp EQ 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;id = err_data-msgid&lt;/P&gt;&lt;P&gt;lang = 'E'&lt;/P&gt;&lt;P&gt;no = err_data-msgnr&lt;/P&gt;&lt;P&gt;v1 = err_data-msgv1&lt;/P&gt;&lt;P&gt;v2 = err_data-msgv2&lt;/P&gt;&lt;P&gt;v3 = err_data-msgv3&lt;/P&gt;&lt;P&gt;v4 = err_data-msgv4&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;msg = v_text&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;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&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;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2007 06:19:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-02T06:19:28Z</dc:date>
    <item>
      <title>Error data..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-data/m-p/2580550#M590044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Members,&lt;/P&gt;&lt;P&gt;                      In BDC how to display the error data's after uploaded the data using text file(notepad), Could u send me the sample code's and where i have t write the piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;   Thanuskodi T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 06:15:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-data/m-p/2580550#M590044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T06:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error data..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-data/m-p/2580551#M590045</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;Using function module 'FORMAT_MESSAGE' you can capture the messages. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample of the program code for that: &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;  LOOP AT it_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     = it_messtab-msgid &lt;/P&gt;&lt;P&gt;      lang   = it_messtab-msgspra &lt;/P&gt;&lt;P&gt;      no     = it_messtab-msgnr &lt;/P&gt;&lt;P&gt;      v1     = it_messtab-msgv1 &lt;/P&gt;&lt;P&gt;      v2     = it_messtab-msgv2 &lt;/P&gt;&lt;P&gt;    IMPORTING &lt;/P&gt;&lt;P&gt;    msg    =  g_msg &lt;/P&gt;&lt;P&gt;  EXCEPTIONS &lt;/P&gt;&lt;P&gt;      OTHERS = 0. &lt;/P&gt;&lt;P&gt;  IF it_messtab-msgtyp = 'S'. &lt;/P&gt;&lt;P&gt;    it_sucess-sucess_rec = g_msg. &lt;/P&gt;&lt;P&gt;    it_sucess-lifnr = it_header-lifnr." Based on your field &lt;/P&gt;&lt;P&gt;    it_sucess-tabix = v_lines. &lt;/P&gt;&lt;P&gt;    APPEND it_sucess. &lt;/P&gt;&lt;P&gt;  ELSEIF it_messtab-msgtyp = 'E'. &lt;/P&gt;&lt;P&gt;    it_error-error_rec = g_msg. &lt;/P&gt;&lt;P&gt;    it_error-lifnr = it_header-lifnr. &lt;/P&gt;&lt;P&gt;    it_error-tabix = v_lines. &lt;/P&gt;&lt;P&gt;    APPEND it_error. &lt;/P&gt;&lt;P&gt;  ELSE. &lt;/P&gt;&lt;P&gt;    it_info-info_rec = g_msg. &lt;/P&gt;&lt;P&gt;    it_info-lifnr    = it_header-lifnr. &lt;/P&gt;&lt;P&gt;    it_info-tabix    = v_lines. &lt;/P&gt;&lt;P&gt;    APPEND it_info. &lt;/P&gt;&lt;P&gt;  ENDIF. &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;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 06:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-data/m-p/2580551#M590045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T06:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error data..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-data/m-p/2580552#M590046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  se this code&lt;/P&gt;&lt;P&gt;CALL TRANSACTION tcode USING i_bdcdata MODE l_mode&lt;/P&gt;&lt;P&gt;UPDATE upd_n&lt;/P&gt;&lt;P&gt;MESSAGES INTO err_data.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;IF NOT err_data[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT err_data WHERE msgtyp EQ 'S' OR msgtyp EQ 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;id = err_data-msgid&lt;/P&gt;&lt;P&gt;lang = 'E'&lt;/P&gt;&lt;P&gt;no = err_data-msgnr&lt;/P&gt;&lt;P&gt;v1 = err_data-msgv1&lt;/P&gt;&lt;P&gt;v2 = err_data-msgv2&lt;/P&gt;&lt;P&gt;v3 = err_data-msgv3&lt;/P&gt;&lt;P&gt;v4 = err_data-msgv4&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;msg = v_text&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;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&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;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 06:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-data/m-p/2580552#M590046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T06:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error data..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-data/m-p/2580553#M590047</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 session method..&lt;/P&gt;&lt;P&gt;system maintains implicit error log..u need not to main tain any thing for this&lt;/P&gt;&lt;P&gt;if u want to see forst&lt;/P&gt;&lt;P&gt;execute ur bdc with session name any in SM35.&lt;/P&gt;&lt;P&gt;after that select session name and click on error log on application bar.u can fid out all error relevent to ur seseion name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in call transaction..&lt;/P&gt;&lt;P&gt;u have to maintain explicit error..for this&lt;/P&gt;&lt;P&gt;define a internal table with include structure BDCMSGCOLL...&lt;/P&gt;&lt;P&gt;mention this internal table in ur call transaction command like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'xk01' using '&amp;lt;BDCDATA table name&amp;gt;' messages into &amp;lt;BDCMSGCOLL table name&amp;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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 06:20:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-data/m-p/2580553#M590047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T06:20:04Z</dc:date>
    </item>
  </channel>
</rss>

