Application Development 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: 

Material Document Posting MIGO

arvind_soni
Participant
0 Kudos
1,790

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

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos
482

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

4 REPLIES 4

Former Member
0 Kudos
482

Hi,

Try to do in the badi method after update in MIGO

MB_DOCUMENT_BADI / MB_DOCUMENT_UPDATE

Thanks,

Shailaja Ainala.

0 Kudos
482

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

kesavadas_thekkillath
Active Contributor
0 Kudos
483

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

0 Kudos
482

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