<?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: Diffrence between Format_message and Write_message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-diffrence-between-format-message-and-write-message/m-p/1896257#M374534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when the messages are stored in bdc_msg it has various paramaeters like message type/message no/ message...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use directly to write this message or else u can do a formatting to the message using format_message and use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it depends on ur requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2007 16:50:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-10T16:50:50Z</dc:date>
    <item>
      <title>BDC: Diffrence between Format_message and Write_message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-diffrence-between-format-message-and-write-message/m-p/1896256#M374533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abapers can u please explain format_message and write_message.&lt;/P&gt;&lt;P&gt;if i use call transaction syntax like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'mk01' using bdctab mode 'N' update 's' messages into bdc_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shall i take format_message or write_message and wht parametrs we should pass in that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i put mode 'E' error screen mode wht should i do. &lt;/P&gt;&lt;P&gt;please guide me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 16:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-diffrence-between-format-message-and-write-message/m-p/1896256#M374533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T16:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: BDC: Diffrence between Format_message and Write_message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-diffrence-between-format-message-and-write-message/m-p/1896257#M374534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when the messages are stored in bdc_msg it has various paramaeters like message type/message no/ message...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use directly to write this message or else u can do a formatting to the message using format_message and use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it depends on ur requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 16:50:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-diffrence-between-format-message-and-write-message/m-p/1896257#M374534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T16:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: BDC: Diffrence between Format_message and Write_message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-diffrence-between-format-message-and-write-message/m-p/1896258#M374535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand that u r trying to collect errors from call transaction. u dont actually require BDCMSGCOLL to collect errors . Just FORMAT_MESSAGE will give u the error text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'mk01' using bdctab mode 'N' update 's' .&lt;/P&gt;&lt;P&gt;If sy-subrc ne 0 . " Incase of error on BDC.&lt;/P&gt;&lt;P&gt;data : lv_msgtext(250).&lt;/P&gt;&lt;P&gt;clear lv_msgtext.&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            = sy-langu&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             = lv_msgtext&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;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;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Now this variable lv_msgtxt will hold the error text for that particular run. just &lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;write code below to move this error text to error internal table . &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help. Reward points if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Barath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 17:47:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-diffrence-between-format-message-and-write-message/m-p/1896258#M374535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T17:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: BDC: Diffrence between Format_message and Write_message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-diffrence-between-format-message-and-write-message/m-p/1896259#M374536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Format_message Takes a message id and number, and puts it into a variable. Works better than WRITE_MESSAGE, since some messages use $ as a place holder, and WRITE_MESSAGE does not accommadate that, it only replaces the ampersands (&amp;amp;) in the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 17:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-diffrence-between-format-message-and-write-message/m-p/1896259#M374536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T17:54:37Z</dc:date>
    </item>
  </channel>
</rss>

