<?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: How to capture BDC errors in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-bdc-errors/m-p/2284432#M497650</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;This is for ur info. All the zip codes are related with Address table. Please check with with country and state with ur zip code in Address table. U can check this in zipcode domain level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward me if itd useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2007 17:42:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-30T17:42:43Z</dc:date>
    <item>
      <title>How to capture BDC errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-bdc-errors/m-p/2284428#M497646</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 have a BDC program for Address change VD02, here I am getting 2 errors saying that there a gap in the zip code. I checked the input file and found out from where the error is comming but user is asking is there any way, we can we can display this error with the customer number of incorrect transaction. In the log it just gave me the error, I want to find out from which store number the error is comming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the input fields and error log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;veni.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

TYPES: BEGIN OF type_infile,
         KUNNR(10) TYPE c,  "Customer Number
         NAME1(35) TYPE c,                                  "Name1
         STRAS(35) TYPE c,  "street
         ORT01(35) TYPE c,  "City
         REGIO(03) TYPE c,  "Region
         PSTLZ(10) TYPE c,  "Postal Code
         GLNNO(20) TYPE c.  "Global Location Number

TYPES: END OF type_infile.

 Time    Message                                                         TransactIndex Modul       ScreenIndeT    ID        No.       
 15:27:31Changes have been made                                          VD02    74    SAPMF02D    0125  4   S    F2        056       
 15:27:31Transaction was processed successfully                          VD02    74                      0   S    00        355       
 15:27:32Changes have been made                                          VD02    75    SAPMF02D    0125  4   S    F2        056       
 15:27:32Transaction was processed successfully                          VD02    75                      0   S    00        355       
 15:27:32Postal Code must not contain any gaps                           VD02    76    SAPMF02D    0110  2   E    AR        105       
 15:27:32Transaction error                                               VD02    76                      0   S    00        357       
 15:27:32Changes have been made                                          VD02    77    SAPMF02D    0125  4   S    F2        056       
 15:27:32Transaction was processed successfully                          VD02    77                      0   S    00        355       

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 17:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-bdc-errors/m-p/2284428#M497646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T17:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture BDC errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-bdc-errors/m-p/2284429#M497647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use bdcmsgcoll structure :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION tcode USING bdcdata MODE mod MESSAGES INTO itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*get text to bdc-message&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;  LOOP AT itab WHERE msgtyp = 'E'.&lt;/P&gt;&lt;P&gt;*fill errtab&lt;/P&gt;&lt;P&gt;    CLEAR errtab.&lt;/P&gt;&lt;P&gt;    MOVE p_kunnr TO errtab-kunnr.&lt;/P&gt;&lt;P&gt;    MOVE p_bukrs TO errtab-bukrs.&lt;/P&gt;&lt;P&gt;    MOVE p_kde   TO errtab-kde.&lt;/P&gt;&lt;P&gt;    MOVE p_bkz   TO errtab-bkz.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    MOVE itab-msgnr TO errtab-msgnr.&lt;/P&gt;&lt;P&gt;    MOVE itab-msgid TO errtab-msgid.&lt;/P&gt;&lt;P&gt;    MOVE itab-fldname TO  errtab-fieldn.&lt;/P&gt;&lt;P&gt;*fill protocol&lt;/P&gt;&lt;P&gt;    CLEAR prot.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING itab TO prot.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING errtab  TO prot.&lt;/P&gt;&lt;P&gt;    MOVE itab-fldname TO prot-feld.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    SELECT SINGLE text FROM  t100 INTO prot-text&lt;/P&gt;&lt;P&gt;           WHERE  sprsl  = sy-langu&lt;/P&gt;&lt;P&gt;           AND    arbgb  = prot-msgid&lt;/P&gt;&lt;P&gt;           AND    msgnr  = prot-msgnr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'TB_MESSAGE_BUILD_TEXT'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              langu = sy-langu&lt;/P&gt;&lt;P&gt;              msgid = itab-msgid&lt;/P&gt;&lt;P&gt;              msgno = prot-msgnr&lt;/P&gt;&lt;P&gt;              msgv1 = prot-msgv1&lt;/P&gt;&lt;P&gt;              msgv2 = prot-msgv2&lt;/P&gt;&lt;P&gt;              msgv3 = prot-msgv3&lt;/P&gt;&lt;P&gt;              msgv4 = prot-msgv4&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              text  = prot-text.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    APPEND prot.&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;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 17:13:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-bdc-errors/m-p/2284429#M497647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T17:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture BDC errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-bdc-errors/m-p/2284430#M497648</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;Make use of the FM FORMAT_MESSAGE to get the detailed info of the message .&lt;/P&gt;&lt;P&gt;Also make a search with the above said FM in SDN and you will see BDC program examples which have made use fo this FM .&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;Thanks ,&lt;/P&gt;&lt;P&gt;Varun .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 17:20:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-bdc-errors/m-p/2284430#M497648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T17:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture BDC errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-bdc-errors/m-p/2284431#M497649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You appear to be using the session method, so I don't think there's much you can do.  You could convert it to CALL TRANSACTION and give more meaningfull messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 17:38:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-bdc-errors/m-p/2284431#M497649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T17:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to capture BDC errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-bdc-errors/m-p/2284432#M497650</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;This is for ur info. All the zip codes are related with Address table. Please check with with country and state with ur zip code in Address table. U can check this in zipcode domain level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward me if itd useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 17:42:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-capture-bdc-errors/m-p/2284432#M497650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-30T17:42:43Z</dc:date>
    </item>
  </channel>
</rss>

