cancel
Showing results for 
Search instead for 
Did you mean: 

Messages not displayed on WEBUI

Former Member
0 Kudos

Hi experts,

I have a problem when I try to display messages on Webui.

When I go to a customer view and I click a button ("PRINT") without filling some fields, I shoud see some messages but they don´t appear. I implemented this messages using cl_crm_genil_global_mess_cont class.

l_global_messages TYPE REF TO cl_crm_genil_global_mess_cont

l_global_messages->add_message( iv_msg_type = lc_e

                                       iv_msg_id = lc_zm_crm

                                       iv_msg_number = lc_572

                                       iv_show_only_once = lc_x ).

I know it´s well implemented because if I click CANCEL button first, and then I click PRINT button as I done before...NOW I can see the messages. They only disply if I click CANCEL button first. It´s really strange.

I also reallise that no one message is shown the first time, not only my implemented messages but also the standards.

I hope you can help me, sorry for my bad english.

REGARDS!

Accepted Solutions (0)

Answers (1)

Answers (1)

faisal_pc
Active Contributor
0 Kudos

Hi Ruben,

What if you do as follows?.

l_global_messages TYPE REF TO cl_bsp_wd_message_service.

l_global_messages ?= cl_bsp_wd_message_service=>get_instance( ).

l_global_messages>add_message("u'r message").

Thanks,

Faisal

Former Member
0 Kudos

Hi Faisal,

My code is correct, the problem is that I cannot see the container with the messages.

The only way to see them is pressing another button before(as I explained in the qestion), that is my problem.

Thanks and regards.

former_member188098
Active Contributor
0 Kudos


Hello Ruben,

May be not sure ,screen refresh issue be there after adding message screen refresh when u click on cancel and give message but not in case of Print button.

so try to refresh screen after click on print button.

Regards

Former Member
0 Kudos

Hi Harish,

How should I refresh screen in my code? I have read someting about PUBLISH_CURRENT method...Can you support me with any code please?

Regards.

Former Member
0 Kudos

Try this:


lr_core = cl_crm_bol_core=>get_instance( ). 

lr_core->start_up( 'ALL' ). 

lr_msg_cont ?= lr_core->get_global_message_cont( ).

former_member182421
Active Contributor
0 Kudos

What are your arguments to suggest a start_up?

Cheers!

Luis