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

Displaying message

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 07:24 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2007 at 07:26 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2007 at 07:26 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 01:10 PM

    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

    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.