CL_CRM_ITEMS_RUN_ERPIL -> COPYITEMS
DATA:
lr_mess_cont TYPE REF TO cl_crm_genil_global_mess_cont,
lv_msg_number TYPE symsgno,
lr_mess_cont = ir_root_list->get_global_message_container( ).
IF lr_mess_cont IS BOUND.
CASE lv_subrc.
WHEN '1'.
lv_msg_number = '010'.
WHEN OTHERS.
lv_msg_number = '018'.
ENDCASE.
lr_mess_cont->add_message(
iv_msg_type = cl_crm_genil_global_mess_cont=>if_genil_message_container~mt_error
iv_msg_id = 'CRM_ERP_IL' "#EC NOTEXT
iv_msg_number = lv_msg_number
iv_show_only_once = abap_true ).