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

GI using MIGO - Movement type 261

Former Member
0 Likes
1,679

Hi Experts,

I have a requirement to automatically trigger a GI with movement type 261 when a GR with movement type 101 is done against a Purchase order(PO). Also I have limitation that I have to display the Material document created for 101 and 261 to the user giving a pop message.

Please let me know if I can implement the BADI MB_MIGO_BADI and use the method POST_DOCUMENT to do so.

Also, let me know if you have better way to do so.

Thanks,

Priyabrata

Hi Experts,

I have a requirement to automatically trigger a GI with movement type 261 when a GR with movement type 101 is done against a Purchase order(PO). Also I have limitation that I have to display the Material document created for 101 and 261 to the user giving a pop message.

Please let me know if I can implement the BADI MB_MIGO_BADI and use the method POST_DOCUMENT to do so.

Also, let me know if you have better way to do so.

Thanks,

Priyabrata

9 REPLIES 9
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,343

Read only

Former Member
0 Likes
1,343

Hi,

Yes you can use POST_DOCUMENT method.

There is a field BWART in IT_MSEG table which you can use to check your movement type.

For poping up messgae either you can give MESSAGE statement whcih shows message error or warning message in window before posting.

Or use any of POPUP function module like POPUP_FOR_INTERACTION.

Regards,

Tanaya

Edited by: Tanaya A on Oct 9, 2009 10:18 AM

Read only

0 Likes
1,343

I m getting an error saying that " Material valuation area data is locked " when I am using POST_DOCUMENT

Read only

0 Likes
1,343

just use MB_DOCUMENT_BADI ( method:MB_DOCUMENT_UPDATE)

The importing field XMSEG will have the field BWART

Read only

0 Likes
1,343

I tried that BADI as well but it displays an error "Valuation data for material 103360 is locked by the user".

I think the GR for 101 is locking the data and no idea how to proceed further?

Read only

0 Likes
1,343

you must dequeue(unlock) it.

DEQUEUE_EMMBEWE

DEQUEUE_EMMBEWS

But im not sure about the chances of inconsistencies that could happen.

May be other veterans in this forum can help you regarding this.

Read only

0 Likes
1,343

I had that idea but it will lead to inconsistencies as the execution happens in update task.

Read only

0 Likes
1,343

Hi,

Better check whether you can do it through workflow or through BTE

Read only

0 Likes
1,343

Hi Priyabrata,

Could you please explain how the problem  is solved in this case?

I am facing the same problem.

Your inputs are very helpful.

Br

Anvesh