Skip to Content
0
Former Member
Mar 08, 2013 at 12:53 PM

Raise error message, it should not allowed to save in WEBUI

672 Views

Hi,

I raising the error message in web ui using below code. Message is displaying in web ui, But it is allowing to save.

lr_core = cl_crm_bol_core=>get_instance( ).
if lr_core is bound.
lr_global_messages ?= lr_core->get_global_message_cont( ).
endif.
if lr_global_messages is bound.
call method lr_global_messages->add_message
exporting
iv_msg_type = 'E'
iv_msg_id = 'ZCRM'
iv_msg_number = '000'
iv_msg_text = 'test'

iv_show_only_once = 'X'
iv_msg_level = 0.