<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3099815#M735528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare an internal table to hold the messages with type bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gt_messtab TYPE STANDARD TABLE OF bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lv_text(125) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call transaction statemet should be with Message field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'TCODE' USING bdcdata MODE 'A/N/E'&lt;/P&gt;&lt;P&gt;UPDATE 'A/S'&lt;/P&gt;&lt;P&gt;MESSAGES INTO gt_messtab. """"""""'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not gt_messtab is initial. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE gt_messtab WITH KEY msgtyp = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;LOOP AT gt_messtab WHERE 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 = gt_messtab-msgid&lt;/P&gt;&lt;P&gt;no = gt_messtab-msgnr&lt;/P&gt;&lt;P&gt;v1 = gt_messtab-msgv1&lt;/P&gt;&lt;P&gt;v2 = gt_messtab-msgv2&lt;/P&gt;&lt;P&gt;v3 = gt_messtab-msgv3&lt;/P&gt;&lt;P&gt;v4 = gt_messtab-msgv4&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;msg = lv_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_error-text = lv_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append gt_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;refresh gt_messtab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT gt_error contains all error records in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use FM: GUI_DOWNLOAD to down load error records into desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = gv_filename &lt;/P&gt;&lt;P&gt;filetype = 'ASC'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = gt_error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it downloads all error records in specified path of presentation server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2007 19:25:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-06T19:25:37Z</dc:date>
    <item>
      <title>bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3099812#M735525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to download error record from log file in bdc?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 13:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3099812#M735525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T13:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3099813#M735526</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;After calling transaction use the message table to get all the bdc´s log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IE: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'XXXX' USING batch_bdc MODE bmode UPDATE 'S'&lt;/P&gt;&lt;P&gt;    MESSAGES INTO tbl_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at TBL_MSG&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 14:00:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3099813#M735526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T14:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3099814#M735527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi uday,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for &amp;lt;b&amp;gt;Call transaction method:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Delcaring the structure for storing error messages in call transaction&lt;/P&gt;&lt;P&gt;Data: BDCMSG like BDCMSGCOLL occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data:i_bdcdata like bdcdata occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tcode = can be any tcode ex: 'MM01' etc.&lt;/P&gt;&lt;P&gt;i_mode = mode are 3 types 'A' = all sceen N = no screen and E = Error screen.&lt;/P&gt;&lt;P&gt;Upd_n = update 'S' =  Synchronous , 'A' = Asynchronous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION &amp;lt;tcode&amp;gt; USING i_bdcdata MODE l_mode&lt;/P&gt;&lt;P&gt;UPDATE upd_n 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;&lt;/P&gt;&lt;P&gt;IN Sesssion method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Session method will create error log file in SM35.&lt;/P&gt;&lt;P&gt;Go to t-code&amp;lt;b&amp;gt; SM35P&amp;lt;/b&amp;gt; or table &amp;lt;b&amp;gt;APQL&amp;lt;/b&amp;gt; to see the log details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if useful&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sunil kairam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2007 04:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3099814#M735527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-06T04:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3099815#M735528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare an internal table to hold the messages with type bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gt_messtab TYPE STANDARD TABLE OF bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lv_text(125) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call transaction statemet should be with Message field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'TCODE' USING bdcdata MODE 'A/N/E'&lt;/P&gt;&lt;P&gt;UPDATE 'A/S'&lt;/P&gt;&lt;P&gt;MESSAGES INTO gt_messtab. """"""""'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not gt_messtab is initial. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE gt_messtab WITH KEY msgtyp = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;LOOP AT gt_messtab WHERE 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 = gt_messtab-msgid&lt;/P&gt;&lt;P&gt;no = gt_messtab-msgnr&lt;/P&gt;&lt;P&gt;v1 = gt_messtab-msgv1&lt;/P&gt;&lt;P&gt;v2 = gt_messtab-msgv2&lt;/P&gt;&lt;P&gt;v3 = gt_messtab-msgv3&lt;/P&gt;&lt;P&gt;v4 = gt_messtab-msgv4&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;msg = lv_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_error-text = lv_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append gt_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;refresh gt_messtab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT gt_error contains all error records in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use FM: GUI_DOWNLOAD to down load error records into desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = gv_filename &lt;/P&gt;&lt;P&gt;filetype = 'ASC'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = gt_error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it downloads all error records in specified path of presentation server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2007 19:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3099815#M735528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-06T19:25:37Z</dc:date>
    </item>
  </channel>
</rss>

