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: 

MIGO BAdI or User-Exit - After Database Commit

uygur_burak
Active Contributor
0 Kudos

Hello,

I'm looking for a BAdI or user-exit after database commit for MIGO posting. I want to create a FI document after MIGO posting.

I already tried MB_MIGO_BADI BAdI but system gives a short dump. So I have to find a exit or BAdI after database commit.

Thanks for helping in advance.

Regards,

Burak

7 REPLIES 7

pepl
Active Participant
0 Kudos

Hi!

I don't know whether it really will help you but anyway try to do this.

There is BADi BADI_DIAD_GOODMVT_1 in the system. It is not for multiple use and already has standard implementation with the same name BADI_DIAD_GOODMVT_1. It has the only method IF_EX_BADI_DIAD_GOODMVT_1~DIAD_GOODMVT_1. U can add your own code there with standart enhancement technique:

1) Shift+F4 (Program - > Enhance)

2) Edit -> Enhancement Operations -> Show Implicit Enhancement Options

3) Set cursor rigth on the checked line.

4) Edit -> Enhancement Operations -> Create

I think it is better to use it in the begin of method. and u should be sure that it won't be exit from your code to let the standard code to be executed too. It is just a suggestion, so u can just try. Let me know if it really works)))

Good luck,

Peter Plenkov.

uygur_burak
Active Contributor
0 Kudos

Hello Peter,

I didn't use your method but thanks very much for your helpful message.

I used MB_DOCUMENT_BADI / MB_DOCUMENT_UPDATE method, my problem solved.

Regards,

Burak

Former Member
0 Kudos

Hi Burak,

can u tell me how you did it?

for me the badi MB_DOCUMENT_UPDATE doesnt seem to be triggering.

I have put a piece of code but and doing a Update debugging but it doesnt stop there.

0 Kudos

Hi!

I have a trick for such problems.

Transaktion se24.

Objekttyp: CL_EXITHANDLER

Methode: get_instance

*open migo

*CL_EXITHANDLER/get_instance: breakpoint at line 28.

*migo: the breakpoint stops by each badi

*debugger: variable "exit_name" is the name of the badi

Former Member
0 Kudos

Hello Mario,

Thanks a lot! Your tip is something I was looking for a long time. It's super useful when you need any user exit. THANKS!!!!

0 Kudos

Hi Burak,

I have the same requirement to use BADI after database commit i.t after creating the Material doc no. or We can say after posting the GR No.

Even I have used your technique suggested to find BADI.

But problem is that in my code, I need to call one program and execute after filling its inputs. Means I need to get out of MIGO once it comes to my code.

Now I stuck with this point and can't find exact BADI/EXIT.

Please let me help.

Thanks in advance.

Former Member
0 Kudos

Hi Burak,

May I know how did you use MB_DOCUMENT_BADI for triggering MIGO.

Regards,

Suhas.