<?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: Function module error message. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/1751134#M325718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can. But some times the programs emphasises specific program errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following code for function module for GENEREIC case. &lt;/P&gt;&lt;P&gt;In this case you can remove total piece of code suggested by you. and replace the following  code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If sy-subrc ne 0.
Messae 'Error in function module' Type 'E'.
Endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following code for function module for SPECIFIC case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;case sy-subrc.
when '1'.
   Message 'No_entry found' type 'E'.
when '2'.
   Message 'Undetermined error in Function module. Please contact system administrator' Type 'E".
Endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Dec 2006 06:21:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-15T06:21:28Z</dc:date>
    <item>
      <title>Function module error message.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/1751129#M325713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call Function &amp;#145;Z_function&amp;#146;.&lt;/P&gt;&lt;P&gt;Imports&lt;/P&gt;&lt;P&gt;&amp;#133;&lt;/P&gt;&lt;P&gt;Exports&lt;/P&gt;&lt;P&gt;&amp;#133;&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;  no_entry_found       = 1&lt;/P&gt;&lt;P&gt;  OTHERS               = 2&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose&lt;/P&gt;&lt;P&gt;if sy-subrc =  1.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;Giving me popup and is troubling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me if I comment below &lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4....&lt;/P&gt;&lt;P&gt;and proceed will it effect me in case of sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 05:59:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/1751129#M325713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T05:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Function module error message.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/1751130#M325714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it will not affect in any way. You can put a generric error sayign that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write : 'ERROR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Guru&lt;/P&gt;&lt;P&gt;Reward points for helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 06:01:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/1751130#M325714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T06:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Function module error message.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/1751131#M325715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;If you'll comment the MEESAGE-Line the sy-subrc &amp;lt;&amp;gt; 0 will not have any efect to your program. But are you sure you want that... ?!?&lt;/P&gt;&lt;P&gt;If you want to be sure not hat have any bad effects in later following lines if sy-subrc is still &amp;lt;&amp;gt; 0 set the SY-SUBRC = 0 after the call function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some points would be nice if that helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 06:03:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/1751131#M325715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T06:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Function module error message.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/1751132#M325716</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;Just goto the function module and see what kind of error message it is displaying if sy-subrc = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if its information message popping up than you can comment..not an issue&lt;/P&gt;&lt;P&gt;but in case of warning or error message it will effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;pankaj singh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;**** reward if helpful&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 06:04:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/1751132#M325716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T06:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Function module error message.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/1751133#M325717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no issue if u comment. I beleive it is for handling more specific error and sending out proper msg. Ignoring it in that case detecting an error will be a problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 06:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/1751133#M325717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T06:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Function module error message.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/1751134#M325718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can. But some times the programs emphasises specific program errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following code for function module for GENEREIC case. &lt;/P&gt;&lt;P&gt;In this case you can remove total piece of code suggested by you. and replace the following  code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If sy-subrc ne 0.
Messae 'Error in function module' Type 'E'.
Endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following code for function module for SPECIFIC case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;case sy-subrc.
when '1'.
   Message 'No_entry found' type 'E'.
when '2'.
   Message 'Undetermined error in Function module. Please contact system administrator' Type 'E".
Endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 06:21:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/1751134#M325718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T06:21:28Z</dc:date>
    </item>
  </channel>
</rss>

