<?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: bapi return messages in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-messages/m-p/1664050#M294121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, what you can do is loop at the T_RETURN table and process each record thru function module MESSAGE_PREPARE, it excepts the message information and builds the message for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


  call function 'MESSAGE_PREPARE'
       exporting
            language = sy-langu
            msg_id   = t_return-id
            msg_no   = t_return-number
            msg_var1 = t_return-MESSAGE_V1
            msg_var2 = t_return-MESSAGE_V2
            msg_var3 = t_return-MESSAGE_V3
            msg_var4 = t_return-MESSAGE_V4
       importing
            msg_text = message.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then simple add the message to the T_MSG internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;t_msg = message.
append t_msg.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Oct 2006 17:53:47 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-10-20T17:53:47Z</dc:date>
    <item>
      <title>bapi return messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-messages/m-p/1664049#M294120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i have a internal table treturn like t_return  like bapiret2 occurs 0 with header line to hold the error messages from bapi_goodsmvt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i have other internal table t_msg type standard table of solisti1 initial size 0&lt;/P&gt;&lt;P&gt;               with header line,  which is the message table for the functional module  SO_NEW_DOCUMENT_ATT_SEND_API1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so all the error msgs type E in treturn should be sent to t_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one send the code for this please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 17:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-messages/m-p/1664049#M294120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-20T17:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: bapi return messages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-messages/m-p/1664050#M294121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, what you can do is loop at the T_RETURN table and process each record thru function module MESSAGE_PREPARE, it excepts the message information and builds the message for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


  call function 'MESSAGE_PREPARE'
       exporting
            language = sy-langu
            msg_id   = t_return-id
            msg_no   = t_return-number
            msg_var1 = t_return-MESSAGE_V1
            msg_var2 = t_return-MESSAGE_V2
            msg_var3 = t_return-MESSAGE_V3
            msg_var4 = t_return-MESSAGE_V4
       importing
            msg_text = message.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then simple add the message to the T_MSG internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;t_msg = message.
append t_msg.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 17:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-return-messages/m-p/1664050#M294121</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-20T17:53:47Z</dc:date>
    </item>
  </channel>
</rss>

