cancel
Showing results for 
Search instead for 
Did you mean: 

Create POP-UP in web dynpro

Former Member
0 Kudos

Hello all,

I want to display popup confirm window when closing browser window, "changes will be lost" yes or no.

can anyone explaine me why I could not triggert from WDDOEXIT  and how can I solve this ?

Thank you very much

Accepted Solutions (0)

Answers (2)

Answers (2)

rajeshkothamasu
Active Participant
0 Kudos

Hi Ofla,

Can you please elaborate your requirement. At what time popup has to trigger.

Former Member
0 Kudos

Hello,

I am working with NWBC, and if the User wants change the window, he should get an Information about this, so a Popup '' Data will be lost'' with Buttons ( Yes or No)

if click on yes, the window should be changed, if he click on ( No) the window should not be closed/changed.

regards

former_member184578
Active Contributor
0 Kudos

Hi,

you could use Work protect mode to achieve this. : Work-Protect Mode - Floorplan Manager for Web Dynpro ABAP - SAP Library

hope this helps,

Regards,

Kiran

Former Member
0 Kudos

Hello,

yes i can see now that is not possible to call a popup from WDDOEXIT, and can only done by Work Protect Mode,

can anyone tell me how can I do this? which coding shall I use? in which methode shall set the coding and how can I check the coding ?

thanky ou very much .

rohit3611
Contributor
0 Kudos

In the portal you can use like this.

SAP Library - Portal Integration of Web Dynpro Applications

http://help.sap.com/saphelp_nw70ehp2/helpdata/en/45/b76f4169e25858e10000000a1550b0/content.htm

In the FPM

Under interface tab of your feeder class implement IF_FPM_WORK_PROTECTION


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


In that method,Just set EV_DIRTY = abap_true.




Best regards,

Rohit

Former Member
0 Kudos

Hello,

can anyone give me a name of an SAP Standard Application where I can fine such example?

Thank you very much

rohit3611
Contributor
0 Kudos

Hi,

There is WD component FPM_TEST_DIALOG_DATALOSS.

Configuration id FPM_TEST_DIALOG_01.

WD Application is FPM_TEST_DIALOG_01.

Best regards,

Rohit

rohit3611
Contributor
0 Kudos

Hi,

There is WD component FPM_TEST_DIALOG_DATALOSS.

Configuration id FPM_TEST_DIALOG_01.

WD Application is FPM_TEST_DIALOG_01.

Best regards,

Rohit

Former Member
0 Kudos

Hello,

I have done everything as mentioned, i gave IS_DIRTY = X and implement the Methode NEED_CONFERMATION, but nothing is Happening wehen I change the  the Subtable or leave the application, i even set a Breakpoint, but it will not triggred !!

Do i have to do something eles to make it work ?

regards

rohit3611
Contributor
0 Kudos

Hi,

This is the only way i did, Have you tested the test application.

Is the popup coming for that?

Best regards,

Rohit

Former Member
0 Kudos

I Have set all Corresponding IF as below in Snapshot implemented

but when i set Break Point in the methode IS_DIRTY or NEED_CONFERMATION, nothings happend and no Popup will be displayed !!!

did I miss something ?

Regards

former_member184578
Active Contributor
0 Kudos

Hi,

You cannot display popups from EXIT method. when the control reach the EXIT method, the parent window of application is already closing and you cannot show any messages/popups.

Please let know your requirement to suggest any solutions.

Regards,

Kiran