on 08-24-2016 6:12 PM
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
Hi Rajesh,
for Expected Events please use Activity Method STOP_PROCESSING:
Stop the processing of the current event message
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:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
9 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.