2007 Oct 29 12:52 PM
Hi All,
I heared that mb_cf001(userexit) and mb_document_update(badi) will get triggered during the execution of MIGO tran. after generation of material document no(MBLNR) and before updating the MSEG and MKPF table from the forum by one of the guru... i hv created and activated the implementation for this BADI...But still this exits and BADIS r not trggering during the debugging.can any one tel the reason , why its not triggering and what should i do to trigger this exit and badi...
Thanks in advance...
Hi All,
I heared that mb_cf001(userexit) and mb_document_update(badi) will get triggered during the execution of MIGO tran. after generation of material document no(MBLNR) and before updating the MSEG and MKPF table from the forum by one of the guru... i hv created and activated the implementation for this BADI...But still this exits and BADIS r not trggering during the debugging.can any one tel the reason , why its not triggering and what should i do to trigger this exit and badi...
Thanks in advance...
2007 Oct 29 12:57 PM
I think you should use Method MB_DOCUMENT_UPDATE or MB_DOCUMENT_BEFORE_UPDATE of definition MB_DOCUMENT_BADI and not MB_DOCUMENT_UPDATE of definition MB_DOCUMENT_UPDATE ?
Look at <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBCEX/BCDWBCEX.pdf">Changing the SAP Standard (BC)</a> to know how to implement a BADI
Regards
2007 Oct 29 2:42 PM
Hi...The BADI ( MB_DOCUMENT_BADI )has Method MB_DOCUMENT_BEFORE_UPDATE which is having some coading but Method MB_DOCUMENT_UPDATE does not have any coading... if i give break point inside both the method ,both of them r triggering... If i give breakpoint inside the method MB_DOCUMENT_UPDATE which does not have any coading,its not triggering... can u tel y? also what is the solution to this problem...
2007 Oct 29 2:48 PM
Did you create an implementation, tThe default implementation is only executed if no other active implementation is available
To create an implementation, proceed as follows:
1. Choose ABAP Workbench → Utilities → Business Add-Ins (transaction SE19) from the SAP menu or double-click on the corresponding activity in the Implementation Guide.
2. Enter a name for the implementation and choose Create.
3. Enter the name of the add-in you want to create an implementation for in the dialog box that appears.
4. Enter a short text describing your implementation on the following screen.
5. Choose the Interface tab.
6. In order to implement a method for your add-in, double-click on the method to branch to the Class Builder. You must first enter a development class before the Class Builder is displayed.
7. Insert the desired source code for the implementation between the method if_ex_businessaddin~method. and endmethod. statements automatically provided to you by the system.
8. Save your entries and return to the Change Implementation screen.
9. Choose Activate. You may now use this implementation when the application program is executed.
Regards
2007 Oct 30 5:12 AM
Hi Friend ,
the BADI (MB_DOCUMENT_BADI) is having 2 methods ( MB_DOCUMENT_BEFORE_UPDATE and MB_DOCUMENT_UPDATE ). i have created the implementation for this BADI and i had a breakpoint in both the methods and executed my MIGO transaction. But only one method MB_DOCUMENT_BEFORE_UPDATE is triggering... the second method is not triggering... but both the methoda are in active state only... can u plz tel the reason... also what is the way to trigger the second method also. if its not triggering then wt is the purpose the second method...
2007 Oct 30 8:18 AM
2007 Oct 29 1:02 PM
Hi Sasi,
Implement the BADI MB_DOCUMENT_UPDATE and activate.
<b>Reward for helpful answers</b>
Satish