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

adding new tab in MIGO Tcode at item leveli

Former Member
0 Likes
1,539

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

1 ACCEPTED SOLUTION
Read only

RJSA
Active Participant
0 Likes
1,155

Hi Srinivas,

Use BADI MB_MIGO_BADI.

See the example in class CL_EXM_IM_MB_MIGO_BADI.

Best regards,

Rafael Sá

7 REPLIES 7
Read only

Former Member
0 Likes
1,155

Test POST_DOCUMENT method by writing test code and if it's saved in ZTABLE.

Read only

0 Likes
1,155

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.

Read only

0 Likes
1,155

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.

Read only

RJSA
Active Participant
0 Likes
1,156

Hi Srinivas,

Use BADI MB_MIGO_BADI.

See the example in class CL_EXM_IM_MB_MIGO_BADI.

Best regards,

Rafael Sá

Read only

RJSA
Active Participant
0 Likes
1,155

Hi Srinivas,

You solve your problem or not?

Best regards,

Rafael Sá

Read only

Former Member
0 Likes
1,155

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

Read only

Former Member
0 Likes
1,155

You can use the BADI MB_MIGO_BADI as described here : http://www.palas.fr/blog/?p=154&lang=en