<?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: return message from function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956653#M697476</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;You can use the function module FORMAT_MESSAGE to prepare the message text for the corresponding message id, number and place holders (&amp;amp;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2007 04:31:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-10T04:31:04Z</dc:date>
    <item>
      <title>return message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956647#M697470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Folks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we get the return message from function modules where there &lt;/P&gt;&lt;P&gt;is no return table associated? I am using a FM 'CCAP_ECN_CREATE', CCAP_REVLEVL_MAINTAIN etc. None of these has a return table associated to fetch the return message. Any ideas are appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 15:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956647#M697470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T15:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: return message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956648#M697471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;make use of exceptions here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc EQ &amp;lt;exeption Number&amp;gt;&lt;/P&gt;&lt;P&gt;  message 1.&lt;/P&gt;&lt;P&gt;elseif sy-subrc EQ &amp;lt;ex number2&amp;gt;&lt;/P&gt;&lt;P&gt; message2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 15:03:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956648#M697471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T15:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: return message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956649#M697472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricky&lt;/P&gt;&lt;P&gt;Probably you can check back the table AENR, whether the change number is created, if yes, than it success &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;MD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 15:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956649#M697472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T15:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: return message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956650#M697473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mainly, return strucutures are used with BAPI modules.  Most regular FM use the system variable sy-subrc for return codes.  You can look in transaction se37 under exceptions to see the exceptions codes associated with sy-subrc for any given FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 15:08:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956650#M697473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T15:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: return message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956651#M697474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When there is no return message table, you can check the return code or exceptions.  If you view the function module in transaction SE37, you can see what the coded exceptions are.  I hope this helps.&lt;/P&gt;&lt;P&gt; - April King&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 15:08:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956651#M697474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T15:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: return message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956652#M697475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys. But I wanna capture the real system error message. Not based on sy-subrc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, I am using a select statement after calling the function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT SINGLE text INTO return-message FROM t100 &lt;/P&gt;&lt;P&gt;                                                        WHERE sprsl = sy-langu&lt;/P&gt;&lt;P&gt;                                                                    AND arbgb  = sy-msgid&lt;/P&gt;&lt;P&gt;                                                                    AND msgnr  = sy-msgno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here for error, I am getting the message with &amp;amp; in it which gets populated inside the standard function module. How can I replace this &amp;amp; with the real value. and populate the return-message with the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 04:28:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956652#M697475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T04:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: return message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956653#M697476</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;You can use the function module FORMAT_MESSAGE to prepare the message text for the corresponding message id, number and place holders (&amp;amp;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 04:31:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956653#M697476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T04:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: return message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956654#M697477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its a very helpful answer. Will test again and let you know....&lt;/P&gt;&lt;P&gt;Given points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 14:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956654#M697477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T14:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: return message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956655#M697478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please help me on this, if you have got your problem resolved.&lt;/P&gt;&lt;P&gt;As i a also facing the same problem. I also tried many ways but i am not able to get the actual message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 11:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956655#M697478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T11:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: return message from function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956656#M697479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My mail ID is harsha_tiwari@yahoo.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 12:12:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-message-from-function-module/m-p/2956656#M697479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T12:12:20Z</dc:date>
    </item>
  </channel>
</rss>

