<?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: 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/2044953#M420960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You could use CALL TRANSACTION...MESSAGES INTO &amp;lt;message tab&amp;gt; varaint...&lt;/P&gt;&lt;P&gt;Define the itab with ref to BDCMSGCOLL..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2007 05:25:52 GMT</pubDate>
    <dc:creator>abdul_hakim</dc:creator>
    <dc:date>2007-03-26T05:25:52Z</dc:date>
    <item>
      <title>bdc error handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/2044950#M420957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to capture the error data into an internal table and i want to display it in alv report along with other datas..&lt;/P&gt;&lt;P&gt;how to do this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help  me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance..&lt;/P&gt;&lt;P&gt; regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selvi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 05:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/2044950#M420957</guid>
      <dc:creator>selvi1</dc:creator>
      <dc:date>2007-03-26T05:16:07Z</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/2044951#M420958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There is a structure BDCMSGCOLL associated with BDC.Create an Internal table of this structure, and write the CAL Transaction as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION &amp;lt;Transaction&amp;gt; MODE &amp;lt;mode&amp;gt; UPDATE &amp;lt;Mode&amp;gt; MESSAGES INTO &amp;lt;internal table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will capture all sorts of messages which come during BDC processing into the table from which u can select the messages of MESSAGE TYPE = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 05:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/2044951#M420958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-26T05:19:25Z</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/2044952#M420959</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;As posted above, you can use the structure BDCMSGCOLL to get the error messages. Also, you can customise your own internal table(e.g. gt_error) where you can move messages or data that is invalid, etc. then display it if needed. Hope this helps you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Please award points if found useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 05:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/2044952#M420959</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2007-03-26T05:25:22Z</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/2044953#M420960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You could use CALL TRANSACTION...MESSAGES INTO &amp;lt;message tab&amp;gt; varaint...&lt;/P&gt;&lt;P&gt;Define the itab with ref to BDCMSGCOLL..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 05:25:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/2044953#M420960</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2007-03-26T05:25:52Z</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/2044954#M420961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;selvi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After Call transaction Statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;  Move the required data in to your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;After that pass taht internal table to FM.  See the example.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Data declaration.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;vbeln TYPE vbeln,&lt;/P&gt;&lt;P&gt;erdat TYPE erdat,&lt;/P&gt;&lt;P&gt;auart TYPE auart,&lt;/P&gt;&lt;P&gt;netwr TYPE vbak-netwr,&lt;/P&gt;&lt;P&gt;END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wa_kna1 TYPE kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t_fieldcatalog TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;DATA: s_fieldcatalog TYPE slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Selection-screen.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PARAMETERS: p_kunnr TYPE kunnr OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM kna1 INTO wa_kna1&lt;/P&gt;&lt;P&gt;WHERE kunnr = p_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE s208(00) WITH 'Invalid customer'.&lt;/P&gt;&lt;P&gt;LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Building the field catalog.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;s_fieldcatalog-col_pos = '1'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-rollname = 'VBELN'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-outputlen = '12'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO t_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR: s_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_fieldcatalog-col_pos = '2'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'ERDAT'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-rollname = 'ERDAT'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO t_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR: s_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_fieldcatalog-col_pos = '3'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'AUART'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-rollname = 'AUART'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO t_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR: s_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_fieldcatalog-col_pos = '4'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-fieldname = 'NETWR'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-rollname = 'NETWR_AK'.&lt;/P&gt;&lt;P&gt;s_fieldcatalog-do_sum = 'X'.&lt;/P&gt;&lt;P&gt;APPEND s_fieldcatalog TO t_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR: s_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the sales orders.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT vbeln erdat auart netwr&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;vbak&lt;/P&gt;&lt;P&gt;INTO TABLE itab&lt;/P&gt;&lt;P&gt;WHERE kunnr = p_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE s208(00) WITH 'No records found'.&lt;/P&gt;&lt;P&gt;LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_repid TYPE syrepid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display the alv&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_callback_program = v_repid&lt;/P&gt;&lt;P&gt;it_fieldcat = t_fieldcatalog&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 05:27:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/2044954#M420961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-26T05:27:40Z</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/2044955#M420962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai i want the sample code.. because it tried this one but its not working properly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 05:30:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/2044955#M420962</guid>
      <dc:creator>selvi1</dc:creator>
      <dc:date>2007-03-26T05:30:25Z</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/2044956#M420963</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;be clear with ur question.. whether u want to capture the error transaction data or the messages during the transaction...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to capture the Messages u can use a table with structure BDCMSGCOLL as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'SE--' using bdcdata messages into t_msgs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF u want to capture the error transaction data u can use another internal table with same structure as BDCDATA.. and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_DATA INTO WA_DATA.&lt;/P&gt;&lt;P&gt;........................&lt;/P&gt;&lt;P&gt;fill the BDCDATA table.&lt;/P&gt;&lt;P&gt;........................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION '----' USING T_BDCDATA .&lt;/P&gt;&lt;P&gt;(**** Call transaction returns sy-subrc &amp;lt;&amp;gt; 0 for erroneous transactions ***)&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;append wa_data into t_data1.&lt;/P&gt;&lt;P&gt;(*** or u can create a session here for the erroneous transactions ***)&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear t_bdcdata.&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;reward all helpful answers...&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 05:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/2044956#M420963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-26T05:31:01Z</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/2044957#M420964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;need steps to carry out bdc recording for t-code 'VA02'  to carry out new pricing..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 06:30:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-handling/m-p/2044957#M420964</guid>
      <dc:creator>selvi1</dc:creator>
      <dc:date>2007-03-26T06:30:51Z</dc:date>
    </item>
  </channel>
</rss>

