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

exits and badi are not triggering

Former Member
0 Likes
1,634

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...

6 REPLIES 6
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,175

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

Read only

0 Likes
1,175

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...

Read only

0 Likes
1,175

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 &#8594; Utilities &#8594; 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

Read only

0 Likes
1,175

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...

Read only

0 Likes
1,175

Second method is executed "in update task" after the commit, not in transactional LUW.

Regards

Read only

Former Member
0 Likes
1,175

Hi Sasi,

Implement the BADI MB_DOCUMENT_UPDATE and activate.

<b>Reward for helpful answers</b>

Satish