2016 Feb 03 7:00 AM
Hi,
Error_with_message is not working inside IF_EX_INVOICE_UPDATE~CHANGE_AT_SAVE.
Kindly suggest.
Regards,
Gopi
2016 Feb 03 9:15 AM
Hi Gopi,
How are you raising the exception ERROR_WITH_MESSAGE in the method change_at_save.
The exception has to be raised using Message statement.
message xxx raising ERROR_WITH_MESSAGE
Please find the method documentation
ERROR_WITH_MESSAGE should be triggered if you want to prohibit creation of a logistics invoice document or changing of or deleting a parked document.
Note that this exception should only be triggered in conjunction with a system message (message xxx raising ERROR_WITH_MESSAGE).
Thanks,
Karthikeyan
2016 Feb 03 9:15 AM
Hi Gopi,
How are you raising the exception ERROR_WITH_MESSAGE in the method change_at_save.
The exception has to be raised using Message statement.
message xxx raising ERROR_WITH_MESSAGE
Please find the method documentation
ERROR_WITH_MESSAGE should be triggered if you want to prohibit creation of a logistics invoice document or changing of or deleting a parked document.
Note that this exception should only be triggered in conjunction with a system message (message xxx raising ERROR_WITH_MESSAGE).
Thanks,
Karthikeyan
2016 Feb 03 9:28 AM
Hi Karthik,
Thanks,
I have already tried with MESSAGE I006(ZMM) RAISING ERROR_WITH_MESSAGE.
This is triggering but i'm not getting message.
2016 Feb 03 10:26 AM
Hi Gopi,
You can only stop the processing of the Invoice in that BADI.
Try with
MESSAGE E006(ZMM) RAISING ERROR_WITH_MESSAGE
Thanks,
Karthikeyan