<?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: show error message in smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/show-error-message-in-smartforms/m-p/598497#M24394</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;please can any one suggest where i am going wrong&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;The whole thing is wrong, sorry. There should be no error messages in the forms. &lt;/P&gt;
  &lt;P&gt;If there is any kind of exception then this must be handled in the program that calls the form &lt;STRONG&gt;before&lt;/STRONG&gt; the form is called. Depending on what it is exactly, there are different ways to implement this. But overall that's the proper design.&lt;/P&gt;
  &lt;P&gt;If there is no data for the form to output, why are you even calling the form? Think about it.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jun 2018 21:33:47 GMT</pubDate>
    <dc:creator>Jelena_Perfiljeva</dc:creator>
    <dc:date>2018-06-14T21:33:47Z</dc:date>
    <item>
      <title>show error message in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/show-error-message-in-smartforms/m-p/598495#M24392</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
  &lt;P&gt;my requirement is to throw an error in smartforms(i.e in flow logic-&amp;gt;program lines),&lt;/P&gt;
  &lt;P&gt;for this i have written a code like below,&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;if lv_tbft is INITIAL.

  CALL FUNCTION 'SSF_MESSAGE'
  EXPORTING
    I_MSGID       = '00'
    I_MSGTY       = 'E'
    I_MSGNO       = '5'
    I_MSGV1       = 'No data Exists'
*   I_MSGV2       =

*   I_MSGV3       =

*   I_MSGV4       =
    .

endif.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/158667-sf1.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/158668-sf2.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;i have declared a custom exception MY_ERROR in driver program as well as exception tab in smartform.(as suggested in some threads),&lt;/P&gt;
  &lt;P&gt;how ever the error message is not getting displayed(only the smartform is not getting printed),&lt;/P&gt;
  &lt;P&gt;please can any one suggest where i am going wrong(my intention is to display the error 'No data exists' for the end user)..&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 15:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/show-error-message-in-smartforms/m-p/598495#M24392</guid>
      <dc:creator>former_member185116</dc:creator>
      <dc:date>2018-06-14T15:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: show error message in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/show-error-message-in-smartforms/m-p/598496#M24393</link>
      <description>&lt;P&gt;You will have to raise this exception in the function module that is getting called&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 17:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/show-error-message-in-smartforms/m-p/598496#M24393</guid>
      <dc:creator>developerone</dc:creator>
      <dc:date>2018-06-14T17:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: show error message in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/show-error-message-in-smartforms/m-p/598497#M24394</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;please can any one suggest where i am going wrong&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;The whole thing is wrong, sorry. There should be no error messages in the forms. &lt;/P&gt;
  &lt;P&gt;If there is any kind of exception then this must be handled in the program that calls the form &lt;STRONG&gt;before&lt;/STRONG&gt; the form is called. Depending on what it is exactly, there are different ways to implement this. But overall that's the proper design.&lt;/P&gt;
  &lt;P&gt;If there is no data for the form to output, why are you even calling the form? Think about it.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 21:33:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/show-error-message-in-smartforms/m-p/598497#M24394</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2018-06-14T21:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: show error message in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/show-error-message-in-smartforms/m-p/598498#M24395</link>
      <description>&lt;P&gt;Instead of showing error message in smartforms , i have tried to throw error message through driver program,&lt;/P&gt;
  &lt;P&gt;as suggested by experts..&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;thank you all for your valuable suggestions..&lt;/P&gt;
  &lt;P&gt;thread closed..&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 06:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/show-error-message-in-smartforms/m-p/598498#M24395</guid>
      <dc:creator>former_member185116</dc:creator>
      <dc:date>2018-06-18T06:02:07Z</dc:date>
    </item>
  </channel>
</rss>

