<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2521376#M570743</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;how can we handle errors in call transcation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Jul 2007 08:33:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-07T08:33:25Z</dc:date>
    <item>
      <title>bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2521376#M570743</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;how can we handle errors in call transcation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2007 08:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2521376#M570743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-07T08:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2521377#M570744</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;Populate error messages using a table with structure BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : &amp;lt;BDCMSGCOLL Int.Table&amp;gt; type table of bdcmsgcoll.
.....
.....
CALL TRANSACTION &amp;lt;T.Code&amp;gt; 
           USING &amp;lt;BDCTAB&amp;gt; 
           MODE &amp;lt;A/N/E&amp;gt; 
           UPDATE &amp;lt;S/A&amp;gt;
           MESSAGES INTO &amp;lt;BDCMSGCOLL Int.Table&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The structure has:&lt;/P&gt;&lt;P&gt;- Message type &lt;/P&gt;&lt;P&gt;- Message id &lt;/P&gt;&lt;P&gt;- Message Number &lt;/P&gt;&lt;P&gt;- Variable1 &lt;/P&gt;&lt;P&gt;- Variable2 &lt;/P&gt;&lt;P&gt;- Variable3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using FORMAT_MESSAGES function module we can process the error records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the following links for more informaion and code:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3695399"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3703495"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srilatha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2007 08:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2521377#M570744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-07T08:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2521378#M570745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With CALL TRANSACTION there is an addition in its syntax,  MESSAGES INTO itab,&lt;/P&gt;&lt;P&gt;The internal table itab must have the structure BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;check the sample code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BDCDATA TYPE TABLE OF BDCDATA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB TYPE TABLE OF BDCMSGCOLL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: PROGRAM LIKE SY-REPID, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WA_BDCDATA TYPE BDCDATA. &lt;/P&gt;&lt;P&gt;WA_BDCDATA-PROGRAM  = 'SAPMS38M'. &lt;/P&gt;&lt;P&gt;WA_BDCDATA-DYNPRO   = '0100'. &lt;/P&gt;&lt;P&gt;WA_BDCDATA-DYNBEGIN = 'X'. &lt;/P&gt;&lt;P&gt;APPEND WA_BDCDATA TO BDCDATA. &lt;/P&gt;&lt;P&gt;CLEAR WA_BDCDATA. &lt;/P&gt;&lt;P&gt;WA_BDCDATA-FNAM     = 'RS38M-PROGRAMM'. &lt;/P&gt;&lt;P&gt;WA_BDCDATA-FVAL     = PROGRAM. &lt;/P&gt;&lt;P&gt;APPEND WA_BDCDATA TO BDCDATA. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'SE38'  USING BDCDATA  MODE 'N' &lt;/P&gt;&lt;P&gt;                         MESSAGES INTO ITAB. &lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Antony Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REward points only if find useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2007 08:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2521378#M570745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-07T08:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2521379#M570746</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;u can use funtion module WRITE_MESSAGES and FORMAT_MESSAGES to read the messeges in stead of BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE CAN USE SESSION METHOD LOGFILE IN CALL TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. WE HAVE TO SEND ERROR RECORDS IN TO ONE INTERNAL TABLE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. NEXT FOR THAT ITAB U CAN USE SESSION METHOD .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 WITH THIS U WILL GET SESSION METHOD LOG FILE IN CALL TRAN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in call transaction we can explicitly provide the logic for handling error records, for that one we create internal table of type BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_ERROR LIKE BDCMSGCOLL WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION &amp;lt;transaction-name&amp;gt; using 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/L&amp;gt;&lt;/P&gt;&lt;P&gt;MESSAGES INTO IT_ERROR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can create a internal table like 'bsgmcgcoll'. All themessages will go to ternal table. We can get errors inthis internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below messages are go to internal table. when you run the&lt;/P&gt;&lt;P&gt;call transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Message type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Message id &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Message Number &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Variable1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Variable2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Variable3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by using FORMAT_MESSAGES function module we can process the error records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by using session method also we can handle error records in &lt;/P&gt;&lt;P&gt;CALL TRANSACTION method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION &amp;lt;transaction-name&amp;gt; using 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/L&amp;gt;.&lt;/P&gt;&lt;P&gt;&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;here call BDC_OPEN_GROUP for creating session.&lt;/P&gt;&lt;P&gt;here call BDC_INSERT for adding trassaction and table BDCDATA to handling error records.&lt;/P&gt;&lt;P&gt;here call BDC_CLOSE_GROUP for closing the session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now all the error records available in logfile, for handling error records follow these steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) goto SM35.&lt;/P&gt;&lt;P&gt;2) here select your SESSION name.&lt;/P&gt;&lt;P&gt;3) and choose LOG tab&lt;/P&gt;&lt;P&gt;4) press the selected LOG tab, then it will display error records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check these threads&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3397356"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3231776"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz go through the below mention link .there is an example for call transaction method error handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrainsonline.com/PROJECTS/TECHNICAL/ABAP%20Source%20codes/Batch%20Input%20with%20Call%20Transaction.html" target="test_blank"&gt;http://www.sapbrainsonline.com/PROJECTS/TECHNICAL/ABAP%20Source%20codes/Batch%20Input%20with%20Call%20Transaction.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/question-about-bdc-program.htm" target="test_blank"&gt;http://www.sap-img.com/abap/question-about-bdc-program.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/answers-to-some-abap-interview-questions.htm" target="test_blank"&gt;http://www.sap-img.com/abap/answers-to-some-abap-interview-questions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2007 08:51:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2521379#M570746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-07T08:51:46Z</dc:date>
    </item>
  </channel>
</rss>

