cancel
Showing results for 
Search instead for 
Did you mean: 

How to Stop triggering the FPM event

Former Member
0 Kudos

Hi Experts,


I have a requirement in fpm i have to stop process on a certian validation i'm implementing NEEDS_CONFIRMATION of interface IF_FPM_UI_BUILDING_BLOCK i'm able to stop process by raising Excetion and using method raise_bapiret2_exception of interface IF_FPM_MESSAGE_MANAGER.

But the thing is I want to show message on current screen only and stop process. not to show Exception screen.

want to show message like this.

Regards

Mohammed Sajid.

Accepted Solutions (1)

Accepted Solutions (1)

former_member193369
Active Participant
0 Kudos

Hello Mohammed,

with method NEEDS_CONFIRMATION you are triggering a confirmation popup. Depending on the user's choice the currently running FPM event is canceled or continued. So if you want the user to decide whether to stop the the "process" you are right in using NEEDS_CONFIRMATION. Nevertheless you should not issue any message there as it is called before the user decides if the process shalkl be stopped.

When the user decided to stop the process, the FPM event loop is cancelled and all involved UIBBs are informed about the cancellation via the method AFTER_FAILED_EVENT. This is the best place to issue a message.

To avoid nevigating to the error page you should use one of the IF_FPM_MESSAGE_MANAGER~REPORT* methods instead of IF_FPM_MESSAGE_MANAGER~RAISE_BAPIRET2_EXCEPTION.

If you simply want to cancel the request, without user decision it's much easier. Simply return FAILED from the PROCESS_EVENT method of the affected UIBB and issue the message via one of the IF_FPM_MESSAGE_MANAGER~REPORT* methods.

Best regards,

Christian

Answers (0)