cancel
Showing results for 
Search instead for 
Did you mean: 

display message

Former Member
0 Kudos

Gudday,

I need to display information message,'saved successfully' in my WDA after successfully saving it in the database for a new entry.It is not a pop-up, just message.

Can anyone suggest me how can i do this??

Thanks,

Deepthi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Write this code under your condition,

DATA: L_CURRENT_CONTROLLER TYPE REF TO IF_WD_CONTROLLER,
  	L_MESSAGE_MANAGER TYPE REF TO IF_WD_MESSAGE_MANAGER.


        L_CURRENT_CONTROLLER ?= WD_THIS->WD_GET_API( ).

        CALL METHOD L_CURRENT_CONTROLLER->GET_MESSAGE_MANAGER
          RECEIVING
            MESSAGE_MANAGER = L_MESSAGE_MANAGER.

* Report message
        CALL METHOD L_MESSAGE_MANAGER->REPORT_SUCCESS
          EXPORTING
            MESSAGE_TEXT = 'Sucessfully Completed'.

Thanks.

Answers (2)

Answers (2)

0 Kudos

better to use wizard then select message manager and click F4 then you can choose option Report_success click on OK you can get the code.

regards-Naresh.

Former Member
0 Kudos

See Viji's post

Hi Deepthi, Use the Message Manager to report a succes message.

data:
    l_current_controller type ref to if_wd_controller,
    l_message_manager    type ref to if_wd_message_manager.

    l_current_controller ?= wd_this->wd_get_api( ).

    call method l_current_controller->get_message_manager
      receiving
        message_manager = l_message_manager.

      CALL METHOD l_message_manager->report_success
        EXPORTING
          message_text  = 'saved successfully'.
Regards, Roelof

Edited by: Roelof Albers on Mar 4, 2008 2:56 PM

Former Member
0 Kudos

Hi,

I tried this source, but It shows me the message saving or not.

I put the source in onaction SAVE.

Is it correct?