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

Issue on BAPI_GOODSMVT_CREATE stock upload , Batch is not creating

Former Member
0 Likes
1,301

Hi All,

       Using BAPI_GOODSMVT_CREATE BAPI , uploading the initial stock in mb1c

      for example :  momnt type = '561'

                           plant      = '1000'

                            SL         = '1000'

                             material = '23445'

                             quantity  = 20

                              batch     = 003fe

document number is generating successfully and  their is no error in return message also..

if i create manually using mb1c transaction bat h number is creating automatically ..

while creating using BAPI .. Batch is not creating .. if i check in MSC2n batch is not assigned for that particular material..

but batch is maintaing during manual creation ...

pls help me .. where i'm missing

regards,

Anbu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
813

Hi,

The issue is already resolved, you can find sample code in the wiki link also.

Unable to determine the Batch Automatically by ... | SCN

Regards

Hi All,

       Using BAPI_GOODSMVT_CREATE BAPI , uploading the initial stock in mb1c

      for example :  momnt type = '561'

                           plant      = '1000'

                            SL         = '1000'

                             material = '23445'

                             quantity  = 20

                              batch     = 003fe

document number is generating successfully and  their is no error in return message also..

if i create manually using mb1c transaction bat h number is creating automatically ..

while creating using BAPI .. Batch is not creating .. if i check in MSC2n batch is not assigned for that particular material..

but batch is maintaing during manual creation ...

pls help me .. where i'm missing

regards,

Anbu

2 REPLIES 2
Read only

Former Member
0 Likes
814

Hi,

The issue is already resolved, you can find sample code in the wiki link also.

Unable to determine the Batch Automatically by ... | SCN

Regards

Read only

eduardo_hinojosa
Active Contributor
0 Likes
813

Hi

See SAP Note 520813 - FAQ: BAPIs for goods movements, question 19. As it suggests, you can use BAPI_BATCH_SAVE_REPLICA

I hope this helps you

Regards

Eduardo