2008 Feb 11 12:03 PM
I want to give an error message inside MB_DOCUMENT_BADI,
Its giving me a sort dump. How to raise an error message inside a BADI.
Pls help..this is Urgent
Regards,
Rajib Mahapatra
2008 Feb 11 12:16 PM
Did you use the methode MB_DOCUMENT_BEFORE_UPDATE?
Regards,
John.
2008 Feb 12 4:48 AM
hi John,
Yes I am using .. MB_DOCUMENT_BEFORE_UPDATE
Regards,
Rajib.
2008 Feb 11 12:20 PM
Hi,
Write like this....
If sy-subrc <> 0.
MESSAGE ID 'ZERR' TYPE 'E' NUMBER '191'
WITH 'Not updated'.
This will work.
Thanks.
Note: Reward Points if you find useful.
2008 Feb 12 4:57 AM
2008 Apr 08 4:46 PM
Hi,
I am facing the same situation like Rajib. If anyone have a good solution for this please tell me.
Rajib,
If you have solved this problem please tell me how you did it.
Thanks.
2008 Apr 09 4:59 AM
Hi,
The dump is coming in the MB_DOCUMENT_BADI when we are trying giving any error message inside the BAID, because we are giving an error message inside an update task. So dont use any error message inside this, but if your requirement is not satisfied by this, please try to use any other BADI like try with MB_CHECK_LINE_BADI.
It may be useful for you. Using this BADI my problem got resolved.
Thanks & Regards,
Rajib
Reward points if helpful