<?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 Displaying Error Message In ESS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-in-ess/m-p/7356253#M1541425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The steps of my program kinda look like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. User input the begin date and end date of his / her travelling date on ESS web page.&lt;/P&gt;&lt;P&gt;2. If the end date was more than 2 weeks ago then the Error Message displayed in the web page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use the CALL METHOD message_handler-&amp;gt;add_message, but it seems doesn't work at all...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the method like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA badi_message_handler   TYPE REF TO cl_hrpa_message_list.&lt;/P&gt;&lt;P&gt;    DATA message_handler        TYPE REF TO if_hrpa_message_handler.&lt;/P&gt;&lt;P&gt;    DATA msg                    TYPE symsg.&lt;/P&gt;&lt;P&gt;    DATA is_ok                  TYPE boole_d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT badi_message_handler.&lt;/P&gt;&lt;P&gt;    message_handler = badi_message_handler.&lt;/P&gt;&lt;P&gt;    msg-msgid = 'PG'.&lt;/P&gt;&lt;P&gt;    msg-msgty = 'E'.&lt;/P&gt;&lt;P&gt;    msg-msgno = '016'.&lt;/P&gt;&lt;P&gt;    msg-msgv1 = 'Cannot claim more than 2 weeks'.&lt;/P&gt;&lt;P&gt;    CALL METHOD message_handler-&amp;gt;add_message&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        message = msg&lt;/P&gt;&lt;P&gt;        cause   = message_handler-&amp;gt;unknown.&lt;/P&gt;&lt;P&gt;    is_ok = space.&lt;/P&gt;&lt;P&gt;    badi_message_handler-&amp;gt;add_messages( message_handler ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've already attach that code in Include ZXTRVU03 for user exit FITR0003&lt;/P&gt;&lt;P&gt;and the Interface IF_EX_TRIP_WEB_CHECK~USER_CHECK_RECEIPTS for the BADI TRIP_WEB_CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything wrong with my code or the place where I put that code is not right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I'm a newbie in ABAP OO, but is there any other method to display the error message on ESS web page, because I think that method 'add_message' is only for adding the message to message handler, not displaying it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've really appriciated for all of your help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jonathan Febrian on Nov 3, 2010 12:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Nov 2010 11:05:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-03T11:05:07Z</dc:date>
    <item>
      <title>Displaying Error Message In ESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-in-ess/m-p/7356253#M1541425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The steps of my program kinda look like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. User input the begin date and end date of his / her travelling date on ESS web page.&lt;/P&gt;&lt;P&gt;2. If the end date was more than 2 weeks ago then the Error Message displayed in the web page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use the CALL METHOD message_handler-&amp;gt;add_message, but it seems doesn't work at all...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the method like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA badi_message_handler   TYPE REF TO cl_hrpa_message_list.&lt;/P&gt;&lt;P&gt;    DATA message_handler        TYPE REF TO if_hrpa_message_handler.&lt;/P&gt;&lt;P&gt;    DATA msg                    TYPE symsg.&lt;/P&gt;&lt;P&gt;    DATA is_ok                  TYPE boole_d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT badi_message_handler.&lt;/P&gt;&lt;P&gt;    message_handler = badi_message_handler.&lt;/P&gt;&lt;P&gt;    msg-msgid = 'PG'.&lt;/P&gt;&lt;P&gt;    msg-msgty = 'E'.&lt;/P&gt;&lt;P&gt;    msg-msgno = '016'.&lt;/P&gt;&lt;P&gt;    msg-msgv1 = 'Cannot claim more than 2 weeks'.&lt;/P&gt;&lt;P&gt;    CALL METHOD message_handler-&amp;gt;add_message&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        message = msg&lt;/P&gt;&lt;P&gt;        cause   = message_handler-&amp;gt;unknown.&lt;/P&gt;&lt;P&gt;    is_ok = space.&lt;/P&gt;&lt;P&gt;    badi_message_handler-&amp;gt;add_messages( message_handler ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've already attach that code in Include ZXTRVU03 for user exit FITR0003&lt;/P&gt;&lt;P&gt;and the Interface IF_EX_TRIP_WEB_CHECK~USER_CHECK_RECEIPTS for the BADI TRIP_WEB_CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything wrong with my code or the place where I put that code is not right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I'm a newbie in ABAP OO, but is there any other method to display the error message on ESS web page, because I think that method 'add_message' is only for adding the message to message handler, not displaying it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've really appriciated for all of your help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jonathan Febrian on Nov 3, 2010 12:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2010 11:05:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-in-ess/m-p/7356253#M1541425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-03T11:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Error Message In ESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-in-ess/m-p/7356254#M1541426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was there ever an answer to this? Having the same problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 17:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-error-message-in-ess/m-p/7356254#M1541426</guid>
      <dc:creator>former_member353633</dc:creator>
      <dc:date>2013-05-24T17:36:08Z</dc:date>
    </item>
  </channel>
</rss>

