2009 Oct 09 5:39 AM
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
2009 Oct 09 5:44 AM
2009 Oct 09 5:48 AM
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
2009 Oct 09 6:59 AM
I m getting an error saying that " Material valuation area data is locked " when I am using POST_DOCUMENT
2009 Oct 09 7:15 AM
just use MB_DOCUMENT_BADI ( method:MB_DOCUMENT_UPDATE)
The importing field XMSEG will have the field BWART
2009 Oct 09 7:58 AM
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?
2009 Oct 09 8:21 AM
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.
2009 Oct 09 8:37 AM
I had that idea but it will lead to inconsistencies as the execution happens in update task.
2009 Oct 09 9:42 AM
Hi,
Better check whether you can do it through workflow or through BTE
2013 Jul 04 7:57 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |