<?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: Message Class - Message text not displaying completely in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-class-message-text-not-displaying-completely/m-p/5850058#M1319462</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;The variable part of the message (the &amp;amp;) is only 50 characters long, your field lt_return-message is longer than this so it truncates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try breaking the message string up into smaller parts;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MESSAGE e001 WITH lt_return-message(50) lt_return-message+50(50) 
                                   lt_return-message+100(50) lt_return-message+150(50) .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2009 14:43:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-23T14:43:38Z</dc:date>
    <item>
      <title>Message Class - Message text not displaying completely</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-class-message-text-not-displaying-completely/m-p/5850056#M1319460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case1:  I am using message class ZMESSAGE in my program as mentioned below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROGRAM  zm_pp_prdconf MESSAGE-ID zmessage.

  LOOP AT lt_return WHERE type = 'E'.
    MESSAGE e001 WITH lt_return-message.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Message class:        ZMESSAGE
001	   &amp;amp; &amp;amp; &amp;amp; &amp;amp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, my problem is.. the text from lt_return-message is not displaying completely. It is displaying maximum 50 Characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If lt_return-message = &lt;STRONG&gt;'The Plant data for the material 10000 is locked by the user XXXXXXXXXXX".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is displaying only &lt;STRONG&gt;"The Plant data for the material 1000 is locked by"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me for this problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case 2:  I have also tried using the statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MESSAGE lt_return-message TYPE 'E'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case. I am getting the message like "No Vendor specified" instead of displaying the real text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tel me the solution for either of these cases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 14:38:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-class-message-text-not-displaying-completely/m-p/5850056#M1319460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T14:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Message Class - Message text not displaying completely</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-class-message-text-not-displaying-completely/m-p/5850057#M1319461</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 to split the message and pass to MESSAGE statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lt_return-message1 = 'The Plant data for the material 10000'.
lt_return-message2 = 'locked by the user XXXXXXXXXXX".

LOOP AT lt_return WHERE type = 'E'.
    MESSAGE e001 WITH lt_return-message1 lt_return-message2 .
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 14:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-class-message-text-not-displaying-completely/m-p/5850057#M1319461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T14:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Message Class - Message text not displaying completely</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-class-message-text-not-displaying-completely/m-p/5850058#M1319462</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;The variable part of the message (the &amp;amp;) is only 50 characters long, your field lt_return-message is longer than this so it truncates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try breaking the message string up into smaller parts;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MESSAGE e001 WITH lt_return-message(50) lt_return-message+50(50) 
                                   lt_return-message+100(50) lt_return-message+150(50) .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 14:43:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-class-message-text-not-displaying-completely/m-p/5850058#M1319462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T14:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Message Class - Message text not displaying completely</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-class-message-text-not-displaying-completely/m-p/5850059#M1319463</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;Split the sentence into two and use two variables. See the below example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data v1(65) type c value '12345678901234567890   12345678901234567890  12345678901234567890'.&lt;/P&gt;&lt;P&gt;data v2(5) value 'hello'.&lt;/P&gt;&lt;P&gt;message i000 with v1 v2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 14:48:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-class-message-text-not-displaying-completely/m-p/5850059#M1319463</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2009-06-23T14:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Message Class - Message text not displaying completely</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-class-message-text-not-displaying-completely/m-p/5850060#M1319464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If lt_return comes from a BAPI, why don't use the actual message id &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MESSAGE ID lt_return-id TYPE lt_return-type  NUMBER lt_return-number
    WITH lt_return-message_v1 lt_return-message_v2 lt_return-message_v3 lt_return-message_v4&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 14:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-class-message-text-not-displaying-completely/m-p/5850060#M1319464</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-06-23T14:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Message Class - Message text not displaying completely</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-class-message-text-not-displaying-completely/m-p/5850061#M1319465</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;While my earlier solution will work, Raymond's is the better approach, as it will also allow you to navigate to the long text of the message, whereas using a generic message with for placeholders will not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 15:13:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-class-message-text-not-displaying-completely/m-p/5850061#M1319465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T15:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Message Class - Message text not displaying completely</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-class-message-text-not-displaying-completely/m-p/5850062#M1319466</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;Use the FM &lt;STRONG&gt;"FORMAT_MESSAGE"&lt;/STRONG&gt; to construct the complete message.&lt;/P&gt;&lt;P&gt;for this FM u need to pass Message class, Message Number, Message variables V1,V2,V3,V4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharat Kalagara.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 15:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-class-message-text-not-displaying-completely/m-p/5850062#M1319466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T15:14:35Z</dc:date>
    </item>
  </channel>
</rss>

