2011 Dec 08 8:16 PM
Hello Guru,
I have a specific requirement as below:
1. When doing GR for Process order, we are showing user list of available batches. From here user can select an existing batch.
2. Once batch is selected and Post is clicked, GR creates a new batch moving the process order quantity to new batch.
3. With step 2 we also need to perform Transfer posting of quantity from batch selected by user to new batch.
Problem:
When I try to use the BAPI_GOODS_MVT* in the user exit during posting of good movement, I get error that one BAPI call for goods movement is active and cannot create another call. I have also tried to create an event to trigger (in update task) a separate program to perform transfer posting (by saving the new batch and user selected batch into a custom table) but the program does not pick the values from custom table as table update commit is taking some time.
We need to perform the transfer posting from batch to batch as soon as material document is posted for process order to avoid any loss of stock.
Does any one have any idea how to achieve this?
Thanks,
Arvind
2011 Dec 09 5:13 AM
MB_CREATE_GOODS_MOVEMENT is the function called internally by the bapi and MIGO . This function cannot be called twice within a transaction flow. Please check my reply here
2011 Dec 08 8:28 PM
Hi,
Try to do in the badi method after update in MIGO
MB_DOCUMENT_BADI / MB_DOCUMENT_UPDATE
Thanks,
Shailaja Ainala.
2011 Dec 08 8:49 PM
Hi Shailaja,
I have tried to do goods movement in this BADI but system does not allow two goods movement call at the same time.
Arvind
2011 Dec 09 5:13 AM
MB_CREATE_GOODS_MOVEMENT is the function called internally by the bapi and MIGO . This function cannot be called twice within a transaction flow. Please check my reply here
2011 Dec 18 10:14 AM
Thanks Keshav,
My issue is resolved using your idea
PS: points awarded!
Br,
Arvind
Edited by: Arvind Soni on Dec 18, 2011 12:14 PM