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: 

MM02 - Trigger message when Neg Qty Allowed flag is changed (MARC-XMCNG)

Former Member
0 Kudos

Hi,

I've succeeded in forcing the flag on in MM01 using BADI_MATERIAL_REF but this BAdI is not called if I change the flag from MM02.

Since the flag comes from MARC and not MARA, most BADIs and User-exits are of no real use.

The only other BADI that could have helped is BADI_MATERIAL_CHECK method CHECK_MASS_MARC_DATA as I could have issued an error message to prevent the user from changing it. But it's not called from MM02.

Any help or ideas will be greatly appreciated.

Thanks in advance,

AC

1 ACCEPTED SOLUTION

Former Member
0 Kudos

What is the issue in CHECK_DATA method in BADI_MATERIAL_CHECK? It is called from MM02.

You can select the old from database table and the new value will be available in WMARC structure.

R

4 REPLIES 4

JL23
Active Contributor
0 Kudos

if the BADIs are not called (the name already indicates that it is used in Mass processing) then you still have the exit MGA00001

Former Member
0 Kudos

What is the issue in CHECK_DATA method in BADI_MATERIAL_CHECK? It is called from MM02.

You can select the old from database table and the new value will be available in WMARC structure.

R

0 Kudos

Sorry for the issue...

I was so obnubilated with changing the value in MM02 that I forgot to use the RAISING clause in Message.

Lost 1 full day with a non-issue. Thanks for placing me back on the right track. I now feel like a junior ABAPer with 17 years experience ...

Also thanks to Jürgen who is so prompt in answering.

AC

0 Kudos

No worries. It happens to all of us because we are human beings not robots.

R