cancel
Showing results for 
Search instead for 
Did you mean: 

Stop triggering the FPM event!!!

Former Member
0 Kudos

Hi Experts,

In SRM7 we have one OIF FPM event, on click of which a popup will appear.I have created the popup on click of that event.

But when click the 'SUBMIT' button, the event is getting triggered after that the popup is coming.

I want that event to be triggered from 'YES' button of the popup.

Any idea will be helpful.

With Regards,

Subhasis

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Yes there is a way to achieve this.

U must use method 'Needs Confirmation' that u will find in your component controller after implementing "IF_FPM_UI)BUILDING_BLOCK'.

In this method u can display any confirmation text you want.

Only if the user presses 'Yes' on that popup, the processing goes further else the event is not processed.

Former Member
0 Kudos

Hi,

Try to go through this tutorial, Might be helpfull.

link : http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/706e7dcf-b5a4-2e10-7185-8cfbb1b99901

Lukas_Weigelt
Active Contributor
0 Kudos

Hi,

If you are inside a method of the FPM and want to alter the further flow of the method by an action set in the popup you are calling, this is not going to work. When using server side eventing, the phase model will make a complete roundtrip of the method, then render the popup, then user action is taken. The server sided event will not halt and wait for user interactions here.

Example:

What you think happens:

FPM method start.

--> <code>

--><popup>

--><code which execution depends on what was done in the popup>

FMP method end.

What happens in runtime:

FPM method start.

--> <code>

--> <popup is prepared for rendering>

--> <code which execution depends on what was done in the popup is executed with initial dependencies since the popup isn't even rendered yet.

FPM method end.

Server roundtrip.

Popup is rendered.

User takes action in the popup.

--> What you wanted to impact is long since over

Cheers, Lukas

Former Member
0 Kudos

Hi Lukas,

thanks for your reply.

but is there any way to achieve the functionality? is there any way to suspend the event in the middle and then resuming later?

regards,

Subhasis