<?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 return message table problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-return-message-table-problem/m-p/4635739#M1091483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keshav.T on Nov 18, 2010 12:18 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Nov 2010 18:45:24 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-11-17T18:45:24Z</dc:date>
    <item>
      <title>BDC return message table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-return-message-table-problem/m-p/4635737#M1091481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;We are doing BDCs for Excise Invoice (J1IS) and for Posting Excise&lt;/P&gt;&lt;P&gt;Invoice (J1IV) in Backgroung mode.&lt;/P&gt;&lt;P&gt;Here we are facing problem in BDC return message table (messtab) which &lt;/P&gt;&lt;P&gt;retruns the internal document number,errors or warning messages&lt;/P&gt;&lt;P&gt;in BDC rerurn message table.when we are doing BDC for J1IS in background&lt;/P&gt;&lt;P&gt;mode, no internal document number or error messages is generated in &lt;/P&gt;&lt;P&gt;BDC message table (ie in messtab), but the excise invoice is posted and database table&lt;/P&gt;&lt;P&gt;j_1iexchdr is updated with internal document number even though Accessible&lt;/P&gt;&lt;P&gt;value is '0'.Then we are taking this internal document nuber from databae&lt;/P&gt;&lt;P&gt;table j_1iexchdr passing to next BDC for J1Iv.Again after execution of BDC for J1IV&lt;/P&gt;&lt;P&gt;in background mode the same is happening as J1IS BDC return message table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it the correct method of data retrieving from Database table ?&lt;/P&gt;&lt;P&gt;and we want to capture all types of error messages and internal document&lt;/P&gt;&lt;P&gt;no generated by BDC message table.How to capture BDC return messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does Transactions J1Is and J1IV are executable for BDC ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ulhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 05:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-return-message-table-problem/m-p/4635737#M1091481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T05:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: BDC return message table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-return-message-table-problem/m-p/4635738#M1091482</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;Use the following code to capture the return table values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: i_msg type standard table of bdcmsgcoll with header line. 

LOOP AT I_MSG.

    CALL FUNCTION 'FORMAT_MESSAGE'
     EXPORTING
       ID              = I_MSG-MSGID
       LANG            = SY-LANGU
       NO              = I_MSG-MSGNR
       V1              = I_MSG-MSGV1
       V2              = I_MSG-MSGV2
       V3              = I_MSG-MSGV3
       V4              = I_MSG-MSGV4
     IMPORTING
       MSG             = W_STR
*  EXCEPTIONS
*    NOT_FOUND       = 1
*    OTHERS          = 2
              .
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    WRITE:/ i_msg-msgnr,w_str.




  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 06:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-return-message-table-problem/m-p/4635738#M1091482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T06:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: BDC return message table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-return-message-table-problem/m-p/4635739#M1091483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keshav.T on Nov 18, 2010 12:18 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 18:45:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-return-message-table-problem/m-p/4635739#M1091483</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-17T18:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: BDC return message table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-return-message-table-problem/m-p/4635740#M1091484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ulhas,&lt;/P&gt;&lt;P&gt;it happens for some transactions SAP itself does not consider certain situations as errors and hence you cant capture those as errors, It is advisable to use BAPI for such cases as BAPIs are designed with much more attention to capture all types of errors and warnings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 09:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-return-message-table-problem/m-p/4635740#M1091484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T09:40:53Z</dc:date>
    </item>
  </channel>
</rss>

