Skip to Content

Quit Event Message processing does not work for expected event

Hi Experts ,

I used activity method ACT_QUIT_EVM_PROCESSING to quit event message processing of one of the expected event . It worked for unexpected event but do not work for expected event .

I checked the code and realized that line number 10 of the method CHECK sy-subrc NE 0 (True only for unexpected event) .

When I triggered the same method for expected event then developer set SY-SUBRC not equal to 0 to see if event message processing will be stopped and it did not work although MY_STORAGE_IRRELEVANT is set to 0 .

I am just wondering why it works for unexpected event and not for expected event .

I know that we can quit event message processing for expected event by using Preprocessing function module but I do not want to use that concept . The reason is that I want to use alert trigger functionality which I can set only through rule set .

How should I quit event message processing for expected event by using activity in rule set .

Thanks for your suggestion .

Regards,

Rajesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 25, 2016 at 06:14 AM

    Hi Rajesh,

    for Expected Events please use Activity Method STOP_PROCESSING:

    Short Text

    Stop the processing of the current event message

    Functionality

    This method enables you to stop the processing of the event message. The attribute MY_NO_EH_UPDATE of the event handler model is set. This prevents all updates for this event handler during the event message processing. If you want to log the combination of the event handler GUID and the event message GUID in the table /SAPTRX/LOCKEDEH for processing later, you have to set activity parameter 1 LogAsLocked to value 'X'.

    Return code:

    • Always 0.
    Parameters

    Parameter-1 (LogAsLocked) : Enter 'X' if you want to log the combination of event handler GUID and event message GUID in the table /SAPTRX/LOCKEDEH for reprocessing later with report /SAPTRX/PROCESS_LOCKED_EHS.

    Best regards,

    Steffen

    Add comment
    10|10000 characters needed characters exceeded