Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Batch split in subcontracting


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,


Former Member
Not what you were looking for? View more on this topic or Ask a question