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