<?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/3926695#M940420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read this: &lt;SPAN __jive_macro_name="thread" id="747385"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 May 2008 17:11:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-28T17:11:39Z</dc:date>
    <item>
      <title>bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3926694#M940419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;explanation about function module 'format_message'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 17:07:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3926694#M940419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-28T17:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3926695#M940420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read this: &lt;SPAN __jive_macro_name="thread" id="747385"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 17:11:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3926695#M940420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-28T17:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3926696#M940421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM is used to format the message which we receive in bdc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use bdcmsgcoll structure to catch the error message from the call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then pass the values to this function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without using this FM, u can take care of the message.&lt;/P&gt;&lt;P&gt;ip_bdcmsgcoll is the table that we get from call transaction..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:ip_bdcmsgcoll structure bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read  table ip_bdcmsgcoll with key msgtyp = 'E' binary search .&lt;/P&gt;&lt;P&gt; &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;      exporting&lt;/P&gt;&lt;P&gt;        id        = ip_bdcmsgcoll-msgid&lt;/P&gt;&lt;P&gt;        lang      = '-E'&lt;/P&gt;&lt;P&gt;        no        = ip_bdcmsgcoll-msgnr&lt;/P&gt;&lt;P&gt;        v1        = ip_bdcmsgcoll-msgv1&lt;/P&gt;&lt;P&gt;        v2        = ip_bdcmsgcoll-msgv2&lt;/P&gt;&lt;P&gt;        v3        = ip_bdcmsgcoll-msgv3&lt;/P&gt;&lt;P&gt;        v4        = ip_bdcmsgcoll-msgv4&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        msg       = vl_message&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;hope its clear to you,&lt;/P&gt;&lt;P&gt;inspire if usefull,&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Kalyan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 17:17:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3926696#M940421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-28T17:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3926697#M940422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Format_Message FM is using to format the message to show the output&lt;/P&gt;&lt;P&gt;as a standard message. You have to pass this FM all standardard system variables only it will imports a message into a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using that table you can display the messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ip_bdcmsgcoll is the table that we get from call transaction..

data:ip_bdcmsgcoll structure bdcmsgcoll.


  read  table ip_bdcmsgcoll with key msgtyp = 'E' binary search .
 
  if sy-subrc = 0.
    call function 'FORMAT_MESSAGE'
      exporting
        id        = ip_bdcmsgcoll-msgid
        lang      = '-E'
        no        = ip_bdcmsgcoll-msgnr
        v1        = ip_bdcmsgcoll-msgv1
        v2        = ip_bdcmsgcoll-msgv2
        v3        = ip_bdcmsgcoll-msgv3
        v4        = ip_bdcmsgcoll-msgv4
      importing
        msg       = vl_message
      exceptions
        not_found = 1
        others    = 2.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Swamy Kunche&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 17:33:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3926697#M940422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-28T17:33:02Z</dc:date>
    </item>
  </channel>
</rss>

