Application Development and Automation 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: 
Read only

Using BAPI_GOODSMVT_CREATE with 261 Movement

rockmates41
Discoverer
0 Likes
1,646

Hi,

I am using bapi_goodsmvt_create uploading excel file, In excel file giving process order no, plant, material, quantity.

Excel quantity just checking with mchb-clabs if the stock is available then material document is creating but the requirement is if the stock doesn't match with excel quantity then how it should check the quantity from next batch.

For example : In excel I am giving 200 but the stock of batch quantity is 150 so 50 quantity should pick from next batch then goods movement should post.

Thanks in advance !!

Regards,

Rohit

2 REPLIES 2
Read only

Abinathsiva
Active Contributor
0 Likes
958

Hi Rohit,

Do try with MB52 submit program with Batch instead of Excel Upload. please follow the below blog this is custom Migo process - Custom MIGO for all Movement Types

Read only

svs_sap
Active Contributor
958

Hi Rohit,

You need to call batch determination FM too, when you try for this option. Explore more on this as per your business batch determination logic and build the technical object.

Refer the thread where the discussion happened on this and lot of insights with SAP note and ABAP exemplary details:

https://answers.sap.com/questions/12111614/bapi-goodsmvt-create-and-batch-determination.html

https://wiki.scn.sap.com/wiki/display/ERPSCM/Stock+and+Batch+Determination

Regards,

Sharat