Deactivation Report for Event Handler

    Has anyone written a quick report to deactivate any number of EH’s?

    That way we can run the standard delete program.

    Has anyone written a quick report to deactivate any number of EH's? That way we can run the standard delete program.

    Deactivation Report for Event Handler

    Very Helpfull

    User Rating: Be the first one !
    Supporter Asked on November 8, 2016 in event management.
    Add Comment
    1 Answer(s)

      Hi Alex,

       

      I also wrote a report to deactivate Event Handlers. First make your selection like for Tracking IDs or EH Creation date. You may can reuse some coding e.g. from /SAPTRX/ARCHIVE_A0_WRITE.

       

      After you have selected your EH GUIDS you should use the standard method update_eh_hdr_status from class /saptrx/cl_eh_det_intf_cntrl. The method has the import parameter deactivate for deactivation your Event Handler. The advantage using this method is that things like lock the Event Handler etc. are handled by the system.

       

      So the call can look like that.

       

      1. LOOP AT lt_guid INTO ls_guid.
      2.  
      3. CALL METHOD /saptrx/cl_eh_det_intf_cntrl=>update_eh_hdr_status
      4. EXPORTING
      5. i_guid = ls_guid
      6. i_deactivate = ‘X’
      7. IMPORTING
      8. e_bapiret_tab = lt_return.
      9.  
      10. ENDLOOP.

       

      Regards

      Berthold

      Add Comment

      Your Answer

      By posting your answer, you agree to the privacy policy and terms of service.