cancel
Showing results for 
Search instead for 
Did you mean: 

REPORT_ATTRIBUTE_T100_MESSAGE strange!!!!!!

Former Member
0 Kudos

Hi everyone,

I have a very strange problem here: I have a webdynpro component which contains a message area at the top of the screen, and there is horizontal tabstrip navigation bar in the MAIN_VIEW. there is a different view embeded under each tab. And I have embeded one component which also contains a message area at the top of it under one tab. When I tried to use the method "REPORT_ATTRIBUTE_T100_MESSAGE" to report an error message which related to a specific context element in the embeded view, two message areas will display the error message at the same time.

I'm using the message manager in the controller of the embeded view to report the error message.Why would the bigger component view also display the message?

It's very strange.

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

vivekananthan_sellavel
Active Participant
0 Kudos

hi,

Plz follow in this format

msg-MSGTY = 'E'.

msg-MSGID = 'Message class'.

msg-MSGNO = '600'. "Message id.

  • report message

CALL METHOD lo_message_manager->report_attribute_t100_message

EXPORTING

msg = msg

element = Node Element

attribute_name = 'Attr_name'

.

regards

Vivekananthan.S

arjun_thakur
Active Contributor
0 Kudos

Hi Aaron,

The error msg will get displayed in both the message areas. To overcome this prob, just pass the view name in which you want the msg to be displayed. Refer the code below:


  CALL METHOD lo_message_manager->report_attribute_t100_message
    EXPORTING
      msg                       = 
      element                   =
      attribute_name            =
      view                      = 'POPUP_VIEW' " just pass the view name in which you want to see the error message.
    receiving
      message_id                =
      .

Fill the other values according to your code

I hope it helps.

Regards

Arjun

Edited by: Arjun Thakur on Apr 3, 2009 4:09 PM