on 03-17-2009 7:05 AM
Hi All
I have an upload file UI element on a view.
When a user types an invalid path to a file he will get a stanard validation error .
If he corrects the path or choose a valid path via browse , he will still get the standard message
and will not be able to continue until he gets out of the application and in again.
any suggestion ?
Thanks
Nitsan
hi,
You can use clear messages function in the following way.
DATA lo_message_manager TYPE REF TO if_wd_message_manager.
* get message manager
DATA lo_api_controller TYPE REF TO if_wd_controller.
DATA lo_message_manager TYPE REF TO if_wd_message_manager.
lo_api_controller ?= wd_this->wd_get_api( ).
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager
.
* report message
CALL METHOD lo_message_manager->CLEAR_MESSAGES
* EXPORTING
* including_permanent_msg = ABAP_FALSE
* only_permanent_msg = ABAP_FALSE
.
I hope it hepls.
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All
I have solved the problem,
I guess it is a sap bug, and the solution is more stupid then the problem.
Nitsan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohit
That still does not help me.
In my application I use alot of validation checks and messages .
This is the only message I can't get rid of.
It seems like a standard bug...
Thanks
Nitsan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohit
Thanks for your answer, but this does not solve the problem.
We still get this standard validation message even if I clear messages.
Thanks,
Nitsan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
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.