cancel
Showing results for 
Search instead for 
Did you mean: 

How to give a POP up window on closing the browser or clicking on X button at browser???

0 Kudos


I have a requirement to give a popup confirmation window before closing a webdynpro application on browser. Can somebody please help me in this?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos


Hi Rama and Katrice,

Can you please elaborate the Dirty method through FPM feeder Classes.

Thanks

Syed

Former Member
0 Kudos

Hi Shehzad,

Under interface tab of your feeder class implement IF_FPM_WORK_PROTECTION as shown below

In methods tab, you can find method : IF_FPM_WORK_PROTECTION~IS_DIRTY

In that method,Just set EV_DIRTY = abap_true.

PS :  The shell-API requires this information as soon as the application state changes.
Therefore, the IF_FPM_WORK_PROTECTION~IS_DIRTY method is called by the FPM runtime during each round-trip.Therefore, it needs to perform this very quickly. Note that the FPM does not necessarily call the method IS_DIRTY on all UIBBs that are currently visible. As soon as one UIBB informs the FPM that it has unsaved data, the FPM does not need to
call the method on the remaining visible UIBBs. For this reason, do not assume
that the IS_DIRTY method is called by the FPM on all visible UIBBs.

Thanks

KH

0 Kudos

Thanks Katrice,

I will check the above steps and will confirm.Thanks for your timely help.

Shehzad

Former Member
0 Kudos

Hi Shehzad,

Pls close the tread if your issue is resolved.

Thanks

KH

0 Kudos

Thanks alot Katrice for your help. My issue is resolved.

You also have a great name as your answer.

Thanks

Shehzad

Answers (2)

Answers (2)

ramakrishnappa
Active Contributor
0 Kudos

Hi,

In stand alone application of WD, its not possible to capture the close event of browser. But if your application is running using portal, it is possible to use the DIRTY flag concept.

Regards,

Rama

0 Kudos

Hi Rama, can you please give me some links for dirtly flag concept?

Former Member
0 Kudos

Hi Shehzad,

Browse through the  below links which gives you idea and helps you.

Work Protect Mode

FPM Work protect mode (data loss popup)

Thanks

KH

ramakrishnappa
Active Contributor
0 Kudos

Hi,

Please refer the below link.

Work Protect Mode (SAP Library - Web Dynpro for ABAP)

As suggested by Katrice, search for threads  using term "workprotect mode".

Regards,

Rama

Former Member
0 Kudos

Hi Shehzad,

We cannot control the browser button events in webdynpro and hence we cannot show popup window on click of 'X' browser button.

The other work around would be creating button(namely CLOSE) and you can raise the GO_DATA_LOSS popup.

For more information, you can refer this link

Thanks

KH