cancel
Showing results for 
Search instead for 
Did you mean: 

Batch split in subcontracting

glenn_karlsson2
Participant
0 Kudos

Hi,

My case is the following.

We use a subcontracting vendor to build dispay pallets. The vendor send us files with the finished pallets (for GR) and used components (for GI)..

So based on the component file, we do a goods issue to vendor stock (like ME2O) using bapi BAPI_GOODSMVT_CREATE and then, based on the GR-file, we do the GR, also using BAPI_GOODSMVT_CREATE, which also consumes the component from vendor stock. And then we post everything to WM.

This works fine except for one situation which I hope you to shed some light over.

Sometimes our vendor uses components from multiple batches, For example, we need total 36 SU of material X to build the pallet. The vendor user 20 SU from batch AAA and 16 SU from batch BBB. That results in an error message from BAPI_GOODSMVT_CREATE when doing GR saying we have a deficit in vendor stock of 16 SU, since the bapi seems to be unable to consume the component from two different batches.

I have tried to do this manually in MIGO and the automatic batch detemination gives me components from the two batches without any problems.

Manually in MB01, I get asked for component info and are given the full 36 SU as component quantity to be consumed. If I change the quantity to 20 SU and enters batch AAA, I am not asked to provide data about the 16 SU left. The documents posts and I have a display pallet in stock but without consuming the correct quantity of components. Then I have to do an adjustment in MB04. But that is a manual routine.

Can I setup the batch detemination process to fix this problem? I find it strange that the determination process works for MIGO but not when I to a posting using the BAPI_GOODSMVT_CREATE from a background program.

kind regards,

Glenn

Accepted Solutions (0)

Answers (1)

Answers (1)

JL23
Active Contributor
0 Kudos

Batch determination is processed with BAPI_GOODSMVT_CREATE.

please look into some OSS notes like 520813 , 521488, 526850, 390777 and 329367

which all explain some portions of batches and subcontracting in conjunction with this BAPI.