on 01-18-2012 5:53 AM
Hello all,
I've got a little problem with displaying messages in WebUI (CRM 7.0) .
when i do some wrong entries in assingment block and then i press enter then it display error message but
when i click on f4 help the error message got deleted from the ui.
I want error message to be displayed till entry is not filled with right value.
I have written this code in modify method of handler class.
lr_core = cl_crm_bol_core=>get_instance( ).
gr_gmsg = lr_core->get_global_message_cont( ).
gr_gmsg->add_bapi_messages( it_bapi_messages = lt_return
iv_show_only_once = 'X' ).
lv_object_id = lr_bp->get_object_id( ).
lr_msg_cont ?= lr_bp->get_message_container( ).
lr_msg_cont->add_messages(
iv_object_name = me->tv_object_name
iv_object_id = lv_object_id
it_bapi_messages = lt_return
iv_show_only_once = abap_true ).
Regards,
Nawal Kishore
Hi Nawal,
What is happening now is, the error messages are set to be displayed only once in the Web UI after the message is
added to the message container. In the next round trip these messages will get cleared since you have passed
the parameter 'iv_show_only_once' as true in both the add message methods. You should pass this parameter
value as false in order to retain the error messages on the UI across the round trips. You can simply remove that
parameter from the method as by default this parameter takes the value as 'false'.
Regards
Leon
[SAP Community Network Forums on mobile|https://cw.sdn.sap.com/cw/ideas/7910]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How long do you want to show the message ? Message could be deleted any time depending on your requirement.If you don't want to show the message after you have retrieved the right values , then you can validate this step.
Check if you have right input to the F4 or check if you have retrieved values for the input & once you have done that do delete the message from the message container.
Regards
Kavindra
Hi Kishore,
While adding messages to gloabal message container you mentioned show_only_once as X.Remove this and check .
Regards,
Anitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just uncheck the parameter IV_SHOW_ONLY_ONCE and try .
Regards,
Nithish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.