<?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 structures in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-structures/m-p/3417317#M820732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;BDCMSGCOLL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCMSGCOLL is a structure available in the abap dictonary. We use this to handle errors in call&lt;/P&gt;&lt;P&gt;transaction. We need to declare an internal table like bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a database table is updated we get some messages like sucessfull , or not sucessfull or sucessful with some warning message. All these messages pass through this structure. We can capture them using a function module called FORMAT_MESSAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check is WIki for BDC sample program..&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/bdc%2bsample%2bprogram%2bfor%2bxk01" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/bdc%2bsample%2bprogram%2bfor%2bxk01&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2008 20:46:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-18T20:46:17Z</dc:date>
    <item>
      <title>bdc structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-structures/m-p/3417316#M820731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;I have created a simple bdc's . &lt;/P&gt;&lt;P&gt;I know the bdcdata strucutre and it's uses .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont know exactly about bdcmsgcoll, and how we can use it for error handling .??????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if possible  just give me a sample example ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am working on xk02 t-code ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 18:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-structures/m-p/3417316#M820731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T18:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: bdc structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-structures/m-p/3417317#M820732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;BDCMSGCOLL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCMSGCOLL is a structure available in the abap dictonary. We use this to handle errors in call&lt;/P&gt;&lt;P&gt;transaction. We need to declare an internal table like bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a database table is updated we get some messages like sucessfull , or not sucessfull or sucessful with some warning message. All these messages pass through this structure. We can capture them using a function module called FORMAT_MESSAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check is WIki for BDC sample program..&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/bdc%2bsample%2bprogram%2bfor%2bxk01" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/bdc%2bsample%2bprogram%2bfor%2bxk01&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 20:46:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-structures/m-p/3417317#M820732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T20:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: bdc structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-structures/m-p/3417318#M820733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using CALL TRANSACTION then we generally have those errors in BDCMSGCOLL structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure of &lt;STRONG&gt;BDCMSGCOLL.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;TCODE -&amp;gt; BDC Transaction code&lt;/P&gt;&lt;P&gt;DYNAME -&amp;gt; Batch input module name&lt;/P&gt;&lt;P&gt;DYNUMB -&amp;gt; Batch input screen number&lt;/P&gt;&lt;P&gt;MSGTYP -&amp;gt;Batch input message type&lt;/P&gt;&lt;P&gt;MSGSPRA -&amp;gt; Language ID of a message&lt;/P&gt;&lt;P&gt;MSGID -&amp;gt; Batch input message ID&lt;/P&gt;&lt;P&gt;MSGNR -&amp;gt; Batch input message number&lt;/P&gt;&lt;P&gt;MSGV1 -&amp;gt; Variable part of a message&lt;/P&gt;&lt;P&gt;MSGV2 -&amp;gt; Variable part of a message&lt;/P&gt;&lt;P&gt;MSGV3 -&amp;gt; Variable part of a message&lt;/P&gt;&lt;P&gt;MSGV4 -&amp;gt; Variable part of a message&lt;/P&gt;&lt;P&gt;FLDNAME -&amp;gt; Field name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Steps for the error handling in CALL TRANSACTION:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_DATA.&lt;/P&gt;&lt;P&gt;Populate IT_BDCTAB table&lt;/P&gt;&lt;P&gt;CALL TRANSACTION USING IT_BDCDATA&lt;/P&gt;&lt;P&gt;MODE&amp;lt;A/N/E&amp;gt;&lt;/P&gt;&lt;P&gt;UPDATE&amp;lt;A/S&amp;gt;&lt;/P&gt;&lt;P&gt;MESSAGES INTO IT_BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;if sy-subrc 0.&lt;/P&gt;&lt;P&gt;Call function FORMAT_MESSAGE.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Call Funciton BAPI_MESSAGE_GETDETAIL&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Querry the message Text from teh table T100 for the Messages Collected into IT_BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Text in T100-TEXT would be maintained with place holders (&amp;amp;1,&amp;amp;2,&amp;amp;3,&amp;amp;4) &lt;/P&gt;&lt;P&gt;Replace the place holders with Variable Texts from IT_BDCMSGCOLL(MSGV1,MSGV2,MSGV3,MSGV4).&lt;/P&gt;&lt;P&gt;Either APPEND the error message to another internal table IT_ERROR and display it finally or display the record and message immediately.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 00:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-structures/m-p/3417318#M820733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T00:05:27Z</dc:date>
    </item>
  </channel>
</rss>

