cancel
Showing results for 
Search instead for 
Did you mean: 

create_popup_to_confirm

Former Member
0 Kudos

Dear Friends,

Kindly suggest me any way to use create_popup_to_confirm outside of WDA in a custom class method.

Thanks ,

Lalit Singh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi~

You should:

1. Get the window manager of the WD, for example:

wd_this->GO_WINDOW_MANAGER = lo_api_comp->get_window_manager( ).

2. Then pass the parameter to your class method which has one parameter typed "IF_WD_WINDOW_MANAGER", for example: Parameter Name is "IO_WINDOW_MGR"

3. Then you can use this reference object to open pop_up window.

Best wishes~

Good luck.

Former Member
0 Kudos

Hi Friends,

I have to enhance Travel Management System by putting popup on SaveDraft button.

When i put popup logic in PRE_EXIT, popup appears after execution all phase model (WD Framework) , thus running SAVE_AS_DRAFT method also.

I tried POPUP_TO_CONFIRM, but it throws dump.

then i tried to create a class method using CREATE_POPUP_TO_CONFIRM, but it again has some restriction like we cant use WD_GET_API outside of WD Framework.

So i seek an alternate way to use CREATE_POPUP_TO_CONFIRM in a class method so that i could trigger it from outside WD framework without giving dump.

Thanks

Edited by: Lalit Singh on Dec 24, 2010 12:32 PM

gill367
Active Contributor
0 Kudos

Sorry, But I am not able to understand the problem here.

whatever you want to do after the popup confirmation, you can put that thing in the OK or YES event handler of the popup window.

Thanks

Sarb

Former Member
0 Kudos

>

> Hi Friends,

>

> I have to enhance Travel Management System by putting popup on SaveDraft button.

> When i put popup logic in PRE_EXIT, popup appears after execution all phase model (WD Framework) , thus running SAVE_AS_DRAFT method also.

>

> I tried POPUP_TO_CONFIRM, but it throws dump.

>

> then i tried to create a class method using CREATE_POPUP_TO_CONFIRM, but it again has some restriction like we cant use WD_GET_API outside of WD Framework.

>

> So i seek an alternate way to use CREATE_POPUP_TO_CONFIRM in a class method so that i could trigger it from outside WD framework without giving dump.

>

>

> Thanks

>

> Edited by: Lalit Singh on Dec 24, 2010 12:32 PM

Hi,

few days ago Thomas Jung answered to similar question.

As the event phase model is not completed, your pop up is not appearing in between. Pre and post exits. Let me search for Thomas Jung reply if he has suggested any work around.

This was thread [|] and unfortunately you were the person asked that question.

Since this is an FPM application you can try the following . i am not sure if it would work though

1. Some how you need to find a way to defer the FPM event from your pre_exit method.

2. Display your own custom dialog popup (webdynpro window).

3.Based on the yes or no answer you can resume or fail the event which you defer in step-1.

See the FPM developer's manual regarding this approach (POPUP dialog).

Edited by: Baskaran Senthivel on Dec 24, 2010 1:33 PM

Edited by: Baskaran Senthivel on Dec 24, 2010 1:39 PM

Former Member
0 Kudos

>

> Dear Friends,

>

> Kindly suggest me any way to use create_popup_to_confirm outside of WDA in a custom class method.

>

> Thanks ,

> Lalit Singh

Hallo Lalit,

do i understand you correctly that you want to call create_popup_to_confirm interface method of if_wd_window_manager from class method.

Can you please explain why do you want to do that ?

i would say , implement this interface if_wd_window_manager.