Skip to Content
avatar image
Former Member

reprocess event message

Hi all experts,

Is there a way to reprocess already processed event message in EM? Scenario is, I receive an event-->rule set process-->in one of the ruleset activity i reset the event status using EE_RESET due to some update failure in external system.

Now I may not get the event message again from external party, but I need to reprocess this message again after sometime as i know that update failure won't occur in external system. This will set my EE status to green.

Thanks in advance,

Anu

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 31, 2015 at 10:01 PM

    Hi Anu,

    Right now, we have only option to reprocess through SAPTRX/EH_LIST -> Header-> Reprocess Event Messages to reprocess same event message.  The reason being, we should not manipulate reported event and post it as some company uses for audit purposes.

    The ideal option would be post a new event instead of updating existing event as this will also enable to you track down how many events are not posted due to errors.

    Regards


    GGOPII

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Daniel Haerder

      Thanks all the experts here😊.

      To conclude,

      1. When the event comes in EM, trigger necessary update to app system synchronously. Asynchronous process will create more complexity as we cannot catch the return code from app system OR if async, we have to again report the success/failure from app system to EM which is tedious and makes inconsistency between systems for shot perios of time.

      2. Quit the evnt processing if app system say 'failure'. Log the event into a custom table

      3. create a report to repost the event.

      Thanks again friends  and I am closing this thread as anwsered.

      Regards,

      Anu R

  • Oct 30, 2015 at 05:41 PM

    Hi Anu,

    There is no standard program available for re-processing. All we have for reprocessing is on EH list -> EH Details screen. There is a button to reprocess. This will reprocess all your events.

    In your case, it might not work as you have a EE_RESET activity. If conditions match, this will reset your expected again after posting.

    So, you have to remove your RESET activity and for posting:

    1) Use EH list to re-process messages

    2) Manually post the event again.

    You have to be careful here as significant changes to EH will also reprocesses all the event messages.

    Thanks,

    Vishnu

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Anu,

      I haven't seen any program or standard way to re-process any particular event unless it's a LOCKED event.

      In your case, your options are limited

      1) Create a custom program to read back and re-post the event which you want to re-process.

      2) If you have EM webui, manually post this event again.

      In both the options, you are creating one more event ( one more entry in /SAPTRX/EVM_HDR and related tables ) but not exactly re-processing the old event. Also, unless you take care of your EE_RESET condition, it keeps resetting your Expected Event.

      Let me know if you need additional inputs here.

      Thanks,

      Vishnu

  • Nov 03, 2015 at 12:19 AM

    Hi Anu,

    Looks like your in desperate need of reprocessing program without creating new event or reprocessing all the events.

    In that case, you need to develop a custom program similar to method "process_msgs".

    Class: /SAPTRX/CL_EH_EVENT_MSG_MODEL

    Method: PROCESS_MSGS

    You cannot directly call this method as it's protected. This method will not check if your message was processed or not and will try to process the event again. I am not sure of the impact if you reprocess the event though.

    Also, unless you take care of your EE_RESET activity or it's condition, it will not matter how many times you re-process it. It will reset EE again.

    Also, you need to be aware of the impact to existing statuses, changes to parameter values or any other changes to EH due to reprocessing a single event which may or may not be your latest event on EH.

    Let me know how it goes.

    Thanks,

    Vishnu

    Add comment
    10|10000 characters needed characters exceeded