Skip to Content

How to debug SM62 / SM64 background events

How to debug SM62 / SM64 background events ?

Those events are called from some of the standards transaction like va02 / cj20n but intern those events trigger the some report.

these events re triggered method cl_batch_event=>raise

w_evepara = vbak-vbeln.
CALL METHOD cl_batch_event=>raise
EXPORTING
i_eventid = 'ZMSP_UPD'
i_eventparm = w_evepara
* i_server =
* i_ignore_incorrect_server = 'X'
EXCEPTIONS
excpt_raise_failed = 1
excpt_server_accepts_no_events = 2
excpt_raise_forbidden = 3
excpt_unknown_event = 4
excpt_no_authority = 5
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

when I make the some changes those events triggered and background and executed successfully.

I want o debug the those events , can any one help me to debug background events ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 25, 2017 at 01:47 PM

    Why do you want to debug an event? OR do you mean you want to know what program is executed as result of event trigger?

    If that is the case, you should check transaction SM37. there is an input to search a job related to event.

    Hope that helps.

    Add comment
    10|10000 characters needed characters exceeded

    • I wan to debug the code which is written inside the Event. I mean I want to debug the Program which is getting executed for the particular event.

      I know event name and I know program name it will be triggered for the VA02 transaction. but I want to debug the program associated that event .

      I can see the program of that event is in release state in SM37. after VA02 that program will be finished and executed successfully.

      This event is triggred by method cl_batch_event=>raise

      Event Id is i_eventid = 'ZMSP_UPD' and event parameter is

      i_eventparm = w_evepara.

      can you please assit how do i debug the program.

  • Jul 25, 2017 at 02:19 PM

    I wan to debug the code which is written inside the Event. I mean I want to debug the Program which is getting executed for the particular event.

    I know event name and I know program name it will be triggered for the VA02 transaction. but I want to debug the program associated that event .

    I can see the program of that event is in release state in SM37. after VA02 that program will be finished and executed successfully.

    Add comment
    10|10000 characters needed characters exceeded