cancel
Showing results for 
Search instead for 
Did you mean: 

Pop up Confirmation

Former Member
0 Kudos

Hi there,

I created a ADD WD application, but I would like then click the button SAVE CHANGES will appears a POPUP "DATA SAVED!"

How can I do this?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Minoru

use can use method POPUP_TO_CONFIRM of class CL_WD_POPUP_FACTORY.

Regards

Naresh

Former Member
0 Kudos

Hi,

Use a code similar to that given below: Hope this helps.

data:

api_component type ref to if_wd_component,

window_manager type ref to if_wd_window_manager,

window type ref to if_wd_window.

api_component = wd_comp_controller->wd_get_api( ).

window_manager = api_component->get_window_manager( ).

window = window_manager->create_popup_to_confirm(

text = 'DATA SAVED'

button_kind = if_wd_window=>CO_BUTTONS_NONE "no buttons"

message_type = if_wd_window=>CO_MSG_TYPE_INFORMATION

window_title = 'INFORMATION'

window_position = if_wd_window=>co_center ).

window->open( ).

Regards,

Wenonah

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

You can use a message handling. Follow an example:


METHOD message_handling .
  DATA:
    lr_current_controller TYPE REF TO if_wd_controller,
    lr_message_manager    TYPE REF TO if_wd_message_manager.

  lr_current_controller ?= wd_this->wd_get_api( ).
  lr_message_manager = lr_current_controller->get_message_manager( ).

  lr_message_manager->report_t100_message(
    msgid = iv_msgid
    msgno = iv_msgno
    msgty = iv_msgty
    p1    = iv_p1
    p2    = iv_p2
    p3    = iv_p3
    p4    = iv_p4 ).
ENDMETHOD.

In this method, the program show a message that is declared in a mesasge class. If you look at IF_WD_MESSAGE_MANAGER there are other methods to show a message.

And you can find more information at this blog [https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/8402] [original link is broken] [original link is broken] [original link is broken];.

Regards,