cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

L_IDOC_INPUT_WMMBXY - Restrict batch creation

KK07
Contributor
0 Kudos
263

Hi Folks,

The requirement is to reuse the existing batch number when we do MIGO based on certain conditions. My custom program uses the idoc function module L_IDOC_INPUT_WMMBXY to post MIGO. I have come across with few user-exists and badi's but of no use. Can you please guide on below

1. Batch number should be created when user enters 1pallet in MIGO.

2. Subsequent Pallets should use the same Batch if the second one is for same PO on the same date

Can you please give your inputs on resolving this issue,

Accepted Solutions (0)

Answers (2)

Answers (2)

KK07
Contributor
0 Kudos

Hi Dominik,

Thanks for the reply, for point#2 can you elobarate how to put batch determination?

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Kudos

Hello krishna.kishore28

First, you should use BAPI_GOODSMVT_CREATE function to post material documents. It's much easier to use then L_IDOC_INPUT_WMMBXY and it's officially release by SAP for customer usage.

Second, why don't you implement your batch determination logic in your custom program before posting goods receipt? That would be the most straight forward solution.

Best regards

Dominik Tylczynski