<?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/2154952#M455193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;suppose you have return value for error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if returnval = &amp;lt;error or what val are you taking&amp;gt;.&lt;/P&gt;&lt;P&gt;message i000(zspd) with &amp;lt;var for po&amp;gt;.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now dbl click on message class &amp;lt;here it is zspd&amp;gt; it will go to se 91 there a table control you can find &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;000 PO number &amp;amp; does not exist&lt;/P&gt;&lt;P&gt;save it ..&lt;/P&gt;&lt;P&gt;reagrds&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2007 06:18:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-05T06:18:15Z</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/2154945#M455186</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 have a function module to get PO details based on PO number given as the import parameter. I have taken a return parameter and need to display error message if the PO number given is not available. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message should be like&lt;/P&gt;&lt;P&gt;"PO number XXXXX does not exis". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone let me know how to code this in the FM to give the error message. Need to display the PO number in the error message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 03:47:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/2154945#M455186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T03:47:48Z</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/2154946#M455187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Take the return parameter check that PO number is exist or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If returnparamenter is  initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   MESSAGE E000(zmamap) WITH  'PO number'  PO nunber 'does not exist'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 03:56:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/2154946#M455187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T03:56:16Z</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/2154947#M455188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;  I think based on sy-subrc value we can made the code for error message. After checking the PO number related querrey then mention one IF condition like IF sy-subrc = &amp;lt;value&amp;gt; &lt;/P&gt;&lt;P&gt;message E..................&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;Hope this helps you, reply for queries, Shall post you the updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.  &lt;/P&gt;&lt;P&gt;Kumar. .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 03:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/2154947#M455188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T03:56:56Z</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/2154948#M455189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can find a demo program in R/3. Go to SE38 and try out this program DEMO_MESSAGES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps. I don't know if your function group have a message class tag to it and I don't know if there is any customized message that you have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in addition you can view this function module in transaction se37 'DEMO_FUNCTION_MESSAGE'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 04:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/2154948#M455189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T04:00: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/2154949#M455190</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 want an error then raise an exception .&lt;/P&gt;&lt;P&gt;So first define a message in your message class as below&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;PO Number &amp;amp; does not exist.&amp;lt;/b&amp;gt; and also define an exception ERROR in your FM.&lt;/P&gt;&lt;P&gt;No in the code where you find that the PO does not exist , raise this exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;message E009(Z_TEST) WITH PO_NUM RAISING ERROR .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here 009 is your error message&lt;/P&gt;&lt;P&gt;      Z_TEST message class&lt;/P&gt;&lt;P&gt;and PO_NUM is the PO Number entered by the user.&lt;/P&gt;&lt;P&gt;Hope this helps in case you have any further queries please do revert back.&lt;/P&gt;&lt;P&gt;Regadrs&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 04:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/2154949#M455190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T04:09:44Z</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/2154950#M455191</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;Assign the returning parameter to a variable say po_num.&lt;/P&gt;&lt;P&gt;To display the error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if po_num is not initial.&lt;/P&gt;&lt;P&gt;message e000(zz) with 'Purchase order number po_num doesnot exist'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 04:43:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/2154950#M455191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T04:43:09Z</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/2154951#M455192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEMO_FUNCTION_MESSAGE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    message_type        =  S (which type do u want like S ,I etc)&lt;/P&gt;&lt;P&gt;    message_place       = 10&lt;/P&gt;&lt;P&gt;    message_event       =  10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message s0001 with  "PO number XXXXX does not exis". &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will Use for U&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 05:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/2154951#M455192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T05:49:29Z</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/2154952#M455193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;suppose you have return value for error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if returnval = &amp;lt;error or what val are you taking&amp;gt;.&lt;/P&gt;&lt;P&gt;message i000(zspd) with &amp;lt;var for po&amp;gt;.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now dbl click on message class &amp;lt;here it is zspd&amp;gt; it will go to se 91 there a table control you can find &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;000 PO number &amp;amp; does not exist&lt;/P&gt;&lt;P&gt;save it ..&lt;/P&gt;&lt;P&gt;reagrds&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 06:18:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error-message/m-p/2154952#M455193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T06:18:15Z</dc:date>
    </item>
  </channel>
</rss>

