03-06-2015 11:41 AM
Hi,
i actual use BADI MB_DOCUMENT_BADI
with Method: MB_DOCUMENT_BEFORE_UPDATE
to create some Info-Messages like this:
Now we get the situation that i have to create an ERROR-Message and i have read,
that this BADI/METHOD are not the right one.
Can anyone tell me if the BADI: MB_CHECK_LINE_BADI is the right one to create an
ERROR-Message to stop posting the movement?
thanks.
Regards, Dieter
03-06-2015 11:48 AM
Hi Dieter -
In past, I have used to this Method CHECK_LINE to raise error for MIGO transaction for certain enhancements.
Let us know, in case any further info.
Regards,
Atul Mohanty
03-06-2015 11:48 AM
Hi Dieter -
In past, I have used to this Method CHECK_LINE to raise error for MIGO transaction for certain enhancements.
Let us know, in case any further info.
Regards,
Atul Mohanty
03-06-2015 12:25 PM
Hi Atui,
thanks for your answer. i created and enhancement and will use CHECK_LINE.
i'll give a Feedback when i finished Coding and tests.
Regards, Dieter
03-06-2015 1:24 PM
MB_CHECK_LINE_BADI->check_line( ) is for (as the name tells) checking the line of the document in MIGO transaction.
you would use MB_DOCUMENT_BADI for changing other tables after updating of the document. The methods MB_DOCUMENT*:
BEFORE_UPDATE / UPDATE differ only in that if they are used in update task or not.