cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro Popup Place Button At Bottom Right Corner

Former Member
0 Kudos

Hi Folks,

i want to place a self-defined button in my view such that when the corresponding window is opened as popup, the button appears at the bottom right corner such as shown in the attached picture.

I do not want to use the predefined button types such as this:

  button_kind            = if_wd_window=>co_buttons_yesnocancel
default_button         = if_wd_window=>co_button_yes ).

I want to have access to the button in the layout-editor.

Any help greatly appreciated!

Kind regards,

Simon

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Simon,

You can change then text on the buttons, define an action for it using the following code:

lr_view_controller = wd_this->wd_get_api( ).

lr_popup->subscribe_to_button_event(

button = if_wd_window=>co_button_ok

button_text = 'Yes'

action_name = 'SUBMIT'

action_view = lr_view_controller ).

Refer the following link:

http://www.sapdev.co.uk/sap-webapps/sap-webdynpro/wdp_displaypopup.htm

Regards,

Sayan

Former Member
0 Kudos

Hi Simon,

when ever u r calling ur window as popup, in that code put

title                  = window name

*                  close_in_any_case      = abap_true

                    MESSAGE_DISPLAY_MODE   = IF_WD_WINDOW=>CO_MSG_DISPLAY_MODE_SELECTED

*                  close_button           = abap_true

                    BUTTON_KIND            = IF_WD_WINDOW=>CO_BUTTONS_OK

                    MESSAGE_TYPE           = IF_WD_WINDOW=>CO_MSG_TYPE_NONE

                    DEFAULT_BUTTON         = IF_WD_WINDOW=>CO_BUTTON_OK

un comment the close button = abap true , then u wont get any standard close button.

after that as usually create a button with text close on the bottom right corner of the view and write action for dat

Former Member
0 Kudos

title                  = window name

*                  close_in_any_case      = abap_true

                    MESSAGE_DISPLAY_MODE   =IF_WD_WINDOW=>CO_MSG_DISPLAY_MODE_SELECTED

*                  close_button           = abap_true

                    BUTTON_KIND            = IF_WD_WINDOW=>CO_BUTTONS_OK

                    MESSAGE_TYPE           = IF_WD_WINDOW=>CO_MSG_TYPE_NONE

                    DEFAULT_BUTTON         = IF_WD_WINDOW=>CO_BUTTON_OK

put the comments for the buttons u dont want.

then create ur own in ur view and create actions for those buttons