<?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 bdc problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/3156943#M750925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;     i am wroking on call transaction and i want to store error occured records into one internal table and download to desktop.plz help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2007 15:02:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-06T15:02:54Z</dc:date>
    <item>
      <title>bdc problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/3156943#M750925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;     i am wroking on call transaction and i want to store error occured records into one internal table and download to desktop.plz help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2007 15:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/3156943#M750925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-06T15:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: bdc problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/3156944#M750926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CALL TRANSACTION 'xxx'  USING BDCDATA  MODE 'N' 
                         MESSAGES INTO ITAB. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now all the error messages will be ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can download it using GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2007 15:04:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/3156944#M750926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-06T15:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: bdc problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/3156945#M750927</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;Check this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:  BEGIN OF s_ctu_params,
          dismode  TYPE ctu_params-dismode  VALUE 'N',
          updmode  TYPE ctu_params-updmode  VALUE 'A',
          cattmode TYPE ctu_params-cattmode,
          defsize  TYPE ctu_params-defsize  VALUE 'X' , "
          racommit TYPE ctu_params-racommit,
          nobinpt  TYPE ctu_params-nobinpt,
          nobiend  TYPE ctu_params-nobiend,
       END OF s_ctu_params.

DATA : git_bdcdata LIKE STANDARD TABLE OF s_bdcdata,
       git_messtab LIKE STANDARD TABLE OF s_messtab.

  CALL TRANSACTION &amp;lt;TCODE&amp;gt;  USING git_bdcdata
                                 OPTIONS FROM s_ctu_params
                                 MESSAGES INTO git_messtab.

    DESCRIBE TABLE git_messtab LINES lv_lines.
    READ TABLE git_messtab INTO wa_messtab INDEX lv_lines.
    IF sy-subrc EQ 0.
      CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          id        = wa_messtab-msgid
          lang      = wa_messtab-msgspra
          no        = wa_messtab-msgnr
          v1        = wa_messtab-msgv1
          v2        = wa_messtab-msgv2
          v3        = wa_messtab-msgv3
          v4        = wa_messtab-msgv4
        IMPORTING
          msg       = lv_msg
        EXCEPTIONS
          not_found = 1
          OTHERS    = 2.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2007 15:09:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/3156945#M750927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-06T15:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: bdc problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/3156946#M750928</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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2007 16:37:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/3156946#M750928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-06T16:37:37Z</dc:date>
    </item>
  </channel>
</rss>

