<?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: Error Handling in BDC....? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc/m-p/2790517#M650957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response guys....&lt;/P&gt;&lt;P&gt;i will try this and then let you know...&lt;/P&gt;&lt;P&gt;thanks for ur help....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers:&lt;/P&gt;&lt;P&gt;jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2007 05:12:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-12T05:12:25Z</dc:date>
    <item>
      <title>Error Handling in BDC....?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc/m-p/2790513#M650953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;I have scenario here where in I have written a BDC program for transaction FV50L to park an FI document and then later made it is a function module.In this function module one of the TABLES parameter is BAPIRET2 to return error messages to the calling program..&lt;/P&gt;&lt;P&gt;Actually this FM is RFC enabled so that it can be called from non sap system...&lt;/P&gt;&lt;P&gt;Now i am not sure how to transfer the error messages from the BDC program to this BAPIRET2 table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any of u gurus provide me detail insight into this how it can be done....code samples will be helpful as i am still in a learning phase of ABAP...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers: Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 04:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc/m-p/2790513#M650953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T04:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling in BDC....?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc/m-p/2790514#M650954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jimmy..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this in case of Call transaction method only..&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;Using BDCMSGCOLL Structure we have to declare an itab.&lt;/P&gt;&lt;P&gt;DATA : IT_MSG LIKE TABLE OF BDCMSGCOLL .&lt;/P&gt;&lt;P&gt;DATA : V_MSG TYPE STRING .  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then We can catch the messages using:&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'MK01'&lt;/P&gt;&lt;P&gt;USING IT_BDCDATA&lt;/P&gt;&lt;P&gt;MODE 'N'&lt;/P&gt;&lt;P&gt;MESSAGES INTO IT_MSG.  "stores the messages &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;LOOP AT IT_MSG INTO WA_MSG .&lt;/P&gt;&lt;P&gt;**WHERE MSGTYP = 'E' OR MSGTYP = 'A'. "if you want only error messages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FORMAT_MESSAGE'  "To get the Message text into V_MSG.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;IT_BAPIRET2-MSGTYP = IT_MSG-MSGTYP.&lt;/P&gt;&lt;P&gt;IT_BAPIRET2-MSGID = IT_MSG-MSGTYP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_BAPIRET2-MESSAGE = V_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND IT_BAPIRET2.&lt;/P&gt;&lt;P&gt;CLEAR IT_BAPIRET2.&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;REWARD IF HELPFUL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 04:46:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc/m-p/2790514#M650954</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-12T04:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling in BDC....?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc/m-p/2790515#M650955</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;Simply loop over the error message table i_bdcmsgcoll &amp;amp; populate the table bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following are the fields of BDCMSGCOLL&lt;/P&gt;&lt;P&gt;TCODE&lt;/P&gt;&lt;P&gt;DYNAME&lt;/P&gt;&lt;P&gt;DYNUMB&lt;/P&gt;&lt;P&gt;MSGTYP&lt;/P&gt;&lt;P&gt;MSGSPRA&lt;/P&gt;&lt;P&gt;MSGID&lt;/P&gt;&lt;P&gt;MSGNR&lt;/P&gt;&lt;P&gt;MSGV1&lt;/P&gt;&lt;P&gt;MSGV2&lt;/P&gt;&lt;P&gt;MSGV3&lt;/P&gt;&lt;P&gt;MSGV4&lt;/P&gt;&lt;P&gt;ENV&lt;/P&gt;&lt;P&gt;FLDNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following are the fields of BAPIRET2.&lt;/P&gt;&lt;P&gt;TYPE&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;NUMBER&lt;/P&gt;&lt;P&gt;MESSAGE&lt;/P&gt;&lt;P&gt;LOG_NO&lt;/P&gt;&lt;P&gt;LOG_MSG_NO&lt;/P&gt;&lt;P&gt;MESSAGE_V1&lt;/P&gt;&lt;P&gt;MESSAGE_V2&lt;/P&gt;&lt;P&gt;MESSAGE_V3&lt;/P&gt;&lt;P&gt;MESSAGE_V4&lt;/P&gt;&lt;P&gt;PARAMETER&lt;/P&gt;&lt;P&gt;ROW&lt;/P&gt;&lt;P&gt;FIELD&lt;/P&gt;&lt;P&gt;SYSTEM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fill the common fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_bdcmsgcoll.&lt;/P&gt;&lt;P&gt;move i_bdcmsgcoll-msgtype to bapiret2-type.&lt;/P&gt;&lt;P&gt;move i_bdcmsgcoll-MSGV1 to bapiret2-MESSAGE_V1.&lt;/P&gt;&lt;P&gt;and so on..&lt;/P&gt;&lt;P&gt;append bapiret2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 04:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc/m-p/2790515#M650955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T04:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling in BDC....?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc/m-p/2790516#M650956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need to use BDCMSGCOLL  which holds all the messages during a bdc.&lt;/P&gt;&lt;P&gt;But this works only with the 'call transaction syntax'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 04:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc/m-p/2790516#M650956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T04:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling in BDC....?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc/m-p/2790517#M650957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response guys....&lt;/P&gt;&lt;P&gt;i will try this and then let you know...&lt;/P&gt;&lt;P&gt;thanks for ur help....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers:&lt;/P&gt;&lt;P&gt;jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 05:12:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc/m-p/2790517#M650957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T05:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling in BDC....?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc/m-p/2790518#M650958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;I tried doing this but it is not working...&lt;/P&gt;&lt;P&gt;How will be the mapping between BAPIRET2 and BDCMSGCOLL...I mean when the NDC program is succesfull it will generate a document number for the parked document....i will have to return this document number also in the FM...how can i do that....which field of BDCMSGCOLL will have this doc number...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest...I have to resolve it by end of the day...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers:&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 17:26:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc/m-p/2790518#M650958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T17:26:17Z</dc:date>
    </item>
  </channel>
</rss>

