<?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's in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-s/m-p/2216205#M475223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post using call transaction method**********************************&lt;/P&gt;&lt;P&gt;      CALL TRANSACTION 'FB01' USING bdcdata MODE l_type&lt;/P&gt;&lt;P&gt;      UPDATE 'S' MESSAGES INTO tl_messg.&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;Commit the asynchronous transaction&lt;/STRONG&gt;********************************&lt;/P&gt;&lt;P&gt;      COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;Check if the transaction is sucessful&lt;/STRONG&gt;******************************&lt;/P&gt;&lt;P&gt;      READ TABLE tl_messg WITH KEY msgtyp = c_s.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2007 16:00:24 GMT</pubDate>
    <dc:creator>aakash-neelaperumal</dc:creator>
    <dc:date>2007-05-09T16:00:24Z</dc:date>
    <item>
      <title>BDC's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-s/m-p/2216204#M475222</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; In BDC'S I have to Display the separatly error records and Successful records .&lt;/P&gt;&lt;P&gt;what is the code and concept.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 14:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-s/m-p/2216204#M475222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T14:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: BDC's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-s/m-p/2216205#M475223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post using call transaction method**********************************&lt;/P&gt;&lt;P&gt;      CALL TRANSACTION 'FB01' USING bdcdata MODE l_type&lt;/P&gt;&lt;P&gt;      UPDATE 'S' MESSAGES INTO tl_messg.&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;Commit the asynchronous transaction&lt;/STRONG&gt;********************************&lt;/P&gt;&lt;P&gt;      COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;Check if the transaction is sucessful&lt;/STRONG&gt;******************************&lt;/P&gt;&lt;P&gt;      READ TABLE tl_messg WITH KEY msgtyp = c_s.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 16:00:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-s/m-p/2216205#M475223</guid>
      <dc:creator>aakash-neelaperumal</dc:creator>
      <dc:date>2007-05-09T16:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: BDC's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-s/m-p/2216206#M475224</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 will help you , after calling the call transaction&lt;/P&gt;&lt;P&gt;put the loop at BDCMSGCOLL TABLE.&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 BDCMSGCOLL WHERE MSGTYPE = 'E'&lt;/P&gt;&lt;P&gt;MOVE CURRENT RECORD TO  ERROR TABLE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE CURRENT RECORD TO SUCCESSTABLE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'FB01' USING bdcdata MODE l_type&lt;/P&gt;&lt;P&gt;UPDATE 'S' MESSAGES INTO BDCMSGCOLL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at BDCMSGCOLL where mestype = e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move records itab to err_tab.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;move records itab to succ_tab.&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, 09 May 2007 16:30:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-s/m-p/2216206#M475224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T16:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: BDC's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-s/m-p/2216207#M475225</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;Using function module 'FORMAT_MESSAGE' you can capture the messages. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample of the program code for that: &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;  LOOP AT it_messtab. &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FORMAT_MESSAGE' &lt;/P&gt;&lt;P&gt;    EXPORTING &lt;/P&gt;&lt;P&gt;      id     = it_messtab-msgid &lt;/P&gt;&lt;P&gt;      lang   = it_messtab-msgspra &lt;/P&gt;&lt;P&gt;      no     = it_messtab-msgnr &lt;/P&gt;&lt;P&gt;      v1     = it_messtab-msgv1 &lt;/P&gt;&lt;P&gt;      v2     = it_messtab-msgv2 &lt;/P&gt;&lt;P&gt;    IMPORTING &lt;/P&gt;&lt;P&gt;    msg    =  g_msg &lt;/P&gt;&lt;P&gt;  EXCEPTIONS &lt;/P&gt;&lt;P&gt;      OTHERS = 0. &lt;/P&gt;&lt;P&gt;  IF it_messtab-msgtyp = 'S'. &lt;/P&gt;&lt;P&gt;    it_sucess-sucess_rec = g_msg. &lt;/P&gt;&lt;P&gt;    it_sucess-lifnr = it_header-lifnr." Based on your field &lt;/P&gt;&lt;P&gt;    it_sucess-tabix = v_lines. &lt;/P&gt;&lt;P&gt;    APPEND it_sucess. &lt;/P&gt;&lt;P&gt;  ELSEIF it_messtab-msgtyp = 'E'. &lt;/P&gt;&lt;P&gt;    it_error-error_rec = g_msg. &lt;/P&gt;&lt;P&gt;    it_error-lifnr = it_header-lifnr. &lt;/P&gt;&lt;P&gt;    it_error-tabix = v_lines. &lt;/P&gt;&lt;P&gt;    APPEND it_error. &lt;/P&gt;&lt;P&gt;  ELSE. &lt;/P&gt;&lt;P&gt;    it_info-info_rec = g_msg. &lt;/P&gt;&lt;P&gt;    it_info-lifnr    = it_header-lifnr. &lt;/P&gt;&lt;P&gt;    it_info-tabix    = v_lines. &lt;/P&gt;&lt;P&gt;    APPEND it_info. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 17:08:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-s/m-p/2216207#M475225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T17:08:32Z</dc:date>
    </item>
  </channel>
</rss>

