Skip to Content
Jul 05, 2022 at 12:11 PM

Display blocker error message in WEBUI (via ABAP) during Change status in SAP Solution Manager



I implemented the BADI CRM_ORDER_STATUS, in particular the method AFTER_CHANGE.

In this one, I have to write ABAP code to satisfy this requirement:

When a Change Document (CRM ORDER) change status from A to B (e.g.), for a particular condition I have to display a blocker error message that don't save last changes.

I tried with the following code, the message appears like ERROR but it's not blocker, the changes are saved anyway.

DATA:lr_message3 TYPE REF TO cl_bsp_wd_message_service.
* get message instance
lr_message3 = cl_bsp_wd_message_service=>get_instance( ).

CALL METHOD lr_message3->add_message
iv_msg_type = 'E'
iv_msg_id = 'ZSM'
iv_msg_number = '000'.