we are developing a program where the stock category is changed from Blocked stock to unrestricted and then moving to the desired location. we are using the below functional module to achieve it:
Program is runnning as per the requirement when we are in debug mode...but when we run it in standard mode we are getting the below error message:
Default values for warehouse number & are not defined (Message L2701)
the problem is probably caused by a missing COMMIT WORK.
In addition, I suggest you to test each process separately. For example, remove the functions L_TO_CREATE_SINGLE and L_TO_CONFIRM, and check if it works. If so, try removing only the FM L_TO_CONFIRM, and check if the posting change and the TO creation work.