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 does not trigger when material document is created

TMNielsen
Contributor
0 Likes
2,688

Hi

I have a problem with MB_DOCUMENT_BADI

After upgrade from ECC 6.0 ehp 0 to ECC 6.0 ehp 4 the method MB_DOCUMENT_BEFORE_UPDATE is not trigged.

The Badi is unchanged and active, but it is not any more called when we make material documents of any kind.

I have found other threads with same problem, but no solution.

Best regards

Thomas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,016

Hello,

Please try to re-activate the BADI implementation...I had similar problem it solved in that way.

It can be due to the fact that all classic BADI call moved through new BADI concept....so there is a chance it was not generated properly...

Thanks.

6 REPLIES 6
Read only

AnjaneyaBhardwaj
Contributor
0 Likes
2,016

Hi

How are you checking the trigger mecchanism .

Is it using break point in the method? do you have the update debugging on as this methode runs in update task //

I think the documenation of BADI is self explanatory despite of having the update debugging on if you do not get it please let us know ...

Thanks,

Anjaneya .

Read only

0 Likes
2,016

Hi Anjaneya

Are you sure about this update task?

As I wrote i am using the MB_DOCUMENT_BEFORE_UPDATE method, that should be called outside the update task, and therefore should be possible to debug simply by setting a break.point and creating a material document.

On the other hand - the other method in the BAdI MB_DOCUMENT_UPDATE is called in update task, and is as you describe more complicated to debug.

or...?

Best regards

Read only

0 Likes
2,016

Hi .

Sorry for sloppy observation ....

misread the documentation or was the documantation the complicated enough to confuse me/just me ...

Thanks,

Anjaneya .

Read only

Former Member
0 Likes
2,016

Hi

Try to check what happens when that method is called (Include MM07MFB9_BUCHEN_AUSFUEHREN, from buchen_ausfuehren)

Max

Read only

Former Member
0 Likes
2,017

Hello,

Please try to re-activate the BADI implementation...I had similar problem it solved in that way.

It can be due to the fact that all classic BADI call moved through new BADI concept....so there is a chance it was not generated properly...

Thanks.

Read only

0 Likes
2,016

Ahhh - was it that simple! - and why didn't I think of that?

Thanks for all replies - the winner was Krishnendu Laha with the correct solution.

Re-activate the BAdI.