Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9193

How to handle button event in modalup in webdynpro

$
0
0

Hi Gurus,

 

      We have two windows(each window have separate view),Now iam calling one window(view1) to

another window(view2) by using CREATE_AND_OPEN_POPUP,whenever the 2nd window(along with 2nd viw\ew) opens

one OK button is coming on that popup,Now how to handle this popup .Any one could u please suggest me the solution

below is the code am using....



 

DATA LO_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.

 

DATA LO_API_COMPONENT  TYPE REF TO IF_WD_COMPONENT.

DATA LO_WINDOW         TYPE REF TO IF_WD_WINDOW.

 

DATA LT_BUTTONS        TYPE WDR_POPUP_BUTTON_LIST.

DATA LS_CANC_ACTION    TYPE WDR_POPUP_BUTTON_ACTION.

Data ls_buttons like LINE OF LT_BUTTONS.

Data ls_CANCEL_ACTION type WDR_POPUP_BUTTON_ACTION.

     ls_buttons-BUTTON = '7'.

     ls_buttons-BUTTON = '8'.

append ls_buttons to lt_buttons.

 

ls_CANCEL_ACTION-ACTION_NAME = 'OK'.

 

LO_API_COMPONENT           = WD_THIS->WD_GET_API( ).

LO_WINDOW_MANAGER          = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).

* create the cancel icon, but without any action handler

LS_CANC_ACTION-ACTION_NAME = 'OK'.

* Simple example, see docu of method create_and_open_popup for details

LT_BUTTONS                 = LO_WINDOW_MANAGER->GET_BUTTONS_OK(

    default_button       = if_wd_window=>co_button_ok

).

LO_WINDOW                  = LO_WINDOW_MANAGER->CREATE_AND_OPEN_POPUP(

    WINDOW_NAME          = 'INVOICES_WIN'

    title                = 'Bill Initiation Process'

    MESSAGE_TYPE         = IF_WD_WINDOW=>CO_MSG_TYPE_NONE

    MESSAGE_DISPLAY_MODE = IF_WD_WINDOW=>CO_MSG_DISPLAY_MODE_SELECTED

*    is_resizable         = ABAP_TRUE

    BUTTONS              = LT_BUTTONS

    CANCEL_ACTION        = LS_CANC_ACTION

).


Viewing all articles
Browse latest Browse all 9193

Trending Articles