cancel
Showing results for 
Search instead for 
Did you mean: 

Why when Error message display at Web UI, warning message also added

Former Member
0 Kudos

Hi Experts,

When I display error message at web ui, warning message also get display.

To display message using : cl_bsp_wd_message_services.

Question: If it is CRM Web UI functionality then is there is way only to display error message.

Please advice.

Thanks,

Rajan

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Rajan,

probably same message raised twice in different places!. Put the debugger in following methods

and check further.

1. method add_message of class cl_bsp_wd_message_service.

     or CRM_MESSAGE_COLLECT,

2. Use Where used list of that message id

following link might be helpful.

Former Member
0 Kudos

HI All,

below is the way I am calling error message, There is no where I raising warning message but dont know how it populate.

lr_msg ?= cl_bsp_wd_message_service=>get_instance( ).

lr_msg->add_message( iv_msg_type = 'E' iv_msg_id = 'ZXYZ' iv_msg_number = '001' ) .

Please advice.

Thanks,

Rajan

spencer_liang
Active Contributor
0 Kudos

Hi Rajan,

I am not a developer. I would suggest setting watch point on

(SAPLCRM_MESSAGES)gt_logs

(SAPLCRM_MESSAGES)gt_msg_index

and find out why the warning is raised.

Spencer

spencer_liang
Active Contributor
0 Kudos

Hi Ranjan,

This should be a standard webUI functionality.

It does not make any sense to display a message twice as an error and a warning.

Same question as Ruby, how do you do it?

Spencer

former_member202474
Contributor
0 Kudos

Hi Ranjan,

                     We can display only error messages in Web UI. Can you tell me the steps you did to display error message.

Regards,

Ruby.