Hi,
It seems like there is an issue with the locks. Have you checked the transaction SM12? Do you see any unexpected entries for the order in SM12?
It would also help to know what is the exception raised by asking your developer to place a few break-points in the function module.
Best,
PSP