cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying message

Former Member
0 Kudos

How to display a information message like "Your record is SAVED"..

Whn i was saving from the screen i want to display this message

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Check the example WDR_TEST_MSG_AREA .

1. Validate your data in seperate funtion module and update the message Id and number in internal table.

2. Use wizard to declate variable for massage area. It will create data declaration for messages of interface type IF_WD_MESSAGE_MANAGER. In this interface there is a method 'REPORT_T100_MESSAGE'. Pass your message ID and number in your internal table to this method parameter.

Reward point if useful.

Regards,

karthick S

Regards,

karthick S

former_member205703
Participant
0 Kudos

Hi Mahesh,

In the action handler method of the save , do the following coding.

In Place of sy-msgid , sy-msgno etc. write you 'message id' , 'message no' etc.


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( ).

CALL METHOD lr_current_controller->GET_MESSAGE_MANAGER
  RECEIVING
    MESSAGE_MANAGER = lr_message_manager.

call method  lr_message_manager->report_t100_message
        exporting
          msgid            = sy-msgid
          msgno           = sy-msgno
          msgty           = sy-msgty
          p1                = sy-msgv1
          p2                = sy-msgv2
          p3                = sy-msgv3
          p4                = sy-msgv4

Regard's

Amol Deshmukh

Yashpal
Active Contributor
0 Kudos

Hi ,

Use the message manager to display messages.....

like this

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.

calls the method REPORT_SUCCESS for ur case...

you can find many methods to display messages in this interface...

Regards

Yash

Former Member
0 Kudos

Hi,

see the <a href="http://help.sap.com/saphelp_nw70/helpdata/en/d8/2a934259a5cb6ae10000000a155106/frameset.htm">documentation</a>

Regards, Heidi