on 07-01-2012 7:41 AM
Hi WD4A developers,
I would like to ask if there is a feature in Message Manager that would allow passing additional Detailed Information about message reported,
like in the scenario below:
I report a message like:
lr_mess_man->report_error_message( lr_cx ).
Where lr_cx is an exception thrown few lines of code above.
Now I can see error message on the screen, along with Display details link.
Once I press the link - popup window is displayed with message details.
Is it possible to report message through Message Manager passing additional text built on-the-fly,
passing the Exception object? I would like to determine message parameters, like long description "Something went wrong when working with object &1. Please contact your helpdesk."
or something like that.
I would really appreciate comments on that.
Regards,
bob
Hi All,
I solved the problem in a simple way.
1. I define a non self explanatory message in message class. I create a long text for the message with parameters.
2. I implement interface IF_T100_MESSAGE in my exception class
3. I am reporting an exception like:
RAISE EXCEPTION TYPE etype
EXPORTING textid = etype=>message_symbol
msgv1 = lv_msgv1...
...other message parameters
2. In application I simply call
ri_message_manager->report_exception( exception_object ).
Regards,
Piotr
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bob,
I hope there is no such feasibility, am not sure.
but you can achieve this like below also. (by visible / invisible concept)
1. Create a TransparentContainer UI element and make its visibility to an attribute
2. Insert LInkToAction UI element into created TC(TransparentContainer)
3. Write your popup generation code inside this LInkToAction - Action. (Here you can design your message/view with required format)
4. Whenever you face Exception / Error, you can simple visible the TC, else you can hide.
Hope this can be helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bob,
IF_WD_MESSAGE_MANAGER doesn't have any method that accepts an ABAP exception as an argument. I'm not aware of any way currently to tell a web dynpro component to use a custom class as the message manager object for the MessageArea UI element, but if that capability existed sometime in the future I suppose you could then write a custom subclass of CL_WDR_MESSAGE_MANAGER with custom methods and use it instead of the default message manager class.
The "display details" link within a message is only displayed for messages defined in SE91 as not self-explanatory, and the link brings the user to the message's long text.
Given all this, it might be useful to you to use method IF_WD_MESSAGE_MANAGER->REPORT_T100_MESSAGE and pass it a custom message object which has long text defined and is not self-explanatory.
Cheers,
Amy
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 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.