2014 Feb 24 12:44 PM
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
2014 Feb 24 12:47 PM
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
2014 Feb 24 12:47 PM
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
2014 Feb 24 12:49 PM
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