<?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: MESSAGE_HANDLER  values? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-handler-values/m-p/2897722#M681302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you get the answer? &lt;/P&gt;&lt;P&gt;I want to know the same thing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jan 2009 08:59:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-30T08:59:04Z</dc:date>
    <item>
      <title>MESSAGE_HANDLER  values?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-handler-values/m-p/2897721#M681301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my requirement I am using FM HR_ECM_GET_DATETYP_FROM_IT0041. In this MESSAGE_HANDLER (importing parameter) is obligatory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What values does this parameter accept?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 12:51:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-handler-values/m-p/2897721#M681301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T12:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: MESSAGE_HANDLER  values?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-handler-values/m-p/2897722#M681302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you get the answer? &lt;/P&gt;&lt;P&gt;I want to know the same thing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2009 08:59:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-handler-values/m-p/2897722#M681302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-30T08:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: MESSAGE_HANDLER  values?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-handler-values/m-p/2897723#M681303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Satish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The interface IF_HRPA_MESSAGE_HANDLER is implemented by many classes yet I think the most appropriate one for you should be &lt;STRONG&gt;CL_HRPA_MESSAGE_LIST.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample report &lt;STRONG&gt;ZUS_SDN_ECM_GET_DATETYP_IT0041&lt;/STRONG&gt; shows you how to call the fm. It is not necessary to feed the IMPORTING parameter MESSAGE_HANDLER with an interface reference variable. Any implementing class will be accepted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within fm HR_ECM_GET_DATETYP_FROM_IT0041 -&amp;gt; HR_ECM_READ_INFOTYPE -&amp;gt; HR_ECM_ADD_MESSAGE the error messages are added to the message handler. I simulated this by setting &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;missing_auth = 'X'     " in debugging mode&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;within fm HR_ECM_READ_INFOTYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZUS_SDN_ECM_GET_DATETYP_IT0041
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Thread: MESSAGE_HANDLER values?
*&amp;amp; &amp;lt;a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="596748"&amp;gt;&amp;lt;/a&amp;gt;
*&amp;amp;---------------------------------------------------------------------*

REPORT  zus_sdn_ecm_get_datetyp_it0041.


DATA: "gif_msg_handler   TYPE REF TO if_hrpa_message_handler,
      go_msg_list       type ref to cl_hrpa_message_list.

data: gt_messages   type HRPAD_MESSAGE_TAB.

PARAMETERS:
  p_pernr   TYPE pernr_d  DEFAULT '00001402',
  p_keydt   TYPE datum    DEFAULT syst-datum,
  p_datar   TYPE datar    DEFAULT '01'.



START-OF-SELECTION.

  BREAK-POINT.

  CREATE OBJECT go_msg_list.
  "gif_msg_handler = go_msg_list.

  CALL FUNCTION 'HR_ECM_GET_DATETYP_FROM_IT0041'
    EXPORTING
      pernr                 = p_pernr
      keydt                 = p_keydt
      datar                 = p_datar
      message_handler       = go_msg_list " gif_msg_handler
*   IMPORTING
*     DATE                  =
*     IS_OK                 =
            .
  BREAK-POINT.

  TRY.
  CALL METHOD go_msg_list-&amp;gt;get_message_list
    IMPORTING
      messages = gt_messages.

     CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
       EXPORTING
         I_STRUCTURE_NAME                  = 'HRPAD_MESSAGE'
         I_GRID_TITLE                      = 'Message List'
*        IS_LAYOUT_LVC                     =
*        IT_FIELDCAT_LVC                   =
*        I_DEFAULT                         = 'X'
*        I_SAVE                            = ' '
*        IS_VARIANT                        =
       TABLES
         t_outtab                          = gt_messages
       EXCEPTIONS
         PROGRAM_ERROR                     = 1
         OTHERS                            = 2.
     IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
     ENDIF.

   CATCH cx_hrpa_violated_assertion .
  ENDTRY.



END-OF-SELECTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Feb 2009 22:47:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-handler-values/m-p/2897723#M681303</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-02-01T22:47:17Z</dc:date>
    </item>
  </channel>
</rss>

