2012 Jan 26 2:27 PM
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
2012 Jan 26 3:04 PM
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
2012 Jan 26 3:04 PM
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
2012 Jan 26 3:14 PM
Hi Raja,
I've already tried this, but still not working.
Thanks
Daniel
2012 Jan 26 5:42 PM
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
2012 Jan 26 6:25 PM
Hi Raja,
I've already tried this also, however BAdI isn't called so it can't be my code.
Thanks
Daniel
2012 Jan 27 6:03 AM
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
2012 Jan 27 10:00 AM
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
2012 Jan 27 6:18 AM
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?