‎2011 Jul 07 5:36 PM
HI all,
My requirement is to create a new tab at item level in MIGO Tcode. In that tab I have to add some z-fields, here the point to be noted is these custom fields data needs to be saved into a Z-table along with the goods receipt number which is generated whenever we post the GR. So I searched for screen exits for this. I was not able to found this.
But I was able to find out a BADI "MB_MIGO_BADI". Is this the right BADI, if so could you let me know in which method I could be able to get the saved GRN number for that posted document. How could I call my custom tab in this BADI.
If there is any alternate method also, could you please let me know.
Thanks and regards,
Srinivas.
Edited by: Vinod Kumar on Jul 7, 2011 10:30 PM
‎2011 Jul 07 6:15 PM
Hi Srinivas,
Use BADI MB_MIGO_BADI.
See the example in class CL_EXM_IM_MB_MIGO_BADI.
Best regards,
Rafael Sá
‎2011 Jul 07 5:42 PM
Test POST_DOCUMENT method by writing test code and if it's saved in ZTABLE.
‎2011 Jul 07 5:53 PM
Hi gvsastry,
Thanks for your prompt response, I should save ztable data along with the GRN number which is generated when we post data.
means if the GR posting fails the Z-table data should not be saved. So is that method which you said, will be triggred after the GR posting itself.
Regards,
Srinivas.
‎2011 Jul 07 5:59 PM
I think GR number will be available in this method. Put a break point and debug your implementation.
Refer to: CL_EXM_IM_MB_MIGO_BADI for reference.
‎2011 Jul 07 6:15 PM
Hi Srinivas,
Use BADI MB_MIGO_BADI.
See the example in class CL_EXM_IM_MB_MIGO_BADI.
Best regards,
Rafael Sá
‎2011 Jul 12 5:42 PM
Hi Srinivas,
You solve your problem or not?
Best regards,
Rafael Sá
‎2011 Jul 13 5:17 AM
Hi Rafael Sá,
At present that object is in pending, as I'm busy with other deliverables. I have to check the method post_document by debugging it.
Thanks for all your responses.
Srinivas.......
‎2013 Oct 06 3:22 PM
You can use the BADI MB_MIGO_BADI as described here : http://www.palas.fr/blog/?p=154&lang=en