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: 

BAdI ME_PROCESS_PO_CUST stopped working & Update VAT No. (EKKO-STCEG)

Former Member
0 Kudos
284

Hi everbody,

I implemented the BAdI ME_PROCESS_PO_CUST (Method CHECK) a few days ago and it already worked fine. Today I tried to expand the method by an update of the VAT No. (field EKKO-STCEG), but suddenly the BAdI stopped working or in other words it isn't called anymore!? I set a breakpoint at the first line of the method and also tried a "BREAK <Username>" statement, but none of them worked. I already checked the enhancement implementation, the implementing class and the "CHECK" method and everything is active. Anybody an idea why the BAdI isn't called anymore?

My second question is, if it is possible to update the VAT No. (Field EKKO-STCEG) with the "SET_DATA" method of the interface "IF_PURCHASE_ORDER_MM"?

Thanks

Daniel

1 ACCEPTED SOLUTION

Former Member
0 Kudos
143

Hi Daniel,

Try to activate the BADI implementation once again in the system where it is not working.

When you activate it, it will get regenerated again.

Then put the breakpoint and check.

Cheers,

Raja.D

7 REPLIES 7

Former Member
0 Kudos
144

Hi Daniel,

Try to activate the BADI implementation once again in the system where it is not working.

When you activate it, it will get regenerated again.

Then put the breakpoint and check.

Cheers,

Raja.D

0 Kudos
143

Hi Raja,

I've already tried this, but still not working.

Thanks

Daniel

0 Kudos
143

Hi Daniel,

Try to comment the code which you have added recently and activate again.

Then check the same and let me know.

This will give an idea whether the problem is with new code or not.

Cheers,

Raja.D

0 Kudos
143

Hi Raja,

I've already tried this also, however BAdI isn't called so it can't be my code.

Thanks

Daniel

0 Kudos
143

Hi Daniel,

I am not sure about what happens suddenly.

Have you tried these????

1.Delete your implementation and create a new one from scratch.

2. Before trying the first one, put breakpoint in CL_EXITHANDLER ->GET_INSTANCE method and see your BADI is geting called.

3.Then do the step 1 and check.

Cheers,

Raja.D

0 Kudos
143

Hi Raja,

very strange. I deleted the implementation (I called it ZME_PROCESS_PO_CUST) and as I wanted to recreate it, the system told me that it already exists? So I displayed the implementation again and as it wasn't active I reactivated it and now the BAdI is called again! I hope, this strange problem won't occur anymore, but if it occurs again I know what I've to do.

Thank you very much for your help.

Daniel

surajarafath
Contributor
0 Kudos
143

Have you tried put the break point in all the method? Try put break point in all the the methods.

If not then goto SE24 and then put break point in CL_EXIT_GANDLER and check whether BADI had been captured or not?