08-12-2015 2:03 PM
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
08-12-2015 2:12 PM
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
08-12-2015 2:06 PM
if the BADIs are not called (the name already indicates that it is used in Mass processing) then you still have the exit MGA00001
08-12-2015 2:12 PM
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
08-12-2015 3:31 PM
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
08-12-2015 3:41 PM
No worries. It happens to all of us because we are human beings not robots.
R