cancel
Showing results for 
Search instead for 
Did you mean: 

Clearing/Canceling a FPM event

Former Member
0 Kudos

Hello all,

I have a class attribute that is a flag. What I am trying to do is stop/clear/kill/cancel all events that are called while the flag is still set. I am currently looking into FPM_OVERRIDE_EVENT_OIF of the CL_LO_OIF_MODEL class, but still trying to figure it out. It seems the only place I can call this method is in the OVERRIDE_EVENT_OIF method, but in that method I don't have an instance of the current event. Does anyone have any ideas or a different approach?

Michael

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In method OVERRIDE_EVENT_OIF you have parameter io_oif. You can access the event by io_oif->mo_event.

The event can be canceled by io_oif->cancel_event( )

Also you can set the event as failed in method PROCESS_EVENT by returning ev_result = if_fpm_constants=>gc_event_result-failed.

Regards

Kameliya

Former Member
0 Kudos

Kameliya,

I actually had found this, but thank you for your reply, I enhanced the OVERRIDE_EVENT_OIF and within in my if statement called the io_oif->cancel_event( ). Thank you again for the response and points are rewarded.

Answers (0)