<?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: hii---'CALL FUNCTION 'MESSAGE_TEXT_BUILD' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hii-call-function-message-text-build/m-p/2903763#M682980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The meaning of the code is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t100 is a message table.&lt;/P&gt;&lt;P&gt; getting a message text from the message table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the message text contains '&amp;amp;1'&lt;/P&gt;&lt;P&gt; then replace &amp;amp;1 with msgv1&lt;/P&gt;&lt;P&gt;   .....................................&amp;amp;2................................msgv2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it does not contain &amp;amp;1 &amp;amp;2 buit contains only &amp;amp; then&lt;/P&gt;&lt;P&gt;replcace &amp;amp; with msgv1 and msgv2 so on according to the position of the &amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in general &lt;/P&gt;&lt;P&gt;If there is only one &amp;amp; it is replaced with msgv1.&lt;/P&gt;&lt;P&gt;2nd position with msgv2 , 3rd &amp;amp; with msgv3 4th with msgv4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;observe t1000 table and also go to se91 transaction and obseve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;1...&amp;amp;4 will be replaced with sy-msgv1...sy-msgv2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; in ur report u can fill the fn module like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the function module is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MESSAGE_TEXT_BUILD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;msgid = &amp;lt; enter the message class&amp;gt;&lt;/P&gt;&lt;P&gt;msgnr = &amp;lt; enter the message number&lt;/P&gt;&lt;P&gt; MSGV1 =  wa_messtab-msgv1&lt;/P&gt;&lt;P&gt; MSGV2 = wa_messtab-msgv2&lt;/P&gt;&lt;P&gt; MSGV3 = wa_messtab-msgv3&lt;/P&gt;&lt;P&gt; MSGV4 = wa_messtab-msgv4&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt; MESSAGE_TEXT_OUTPUT = l_mstring.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2007 07:06:17 GMT</pubDate>
    <dc:creator>hymavathi_oruganti</dc:creator>
    <dc:date>2007-10-10T07:06:17Z</dc:date>
    <item>
      <title>hii---'CALL FUNCTION 'MESSAGE_TEXT_BUILD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hii-call-function-message-text-build/m-p/2903762#M682979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii i am a new employee.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone please explain wat the following code is doing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;l_mstring = t100-text.&lt;/P&gt;&lt;P&gt;IF l_mstring CS '&amp;amp;1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;1' WITH wa_messtab-msgv1 INTO l_mstring.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;2' WITH wa_messtab-msgv2 INTO l_mstring.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;3' WITH wa_messtab-msgv3 INTO l_mstring.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;4' WITH wa_messtab-msgv4 INTO l_mstring.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;' WITH wa_messtab-msgv1 INTO l_mstring.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;' WITH wa_messtab-msgv2 INTO l_mstring.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;' WITH wa_messtab-msgv3 INTO l_mstring.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;' WITH wa_messtab-msgv4 INTO l_mstring.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CONDENSE l_mstring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am supposed to use a function module for it &lt;/P&gt;&lt;P&gt;i have got a function module.&lt;/P&gt;&lt;P&gt;but i am not understanding wat fields shd i put in it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the function module is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MESSAGE_TEXT_BUILD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;msgid = &lt;/P&gt;&lt;P&gt;msgnr =&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MSGV1 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MSGV2 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MSGV3 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MSGV4 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE_TEXT_OUTPUT =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone tell wat shd i put on msgid ,msgnr and other fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;saurabh102@gmail.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 06:29:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hii-call-function-message-text-build/m-p/2903762#M682979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T06:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: hii---'CALL FUNCTION 'MESSAGE_TEXT_BUILD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hii-call-function-message-text-build/m-p/2903763#M682980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The meaning of the code is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t100 is a message table.&lt;/P&gt;&lt;P&gt; getting a message text from the message table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the message text contains '&amp;amp;1'&lt;/P&gt;&lt;P&gt; then replace &amp;amp;1 with msgv1&lt;/P&gt;&lt;P&gt;   .....................................&amp;amp;2................................msgv2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it does not contain &amp;amp;1 &amp;amp;2 buit contains only &amp;amp; then&lt;/P&gt;&lt;P&gt;replcace &amp;amp; with msgv1 and msgv2 so on according to the position of the &amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in general &lt;/P&gt;&lt;P&gt;If there is only one &amp;amp; it is replaced with msgv1.&lt;/P&gt;&lt;P&gt;2nd position with msgv2 , 3rd &amp;amp; with msgv3 4th with msgv4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;observe t1000 table and also go to se91 transaction and obseve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;1...&amp;amp;4 will be replaced with sy-msgv1...sy-msgv2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; in ur report u can fill the fn module like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the function module is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MESSAGE_TEXT_BUILD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;msgid = &amp;lt; enter the message class&amp;gt;&lt;/P&gt;&lt;P&gt;msgnr = &amp;lt; enter the message number&lt;/P&gt;&lt;P&gt; MSGV1 =  wa_messtab-msgv1&lt;/P&gt;&lt;P&gt; MSGV2 = wa_messtab-msgv2&lt;/P&gt;&lt;P&gt; MSGV3 = wa_messtab-msgv3&lt;/P&gt;&lt;P&gt; MSGV4 = wa_messtab-msgv4&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt; MESSAGE_TEXT_OUTPUT = l_mstring.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 07:06:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hii-call-function-message-text-build/m-p/2903763#M682980</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2007-10-10T07:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: hii---'CALL FUNCTION 'MESSAGE_TEXT_BUILD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hii-call-function-message-text-build/m-p/2903764#M682981</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;TRY LIKE THIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. DECLARE A INTERNAL TABLE WITHOUT HEADER LINE AND WORKAREA AS&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;       DATA: MESSTAB LIKE ........... OCCURS 0,&lt;/P&gt;&lt;P&gt;                 WA_MESSTAB LIKE ................   .  " USE A STANDARD DATABASE TABLE ACCORDING TO UR SPEC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: L_MSTRING TYPE T100-TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F sy-subrc = 0.&lt;/P&gt;&lt;P&gt;l_mstring = t100-text.&lt;/P&gt;&lt;P&gt;IF l_mstring CS '&amp;amp;1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;1' WITH wa_messtab-msgv1 INTO l_mstring.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;2' WITH wa_messtab-msgv2 INTO l_mstring.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;3' WITH wa_messtab-msgv3 INTO l_mstring.&lt;/P&gt;&lt;P&gt;REPLACE '&amp;amp;4' WITH wa_messtab-msgv4 INTO l_mstring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MESSAGE_TEXT_BUILD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;msgid = " GIVE ANY STRING OF LENGTH 30 CHARACTERS'&lt;/P&gt;&lt;P&gt;msgnr = " GIVE ANY STRING OF LENGTH 30 CHARACTERS'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MSGV1 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MSGV2 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MSGV3 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MSGV4 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE_TEXT_OUTPUT =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR THE ABOVE 2 PARAMETERS GOTO THAT FM -&amp;gt; IMPORT PARAMETERS SECTION -&amp;gt; CLICK ON F1 HELP -&amp;gt; TECHNICAL INFO -&amp;gt; DOUBLE CLICK ON DATA ELEMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF HELPFUL REWARD SOME POINTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WITH REGARDS,&lt;/P&gt;&lt;P&gt;SURESH ALURI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 07:19:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hii-call-function-message-text-build/m-p/2903764#M682981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T07:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: hii---'CALL FUNCTION 'MESSAGE_TEXT_BUILD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hii-call-function-message-text-build/m-p/2903765#M682982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP loves ikt to make simple tasks complicated and time-consuming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why not simplify:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:
  lv_msg type string.
message ID    wa_messtab-msgid
              TYPE wa_messtab-msgty
              NUMBER wa_messtab-msgno
              WITH
              wa_messtab-msgv1 
              wa_messtab-msgv2
              wa_messtab-msgv3 
              wa_messtab-msgv4
              INTO lv_msg.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I don't know what your task is. T100 is useful to search with SE16 if you want to find a message. You never need it in a program.&lt;/P&gt;&lt;P&gt;If you want a message text (in logon language) just used MESSAGE ... INTO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 07:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hii-call-function-message-text-build/m-p/2903765#M682982</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-10-10T07:45:49Z</dc:date>
    </item>
  </channel>
</rss>

