cancel
Showing results for 
Search instead for 
Did you mean: 

REPORT_SUCESS

Former Member
0 Kudos

Hi All,

I am trying to display a pop up message by calling REPORT_SUCCESS method of IF_WD_MESSAGE_MANAGER.

But it is showing normal success message. Pls look into the following codes:

CALL METHOD LO_MESSAGE_MANAGER->REPORT_SUCCESS

EXPORTING

MESSAGE_TEXT = 'Do you want to continue?'

  • PARAMS =

  • MSG_USER_DATA =

  • IS_PERMANENT = ABAP_FALSE

  • SCOPE_PERMANENT_MSG = CO_MSG_SCOPE_CONTROLLER

  • VIEW =

SHOW_AS_POPUP = ABAP_TRUE

  • CONTROLLER_PERMANENT_MSG =

  • MSG_INDEX =

  • CANCEL_NAVIGATION =

  • ENABLE_MESSAGE_NAVIGATION =

  • COMPONENT =

RECEIVING

MESSAGE_ID = M_ID

.

Kindly help me on this.

Regards,

Sameer

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sam,

By seeing your code i think You are looking Popup to confirm window? right

for that you have to write your own code..

**** CALLING CONFIRMATION DIALOG WINDOW*********
  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 lo_view_controller type ref to if_wd_view_controller.
  data :  lt_text TYPE string_table,
          ls_text TYPE string.

  ls_text = 'You want to continue...Are you sure?'.
  INSERT ls_text INTO TABLE lt_text.

* Get Window manager
  lo_api_component  = wd_comp_controller->wd_get_api( ).
  lo_window_manager = lo_api_component->get_window_manager( ).

  lo_window = lo_window_manager->create_popup_to_confirm( text = lt_text
  button_kind     = if_wd_window=>co_buttons_yesno
  message_type    = if_wd_window=>CO_MSG_TYPE_WARNING
  window_title    = 'Information to Confirm...'
  window_position = if_wd_window=>co_center ).

  lo_view_controller = wd_this->wd_get_api( ).

* creating ok button
  lo_window->subscribe_to_button_event(
             button = if_wd_window=>co_button_yes
             action_name = 'YES'
             action_view = lo_view_controller
             is_default_button = abap_false ).

  lo_window->subscribe_to_button_event(
             button = if_wd_window=>co_button_no
             action_name = 'NO'
             action_view = lo_view_controller
             is_default_button = abap_true ).

* Set the height and width here
  lo_window->set_window_size( width = '40%' height = '5%' ).

  lo_window->open( ).

Dont forget to create two actions in actions tab, YES and NO.

In YES write code to perform some action.

also go through this..

http://help.sap.com/saphelp_rc10/helpdata/en/43/c2283b2320332ce10000000a11466f/content.htm

Cheers,

Kris.