Skip to Content
avatar image
Former Member

create_popup_to_confirm

Dear Friends,

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

Thanks ,

Lalit Singh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Dec 24, 2010 at 08:18 AM

    >

    > 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.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 24, 2010 at 09:22 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      >

      > 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 [how-to-add-popup-for-user-confirmation-using-enhan|how-to-add-popup-for-user-confirmation-using-enhan] 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