<?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: Regarding BDC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357439#M178150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All the messages will be captured in bdcmsgcoll.. &lt;/P&gt;&lt;P&gt;After call transaction, do not check for sy-subrc.. instead &lt;/P&gt;&lt;P&gt;loop at bdcmsgcoll .&lt;/P&gt;&lt;P&gt; if bdcmsgcoll-msgtyp = 'E' or bdcmsgcoll-msgtyp = 'W'&lt;/P&gt;&lt;P&gt;  Function module.. FORMAT_MESSAGE.. and get the message text and print it on the screen...&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;But remember not at all the error messages will have the msgtyp E or A or W.. Some of them can be I or S..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 May 2006 06:12:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-19T06:12:51Z</dc:date>
    <item>
      <title>Regarding BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357438#M178149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends&lt;/P&gt;&lt;P&gt;     To capture errors in BDC call transaction i used BDCMSGCOLL .But i am not able to get errors even if i give wrong record in input file(presentaion server file) and when recording it is showing error  wrong material number(for ex.) after when i exit that recording and return to program but it doesn't show what errors occured in output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what type of errrors may be captured during processing in real time &lt;/P&gt;&lt;P&gt;I am in confusion plz help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;sandhya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 06:08:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357438#M178149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T06:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357439#M178150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All the messages will be captured in bdcmsgcoll.. &lt;/P&gt;&lt;P&gt;After call transaction, do not check for sy-subrc.. instead &lt;/P&gt;&lt;P&gt;loop at bdcmsgcoll .&lt;/P&gt;&lt;P&gt; if bdcmsgcoll-msgtyp = 'E' or bdcmsgcoll-msgtyp = 'W'&lt;/P&gt;&lt;P&gt;  Function module.. FORMAT_MESSAGE.. and get the message text and print it on the screen...&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;But remember not at all the error messages will have the msgtyp E or A or W.. Some of them can be I or S..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 06:12:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357439#M178150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T06:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357440#M178151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sandhya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Suppose you have 5 records in file,&lt;/P&gt;&lt;P&gt;   and the error comes only on the 1st and 2nd records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. then after the full bdc is done,&lt;/P&gt;&lt;P&gt;   the BDCMSGCOLL will contain&lt;/P&gt;&lt;P&gt;   errors (IF ANY) for the 5th record only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In your case if 5th record is ok,&lt;/P&gt;&lt;P&gt;   then it will be blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. This happens bcos CALL TRANSACTION is called in a&lt;/P&gt;&lt;P&gt;   loop 5 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. U will have to , after each call transaction,&lt;/P&gt;&lt;P&gt;   use anothr table just like bdcmsgcoll,&lt;/P&gt;&lt;P&gt;   and append it to this new table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 06:14:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357440#M178151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T06:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357441#M178152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sandya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think BDCMSGCOLL will capture the errors in the recorded fields. if you give wrong file name and if it exist in the presentation server then it will be captured and the the data that will be placed in the material field. the datas placed might be wrong that why it will be giving the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and did you use format_message function module to convert the messages to text.&lt;/P&gt;&lt;P&gt;i think in that you will get type of error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 06:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357441#M178152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T06:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357442#M178153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;  Thanks &lt;/P&gt;&lt;P&gt;     But I used Format_message too&lt;/P&gt;&lt;P&gt;    I want to know what type of errors we get in real time when doing BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sandhya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 06:21:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357442#M178153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T06:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357443#M178154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. what type of errors we get in real time when doing BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  We get only those errors(if any)&lt;/P&gt;&lt;P&gt;  which the transaction will issue&lt;/P&gt;&lt;P&gt;  while doing data entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. There are no separate set of errors&lt;/P&gt;&lt;P&gt;   which will specially occur when doing bdc !&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 06:23:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357443#M178154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T06:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357444#M178155</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;I think u should save Error Message each time after Call Transaction, like: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL TRANSACTION TCODE USING BDCDATA
                   MODE   CTUMODE
                   UPDATE CUPDATE
                   MESSAGES INTO MESSTAB.

  IF MESSTAB[] IS NOT INITIAL.
      READ TABLE MESSTAB INDEX 1.
      MOVE-CORRESPONDING MESSTAB TO ITAB_ERR.
      COLLECT ITAB_ERR.  
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 06:24:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357444#M178155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T06:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357445#M178156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sandhya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code may helps your requirement. Please reward points if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Types declaration for error file.&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF t_error,&lt;/P&gt;&lt;P&gt;          matnr TYPE mara-matnr,&lt;/P&gt;&lt;P&gt;          text(100) TYPE c,&lt;/P&gt;&lt;P&gt;        END OF t_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*internal table to hold data for error report&lt;/P&gt;&lt;P&gt;DATA: it_error TYPE STANDARD TABLE OF t_error WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;*Internal table to store messages from Call Transaction.&lt;/P&gt;&lt;P&gt;DATA : it_bdcmsgcoll TYPE STANDARD TABLE OF bdcmsgcoll WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;*Internal table to hold bdc data&lt;/P&gt;&lt;P&gt;DATA : it_bdctab TYPE STANDARD TABLE OF bdcdata WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : v_lines TYPE i,  " No. of lines&lt;/P&gt;&lt;P&gt;       v_lin TYPE i,    " No. of lines&lt;/P&gt;&lt;P&gt;       v_lines1 TYPE i, " No. of lines&lt;/P&gt;&lt;P&gt;       v_error TYPE i,  " No. of error postings&lt;/P&gt;&lt;P&gt;       v_success TYPE i," No. of successful postings&lt;/P&gt;&lt;P&gt;       v_mode(1) TYPE c VALUE 'N'," Call Transaction mode&lt;/P&gt;&lt;P&gt;       v_update(1) VALUE 'S',"Calltransaction update mode&lt;/P&gt;&lt;P&gt;       v_tcode TYPE tstc-tcode VALUE 'XK15',"Transaction code&lt;/P&gt;&lt;P&gt;       v_head(7)," For header&lt;/P&gt;&lt;P&gt;       v_mesg(120)." Message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION v_tcode USING it_bdctab&lt;/P&gt;&lt;P&gt;                           MODE   v_mode&lt;/P&gt;&lt;P&gt;                           UPDATE v_update&lt;/P&gt;&lt;P&gt;                           MESSAGES INTO it_bdcmsgcoll.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    v_error = v_error + 1.&lt;/P&gt;&lt;P&gt;    DESCRIBE TABLE it_bdcmsgcoll LINES v_lin.&lt;/P&gt;&lt;P&gt;    READ TABLE it_bdcmsgcoll INDEX v_lin.&lt;/P&gt;&lt;P&gt;*--- Formats message returned by Call transaction.&lt;/P&gt;&lt;P&gt;    PERFORM format_message.&lt;/P&gt;&lt;P&gt;**--- Perform error processing&lt;/P&gt;&lt;P&gt;    it_error-matnr = it_a501-matnr.&lt;/P&gt;&lt;P&gt;    it_error-text = v_mesg.&lt;/P&gt;&lt;P&gt;    APPEND it_error.&lt;/P&gt;&lt;P&gt;    CLEAR it_error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM format_message.&lt;/P&gt;&lt;P&gt;  CLEAR v_mesg.&lt;/P&gt;&lt;P&gt;*Function module to get the message&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_bdcmsgcoll-msgid&lt;/P&gt;&lt;P&gt;      lang      = sy-langu&lt;/P&gt;&lt;P&gt;      no        = it_bdcmsgcoll-msgnr&lt;/P&gt;&lt;P&gt;      v1        = it_bdcmsgcoll-msgv1&lt;/P&gt;&lt;P&gt;      v2        = it_bdcmsgcoll-msgv2&lt;/P&gt;&lt;P&gt;      v3        = it_bdcmsgcoll-msgv3&lt;/P&gt;&lt;P&gt;      v4        = it_bdcmsgcoll-msgv4&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      msg       = v_mesg&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;P&gt;    MESSAGE i000 WITH 'Message could not be formatted'(014).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " FORMAT_MESSAGE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 06:48:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bdc/m-p/1357445#M178156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T06:48:18Z</dc:date>
    </item>
  </channel>
</rss>

