10-02-2009 8:25 AM
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
10-02-2009 8:50 AM
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.
10-02-2009 9:22 AM
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
10-09-2009 7:18 AM
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.
08-11-2011 10:28 AM
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
05-31-2012 6:31 AM
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!!!!
12-17-2012 11:32 AM
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.
05-30-2013 12:07 PM
Hi Burak,
May I know how did you use MB_DOCUMENT_BADI for triggering MIGO.
Regards,
Suhas.