on 09-17-2010 7:59 AM
Hello,
i have integrated a Webdynpro Component into my own Component and displaying it in a View Container.
I have a Message Area at the bottom of my View and the integrated View has a Message Are of its own too.
My Problem is that all messages are always displayed in the Message Area of the integrated component.
The parameter "view" didn't help, neither did everything else i tried.
CALL METHOD wd_assist->ref_message_manager->report_t100_message
EXPORTING
msgid = wd_assist->gs_from_rekl_message-msgid
msgno = wd_assist->gs_from_rekl_message-msgno
msgty = wd_assist->gs_from_rekl_message-msgty
p1 = wd_assist->gs_from_rekl_message-msgv1
p2 = wd_assist->gs_from_rekl_message-msgv2
p3 = wd_assist->gs_from_rekl_message-msgv3
p4 = wd_assist->gs_from_rekl_message-msgv4
view = 'V_UEB_OFF_RE_DET'
RECEIVING
message_id = lv_message_id.
How can i force the messages to my Message Area?
The only other possibility is to disable the message are of the integrated component, but its not our own, i would have to talk to the owner of that component to give us that option.
Thank You for your help.
This is why SAP has this warning in the online help. You should be very careful when integrating the MessageArea into a component that might be reusable.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/b37974eb5c6200e10000000a421937/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much for your answers, since i know now for sure that multiple message areas are not meant to be i will try to disable it. The owner of the embedded component can't give me the means to disable it, so i think i will write an Enhancement to reset the visible flag into wddomodifyview, depending on a flag in my assistance class.
Sorry that i couldnt answer sooner, i was on a business trip and didnt know my login number.
Edited by: Marco Weißenseel on Sep 23, 2010 7:59 AM
A window should only ever have one message area - this is one of the reasons why frameworks like the FPM provide explicit handling for combining messages from multiple components. (there are other good reasons too).
I'd suggest that any component that is designed to be embedded in other applications should not have its own message area. Certainly if reuse is planned there should be some way to disable it.
I don't think it would work - but have you tried hiding the integrated component's message are using administrator personalization? Worth having a go it you've not yet tried. If it does work please do let us know!
Cheers,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.