cancel
Showing results for 
Search instead for 
Did you mean: 

Quit Event Message processing does not work for expected event

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member190756
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Steffen ,

My requirement is as follows :

If POD date is less than Departure date then we have trigger a alert and then we have to stop processing of event message . If I use STOP_PROCESSING then event message processing will be completed stopped and Alert will not be triggered .

Please suggest .

Regards,

Rajesh

former_member190756
Active Contributor
0 Kudos

Hi Rajesh,

Did you try to call the Alert activity synchronously(Activity Parameter)?

But best would be to use a Pre Processing function and handle the alert there.

Best regards,

Steffen