<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1720653#M314566</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;Just after call transaction statement check sy-subrc value if it is not equal to 0 then call format_message.&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;    CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              id        = sy-msgid&lt;/P&gt;&lt;P&gt;              lang      = '-D'&lt;/P&gt;&lt;P&gt;              no        = sy-msgno&lt;/P&gt;&lt;P&gt;              v1        = sy-msgv1&lt;/P&gt;&lt;P&gt;              v2        = sy-msgv2&lt;/P&gt;&lt;P&gt;              v3        = sy-msgv3&lt;/P&gt;&lt;P&gt;              v4        = sy-msgv4&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              msg       = t_bdcmsgcoll&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              not_found = 1&lt;/P&gt;&lt;P&gt;              OTHERS    = 2.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then move all the error records to error records internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise (sy-subrc eq 0 ) move all the success records to success records internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think u require to display only error records or success records , there is no need for u to display the content of bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U require error records to be displayed so that next time u just require to upload that records itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Nov 2006 09:53:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-18T09:53:51Z</dc:date>
    <item>
      <title>BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1720649#M314562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone a small doubt...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have declared bdcmsgcoll like bdcmsgcoll as an internal table...and used it appropriately in syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program got activated properlyand data got transferred..but i am unaware of how to see the bdcmsgcoll messages...please guide me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 09:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1720649#M314562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T09:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1720650#M314563</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;During debugging after the call transaction statemt get executed , press the table button and enter bdcmsgcoll then u can see the entries in that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think since might not be reading nor printing any where in u r program about bdcmsgcoll table u will not know what the entries are there in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either u read the table and print or check the table entry during debugging&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 09:24:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1720650#M314563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T09:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1720651#M314564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The BDCMSGCOLL does not have the messages text. It has only the message type, number and message parameters. &lt;/P&gt;&lt;P&gt;You have to read the message text. (recall that the database table T100 stores all the messages.) &lt;/P&gt;&lt;P&gt;There are more than one method of doing this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the psuedocode for one of the methods. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP for the internal table IT1 which has data value from flat file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transcation using.... &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;Read the dictionary table T100 FOR ALL ENTRIES in BDCMSGCOLL. &lt;/P&gt;&lt;P&gt;(also use the condition T100-SPRAS = SY-LANGU (the log on language. This is because you need only the message texts in English if the user is logged in English language) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF message type is E , then, transfer the contents of this particular error record to file x. (TRANSFER......) &lt;/P&gt;&lt;P&gt;( Ignore all other messages. Only consider type 'E' messages. Ignore other types of messages.) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(You can also store the message text from T100 and the error record in another internal table IT2) &lt;/P&gt;&lt;P&gt;..... &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;Alternatively, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of &lt;/P&gt;&lt;P&gt;" Read the dictionary table T100 FOR ALL ENTRIES in BDCMSGCOLL." &lt;/P&gt;&lt;P&gt;you can use the function module &lt;/P&gt;&lt;P&gt;WRITE_MESSAGES to read the messages. &lt;/P&gt;&lt;P&gt;Please refer to the function module for the list of parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refer FORMAT_MESSAGES function module.&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;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha Deshmukh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*Plz mark useful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 09:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1720651#M314564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T09:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1720652#M314565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you srikanth....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it solved the problem but still a small doubt i kept the loop at bdcmsgcoll1...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i could see the messages...but in general what are the fields that i have to take in bdcmsgcoll.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 09:42:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1720652#M314565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T09:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1720653#M314566</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;Just after call transaction statement check sy-subrc value if it is not equal to 0 then call format_message.&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;    CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              id        = sy-msgid&lt;/P&gt;&lt;P&gt;              lang      = '-D'&lt;/P&gt;&lt;P&gt;              no        = sy-msgno&lt;/P&gt;&lt;P&gt;              v1        = sy-msgv1&lt;/P&gt;&lt;P&gt;              v2        = sy-msgv2&lt;/P&gt;&lt;P&gt;              v3        = sy-msgv3&lt;/P&gt;&lt;P&gt;              v4        = sy-msgv4&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              msg       = t_bdcmsgcoll&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              not_found = 1&lt;/P&gt;&lt;P&gt;              OTHERS    = 2.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then move all the error records to error records internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise (sy-subrc eq 0 ) move all the success records to success records internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think u require to display only error records or success records , there is no need for u to display the content of bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U require error records to be displayed so that next time u just require to upload that records itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 09:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1720653#M314566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T09:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1720654#M314567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     use below logic&lt;/P&gt;&lt;P&gt;      call transaction 'MM02' using bdcdata messages wa_messages "N'.&lt;/P&gt;&lt;P&gt;      now bdcmsgcoll will have all message related to bdc &lt;/P&gt;&lt;P&gt;     loop at bdcmsgcoll.&lt;/P&gt;&lt;P&gt;      call function 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt; exporting&lt;/P&gt;&lt;P&gt;   id              = wa_messages-msgid&lt;/P&gt;&lt;P&gt;   lang            = sy-langu&lt;/P&gt;&lt;P&gt;   no              = wa_messages-msgnr&lt;/P&gt;&lt;P&gt;   v1              = wa_messages-msgv1&lt;/P&gt;&lt;P&gt;   v2              = wa_messages-msgv2&lt;/P&gt;&lt;P&gt;   v3              = wa_messages-msgv3&lt;/P&gt;&lt;P&gt;   v4              = wa_messages-msgv4&lt;/P&gt;&lt;P&gt; importing&lt;/P&gt;&lt;P&gt;   msg             = l_msg&lt;/P&gt;&lt;P&gt; exceptions&lt;/P&gt;&lt;P&gt;   not_found       = 1&lt;/P&gt;&lt;P&gt;   others          = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;write i_msg.  &amp;lt;/b&amp;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;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 10:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1720654#M314567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T10:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1720655#M314568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Also check t100 tables where all messages are stored w.r.t message class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 10:05:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1720655#M314568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T10:05:06Z</dc:date>
    </item>
  </channel>
</rss>

