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 - batch

kesavadas_thekkillath
Active Contributor
0 Likes
3,881

hi ,

Im using BAPI_GOODSMVT_CREATE for stock transfer posting.

Here there is a batch field to be passed.

what value should we pass here.

i checked MCH1 table but it consists of multiple batches for a material.

what is the exact way to proceed with this.

1 ACCEPTED SOLUTION
Read only

former_member189596
Active Participant
0 Likes
2,170

Hi Keshu..

The BAPI BAPI_GOODSMVT_CREATE will work as same as MIGO. what ever the process is possible using MIGO is possible using This BAPI also.

When you do Transfer posting, you need to pass two batch numbers...means From and to bacth Number.

let me know if you need any further clarifciation.

cheers,

JBR

4 REPLIES 4
Read only

Former Member
0 Likes
2,170

Hello

First of all you must to know what are you want to transfer.

If you do not know batch number, look at table MCHB with werks, storage location and material number and select record with CLABS > 0. Set batch number from record with necessary amount.

P.s. also try to set '*' in batch field in bapi (but I not certain that this will work).

Read only

former_member189596
Active Participant
0 Likes
2,171

Hi Keshu..

The BAPI BAPI_GOODSMVT_CREATE will work as same as MIGO. what ever the process is possible using MIGO is possible using This BAPI also.

When you do Transfer posting, you need to pass two batch numbers...means From and to bacth Number.

let me know if you need any further clarifciation.

cheers,

JBR

Read only

0 Likes
2,170

hi...

i am trying to using BAPI_GOODSMVT_CREATE for migo upload........ but i got a error for enter the subcomponent batch number...

how to pass the subcomponent batch number in this bapi?....

pl do the needful

Read only

Former Member
0 Likes
2,170

At times you need to create batch first. This is strictly per process. It all depends on the movement type. Consult your functional Consultant. At times the same from and to batch is involved. Rest you need to create a batch at runtime and pass. You can use some function module . Look up for BATCHREPLICASAVE .