‎2007 Aug 04 6:44 PM
Hi all,
I have created an implementation for badi BDCP_BEFORE_WRITE for message type MATMAS. I have also included a break sy-uname statement in the method FILTER_BDCPV_BEFORE_WRITE.
But when I run MM02 and save the material changes, neither the badi is triggered and nor does the control land into the debug mode. I have also executed RBDMIDOC but the badi is still not triggered.
Can anyone tell me how to trigger this badi.I have done all the settings required for change pointers and idocs are getting generated. But the badi is not getting triggered.I am working in SAP version ECC6.0
Any help is highly appreciated.
Thanks in advance.
Shoma
‎2007 Aug 05 12:55 AM
Hi Shoma,
You need to provide the filter values when creating implementation of this badi.
There you need to give the message type as MATMAS.
Then it will definately work.
Regards,
Atish
‎2007 Aug 05 4:48 PM
I have already defined the message filter value as 'MATMAS'.
Already there is an implementation existing for this badi with message type 'DEBMAS'. Do I need to deactivate that implementation or use the same with my code inserted for matmas.
‎2007 Aug 05 11:46 PM
Hi Shoma,
You have to use the same implementation with your code inserted there.
You need to just check based on the message type. You also make sure tha you add your message type in the filter values.
Regards,
Atish
‎2007 Aug 06 7:41 AM
I did implement my code in the existing implementation of BDCP_BEFORE_WRITE and mentioned the message type 'MATMAS' in the filter values.
Still when I execute MM02 and save the material changes, the control does not stop at the break point in the badi. I guess the badi is not getting triggered.
What else do I need to do to trigger the badi?
Shoma
‎2007 Aug 06 7:50 AM
Hi Shoma,
No. You don't require anything else. Please check everything one by one. I am sure you might be missing something.
Check change pointer is active or not
Check with the break-point, where did you put.
Delete the second implementation which you created ..etc
Regards,
Atish
‎2007 Aug 06 12:03 PM
Does badi BDCP_BEFORE WRITE get triggered for every message type defined in its filter criteria?
I have checked all my settings and everything looks fine. Infact when I execute RBDMIDOC after the material chng (MM02), idocs do get created successfully.
But the prblem remains of badi not getting triggered. I have put a hard break in the code 'break sy-uname' but no effect.
‎2010 Apr 24 8:07 AM
Hi Pal,
I have got similar problem.Iam unable to trigger the BADI BDCP_BEFORE_WRITE when I save material through MM01 or MM02.
If you solved this problem.Could you please help me as I need to restrict the creation of change poinetrs for few fleds only.
Thanks,
Srikanth.A