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

BAPI_GOODSMVT_CREATE and Batch Determination

Former Member
0 Likes
2,290

Hi experts!

I'm new to batch determination and I'm facing an issue. I've set up a batch determination configuration and it works fine when I post a goods issue in dialog process (MB1A) entering * in the batch field.

Now I'm trying to do the same with BAPI_GOODSMVT_CREATE, but if I enter * in the batch parameter I get an error message M7116: "The storage location/batch function * is not defined here". If I leave it blank i get the error message "Enter batch".

Hope somebody has any clue.

Thanks

4 REPLIES 4
Read only

Former Member
0 Likes
1,152

Hi,

If your material is "batch managed" you have to supply the bacth number in BAPI.

The BAPI does not search automatically for a batch number like MB1A.

Best regards,

Leandro Mengue

Read only

0 Likes
1,152

Is there any other way I can achieve this.

Read only

0 Likes
1,152

Hi,

I think that you have to use BAPI_MATERIAL_GETBATCHES before BAPI_GOODSMVT_CREATE.

Best regards,

Leandro Mengue

Read only

0 Likes
1,152

Are there any enhancements in BAPI_GOODSMVT_CREATE that we can use to get the batches?