BAPI_GOODSMVT_CREATE: sequence of movements
In my program, i have to do the following things:
1. lower the stock of a material in a plant
2. transfer the stock to another plant.
This functionality can be implemented with BAPI_GOODSMVT_CREATE ( movements 501 and 502)
The problem is that with this bapi, problems can arise when calling it in sequence. Sometimes (not always) the movements are not performed, allthough there are no errors given. I've searched the internet a bit, and this seems to be a known problem with this BAPI. Does anyone know a good solution so i can be sure that the movement is done. I've tried 'wait up to 1 seconds' after committing the bapi, but this not always a garanty that the movement is really done.
I hope my question is a bit clear and that someone can help me to solve this issue.
PS: It's not a code issue or something, and not a commit issue either , because 70% of the time the movements are done. But i prefer 100%.