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

BDCP_BEFORE_WRITE not getting triggered

Former Member
0 Likes
2,422

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,470

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

Read only

0 Likes
1,470

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.

Read only

0 Likes
1,470

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

Read only

Former Member
0 Likes
1,470

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

Read only

0 Likes
1,470

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

Read only

Former Member
0 Likes
1,470

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.

Read only

0 Likes
1,470

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