Push messages from GETTER to the UI

Hi,
I would like to push some messages to the UI from the GET methods. I have new context node and i want to do my validations and push some messages from each attribute in the context node. How can i do that ?
Thanks
Aman

Hello,
This won't answer your question, but if you need to do some validations and push some messages accordingly, why don't you use method DO_PREPARE_OUTPUT or DO_VALIDATE_INPUT / DO_FINISH_INPUT of your controller class?
Because I'm not sure the GET methods of the model class si the best place to put your coding in this case.
Anyway, here is some example of how to throw messages to the UI:
DATA: lv_msgsrv          TYPE REF TO cl_bsp_wd_message_service.
lv_msgsrv = cl_bsp_wd_message_service=>get_instance( ).
lv_msgsrv->add_message( iv_msg_type       = 'I'
                           iv_msg_id         = 'MESG'    "#EC NOTEXT
                           iv_msg_number     = '001' ).
Hope this helps,
Nicolas Busson.
PS: sorry Masood, I was writting my answer while your were posting yours... and obviously yours is even better! thanks a lot.
Edited by: Nicolas BUSSON on Nov 25, 2009 6:29 PM

Similar Messages

Maybe you are looking for

  • Missing functionality request. Deleting manufacturers.

    Version:  2007A SP:00 PL:46 Manufacturers cannot be removed or deleted. Administration > Setup > Inventory > Manufacturers. Business needs: Certain Manufacturers no longer exist so our client needs to be able to maintain an updated list of Manufactur

  • Site Area Temporarily Unavailable

    getting the error Site Area Temporarily Unavailable when trying to install Adobe flash on an IOS mac book. This is now day 3, what am i doing wrong?

  • My apps are quitting on me.

    Everything from games to my email are randomly quitting. Sometimes the email quits when I try to delete, other times it quits when I am just reading. Anyone else having these issues? If so, what have you done to fix it? Thanks.

  • Can I install 8.5.1 modules on a LABVIEW 8.5 system

    Can I install 8.5.1 modules especially ARM module on a LABVIEW 8.5 system ... Since 8.5.1 is just a minor upgrade to 8.5 I guess it should do .. But does it work effectively while importing code to  ARM processor

  • Nokia 6280 Charging,dust inside screen and power i...

    HI, my phone will only charge from the mains if i lay it on its side and wiggle the power connector about??!!! I also seem to have dust and dirt inside the top left hand corner of the screen ans if im browsing the net,or sending a text message the ph