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

Former Member
0 Kudos

Hi Experts,

does the badi MB_Document_update trigger for the below transaction?

QA32/QA11/QA12/QE51N ?

If yes how can I trigger them ?

I've activated the implementation part and I also put a break point in the source code of both the methods but BADI is not triggering!!

can you please help me out.

regards,

Suhas.

8 REPLIES 8

Former Member
0 Kudos

Check with class "CL_EXITHANDLER" to find out the BADI

former_member196280
Active Contributor
0 Kudos

Refer below link, it will help you how to find BADI for the corresponding transaction code.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0041d4e6-1e43-2e10-0db4-9386abe98...

Regards,

saiRAM

0 Kudos

Hi Sai Ram ,

Thanks for the reply I've checked as you mentioned but my requirement is that I've to trigger this badi when I give save. so I want to use MB_DOCUMENT_UPDATE. can u pls tell me the procedure to find a badi when I press save.

0 Kudos

Dear Suhas,

The link which I have given has the steps to find available BADI on user action. Please note, that all actions(for example: SAVE - in your case) may not have BADI. If you could not find any BADI that suits you requirment - try to look for alternatives like enhancment spot or user exit.

Regards,

SaiRam

0 Kudos

Dear Suhas,

Apart from my last explanation of using alternative approaches, you can also try using BTE.

Steps:

1) Go to transaction code FIBF

2) From Menu, Settings --> P/S Module --> ... of a customer

3) Try Using following events.. Make sure you create a custom product before you maintain new entries.

  a) Event: 00504001

     Product: <as defined>

     Function Module: SAMPLE_INTERFACE_00504001

Now, set break point inside FM SAMPLE_INTERFACE_00504001 and execute your transaction code. If the process is stopped at break-point then copy FM and customize it based on your requirement.

Note: If above event does not work try using events 00504002, 00504003 or CS000010

Regards,

SaiRam

Former Member
0 Kudos

BADI_DIGITAL_SIGNATURE_ICON

BADI_DIGITAL_SIGNATURE_UD

BADI_GRAPHIC_UD

QEVA_ALT_QTY_INPUT

QEVA_SUBSCREEN_1101


0 Kudos

Hi Suhas,

There are few way to find out badi for any T-code

1. Go to SE93 and put the T-code and get its package name --> then go to t-code se80 or se84 put the package and from drop down you can get all the badi that is there for your T-code , this method also show enhancement section /spot and exits .

2. Goto SE24 class CL_EXITHANDLER --> GET_INSTANCE method put a break point inside it you can get to know BADI triggered.

If you can also opt for customer exit and enhancement below mention is very easy step to find them

If your purpose is on SAVE button click then what you can do is complete all your preactivity just prior to clicking on save switch on the debugger i.e. /h  after that click on save then press SHIFT+F5 or from menu select break point at place  --> in this write ENHANCEMENT and CALL CUSTOMER-FUNCTION this will stop all all the enhancement point and customer exit coming after clicking on SAVE button.

Hope it will help you

Regards,

Deepak Jain.

Former Member
0 Kudos

The BADI will trigger when you update a goods movement.

Try posting the stock from Quality Inspection to unrestricted it will trigger.

BR