<?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: regarding Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/1568698#M256773</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;i don't get your request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in fm we use the command raise exception to throw an error-message - in the calling program you've to analyse the return-code (sy-subrc) and react to the err.-situation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Andreas Mann&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Sep 2006 07:13:38 GMT</pubDate>
    <dc:creator>andreas_mann3</dc:creator>
    <dc:date>2006-09-18T07:13:38Z</dc:date>
    <item>
      <title>regarding Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/1568696#M256771</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;Why we cann't throw an erroe message from Function module?&lt;/P&gt;&lt;P&gt;if we want to give any errors from it,&lt;/P&gt;&lt;P&gt;why why we use exceptions and return codes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 07:09:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/1568696#M256771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T07:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: regarding Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/1568697#M256772</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;If it shows error in the FM then processing stops in the FM and not to the calling program. SO it is matter of control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the error message can be shown after the function module returns back,  there are exception to detect the error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Control is given back to calling program and it can check what happens in the FM using exception and can show relavent error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 07:12:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/1568697#M256772</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-09-18T07:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: regarding Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/1568698#M256773</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;i don't get your request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in fm we use the command raise exception to throw an error-message - in the calling program you've to analyse the return-code (sy-subrc) and react to the err.-situation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Andreas Mann&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 07:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/1568698#M256773</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-09-18T07:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: regarding Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/1568699#M256774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shefali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Showing an error message in a FM could be requirement of 1 User but it need not be requirement of another user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What this means is , If a PO is created/Warning generated during PO creation using FM BAPI_PO_CREATE1, one business user need not treat it as error or warning and hence it do not want a error/warning message to be displayed but another user would like to display an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence Exception/Return message are EXport paramters of FM. So depending on your requirement you can handle the Exception/Return Parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS : Please reward all helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 07:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/1568699#M256774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T07:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: regarding Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/1568700#M256775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules will funciton independently, is it possible to use FM directly ? No isn't ?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So generally we call FM from driver program or what ever it may be, it has to return back. So raising the error in the FM will not solve the purpose, you have to some how capture the error and display it to the user. AIf you want to raise the error in the FM you can do it so, but the continuty with the driver program or the other will get lost. Because it has to return back to the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is suffice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat Ramanan N&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Venkat Ramanan Natarajan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 07:27:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-function-module/m-p/1568700#M256775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T07:27:53Z</dc:date>
    </item>
  </channel>
</rss>

