Skip to Content
author's profile photo Former Member
Former Member

REPORT_SUCESS

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Sep 10, 2011 at 05:15 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.