Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

MB_DOCUMENT_BADI vs. MB_CHECK_LINE_BADI

Former Member
0 Kudos

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  

1 ACCEPTED SOLUTION

atul_mohanty
Active Contributor
0 Kudos

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

3 REPLIES 3

atul_mohanty
Active Contributor
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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.