on 04-03-2009 11:29 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.