on 2022 Jul 05 1:11 PM
Hi,
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
EXPORTING
iv_msg_type = 'E'
iv_msg_id = 'ZSM'
iv_msg_number = '000'.
Hello antonio.zambito
Please write the same code in 'ON_SAVE' method and see if the pop up appears before saving the transaction.Let me know the results.Thanks,VigneshYou must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
58 | |
10 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.