<?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: Getting message-ID and message-TYPE, but not Message? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-message-id-and-message-type-but-not-message/m-p/4497222#M1064153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tested like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  move 'I'   to xreturn-type.
  move 'V1'  to xreturn-id.
  move '001' to xreturn-number.
  move '000010' to xreturn-message_v1.
  move 'Test' to xreturn-message_v2.
  move 'More Test' to xreturn-message_v3.
        MESSAGE ID xreturn-id TYPE xreturn-type NUMBER  xreturn-number
                INTO xreturn-MESSAGE  "&amp;lt;
                WITH xreturn-message_v1 xreturn-message_v2 xreturn-message_v3 xreturn-message_v4.
  write: xreturn-message.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has generated the output as expected:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the minimum quantity for item 000010: Test More Test &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the Message 001 in the message class V1 contains the text:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the minimum quantity for item &amp;amp;1: &amp;amp;2 &amp;amp;3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Sep 2008 13:28:23 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2008-09-19T13:28:23Z</dc:date>
    <item>
      <title>Getting message-ID and message-TYPE, but not Message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-message-id-and-message-type-but-not-message/m-p/4497217#M1064148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting message along with ID and TYPE...in my output table parameter..,&lt;/P&gt;&lt;P&gt;Let me show what i did..,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delared one table parameter to get output message..,&lt;/P&gt;&lt;P&gt;in table parameter of my function module..,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; ET_RETURN   LIKE  BAPIRET2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the TOP include of that function module..,i declared xreturn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: xreturn like bapiret2 occurs 0 with header line.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the source code of that FM, where I want to trigger taht message..,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;perform add_message using 'E' 'MID' '001' ' ' 'ASC'
                                        ' '    ' '    ' '    ' '    ' '.
et_return[] = xreturn[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here MID is my message ID, where Iam havingg &lt;/P&gt;&lt;P&gt;one error messages like "THERE IS NO OUPUT FOR THIS"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And have a look at above subroutine, which is saved in F include of that FM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM add_message  USING   type
                          id
                          number
                          language
                          format
                          v1
                          v2
                          v3
                          v4
                          field.
  clear xreturn.                                                             
  move type to xreturn-type.
  move id to xreturn-id.
  move number to xreturn-number.
  move v1 to xreturn-message_v1.
  move v2 to xreturn-message_v2.
  move v3 to xreturn-message_v3.
  move v4 to xreturn-message_v4.
  move field to xreturn-field.
  append xreturn.
  clear xreturn.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My probelm is, Iam getting this message in output.., But only ID and TYPE &lt;/P&gt;&lt;P&gt;So messsage as empty...??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infact I am not good with this area, I did all this with reference of other code..! &lt;/P&gt;&lt;P&gt;Where I did mistake..?&lt;/P&gt;&lt;P&gt;Please let me know..!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen.I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 12:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-message-id-and-message-type-but-not-message/m-p/4497217#M1064148</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2008-09-19T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting message-ID and message-TYPE, but not Message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-message-id-and-message-type-but-not-message/m-p/4497218#M1064149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to see the message text?? Coz i think the code is OK..&lt;/P&gt;&lt;P&gt;All the message details will be sent...If you want to read the message text, you can use the FM SWF_T100_DB_MESSAGE_TEXT_READ and pass it the message class and message number...&lt;/P&gt;&lt;P&gt;Else if you want to issue the message to the user...you can make use of the statement MESSAGE msg_class ID msg_id TYPE type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Piyush Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 12:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-message-id-and-message-type-but-not-message/m-p/4497218#M1064149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-19T12:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Getting message-ID and message-TYPE, but not Message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-message-id-and-message-type-but-not-message/m-p/4497219#M1064150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to bring the message text stored in the message repository.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the syntax to get the messgae:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  clear xreturn.                                                             
  move type to xreturn-type.
  move id to xreturn-id.
  move number to xreturn-number.
  move v1 to xreturn-message_v1.
  move v2 to xreturn-message_v2.
  move v3 to xreturn-message_v3.
  move v4 to xreturn-message_v4.
  move field to xreturn-field.
        MESSAGE ID xreturn-id TYPE xreturn-type NUMBER  xreturn-number
                INTO xreturn-MESSAGE  "&amp;lt;
                WITH xreturn-message_v1 xreturn-message_v2 xreturn-message_v3 xreturn-message_v4.
  append xreturn.
  clear xreturn.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can use the FM FORMAT_MESSAGE to get the message text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 13:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-message-id-and-message-type-but-not-message/m-p/4497219#M1064150</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-09-19T13:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting message-ID and message-TYPE, but not Message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-message-id-and-message-type-but-not-message/m-p/4497220#M1064151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This situation arises when message is not mainatined in your logon language. Just check in SE91 giving your message ID and message number whether it is maintained in your login langauge or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE91&lt;DEL&gt;&amp;gt;enter message class&lt;/DEL&gt;&amp;gt;enter message number&lt;DEL&gt;&amp;gt;click on message&lt;/DEL&gt;&amp;gt;goto(in menu bar)--&amp;gt;Translation (here you give logon language and check whether it is mainatined or not)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srikanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 13:07:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-message-id-and-message-type-but-not-message/m-p/4497220#M1064151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-19T13:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting message-ID and message-TYPE, but not Message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-message-id-and-message-type-but-not-message/m-p/4497221#M1064152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I am getting MID E 001 in my message field, as our code....!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Srikanth..,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I checked it, in the transaletion..,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original language DE&lt;/P&gt;&lt;P&gt;Target language --   &amp;lt;---no iput.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I given target language as EN, ANd saved. I got following screen..,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Temporary Worklist                                                       1      1

        Mes &amp;lt;MESS&amp;gt; Messages                                                   1      1

            MID 001                               SEDI                               1      1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But no improvement in my problem!!&lt;/P&gt;&lt;P&gt;If i see this transaltion again, no change target language is again empty!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen.I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 13:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-message-id-and-message-type-but-not-message/m-p/4497221#M1064152</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2008-09-19T13:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting message-ID and message-TYPE, but not Message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-message-id-and-message-type-but-not-message/m-p/4497222#M1064153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tested like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  move 'I'   to xreturn-type.
  move 'V1'  to xreturn-id.
  move '001' to xreturn-number.
  move '000010' to xreturn-message_v1.
  move 'Test' to xreturn-message_v2.
  move 'More Test' to xreturn-message_v3.
        MESSAGE ID xreturn-id TYPE xreturn-type NUMBER  xreturn-number
                INTO xreturn-MESSAGE  "&amp;lt;
                WITH xreturn-message_v1 xreturn-message_v2 xreturn-message_v3 xreturn-message_v4.
  write: xreturn-message.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has generated the output as expected:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the minimum quantity for item 000010: Test More Test &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the Message 001 in the message class V1 contains the text:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the minimum quantity for item &amp;amp;1: &amp;amp;2 &amp;amp;3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 13:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-message-id-and-message-type-but-not-message/m-p/4497222#M1064153</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-09-19T13:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting message-ID and message-TYPE, but not Message?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-message-id-and-message-type-but-not-message/m-p/4497223#M1064154</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;This issue if just because of language...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While creating the message it was asking for language to maintain original or log-on,&lt;/P&gt;&lt;P&gt;If I give log on its working fine.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also we need to read mesaage with function module like &lt;STRONG&gt;BAPI_MESSAGE_GETDETAIL&lt;/STRONG&gt; or above mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen.I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 14:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-message-id-and-message-type-but-not-message/m-p/4497223#M1064154</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2008-09-19T14:20:12Z</dc:date>
    </item>
  </channel>
</rss>

