Application Development and Automation 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: 
Read only

BADI MB_DOCUMENT_BADI dump error

Former Member
0 Likes
2,936

Hi all,

am using BADI : MB_DOCUMENT_BADI,method MB_DOCUMENT_BEFORE_UPDATE,to have checks in MB1A(Goods Issue transaction).I have written a code to check some values,after checking and raising an error message if I press enter the following dump error is coming:


Error analysis
    Short text of error message:
    Internal error: Multiple call of update function module

    Long text of error message:
     Diagnosis
         In the FORM routine Buchen_Ausfuehren (program SAPMM07M), an error
         message was issued by a Business Add-In (BAdI) or function module.
         This is not permitted, because it could lead to data
         inconsistencies. For this reason, the update of the material
         document was also terminated with a termination message (dump).
         Note that this message (M7 372) is not the responsible error
         message.
     System Response
     Procedure
         Contact your system administrator.
     Procedure for System Administration
         If there is an active implementation of the Business Add-In
         MB_DOCUMENT_BADI, check that no error message is issued in the
         MB_DOCUMENT_BEFORE_UPDATE method.

    Technical information about the message:
    Message class....... "M7"
    Number.............. 372
    Variable 1.......... " "
    Variable 2.......... " "
    Variable 3.......... " "
    Variable 4.......... " "

Hope am clear in my questian,

Thanks & Regards,

Rock.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,057

Hi,

what is the code which you have written in the BADI.

Please note that do not make an commit statment in this BADI.

Even if you are callign some FM in this badi it should not call a commit within itself.

Kindly check.

Regards,

Ankur Parab

Hi,I have not written any Commit work or deque or roll back statements.Just few if - else conditions are there thats it.

6 REPLIES 6
Read only

Former Member
0 Likes
2,058

Hi,

what is the code which you have written in the BADI.

Please note that do not make an commit statment in this BADI.

Even if you are callign some FM in this badi it should not call a commit within itself.

Kindly check.

Regards,

Ankur Parab

Read only

0 Likes
2,057

Hi,I have not written any Commit work or deque or roll back statements.Just few if - else conditions are there thats it.

Read only

0 Likes
2,057

Hi,

This BADI is called in update task.

So as a result when you call your error message, SAP is retuning it as message type 'X" and an update termination occurs.

I was facing a similar problem becuase i was trying to update measurment doc via this badi.

Incase the measuring document was locked by some user my FM used to throw an error message and that would lead to a message type 'X' in this badi.

So if you want to do some validations only; please use the following BADI.

MB_MIGO_ITEM_BADI in the method ITEM_MODIFY.

Regards,

Ankur Parab

Read only

Former Member
0 Likes
2,057

Check SAP Note: 0000446057.

@aadil

Read only

Former Member
0 Likes
2,057

Not using this BADI

Read only

0 Likes
2,057

Hi Rock,

Can u please tell me which other enhancement you are using because I am facing the same problem.

I wanted to put check while saving transaction MB1A , I have done that in MB_DOCUMENT_BEFORE_UPDATE but after giving an error message it is giving dump.

I also tried user exit MBCF0002 but that is also working properly.

Thanks in advance

Supriya