Hi all,
I am trying to change warehouse in production order through AFS. I am passing production order number and project using stpapi.put and checking the return value of stapi.find. I am able to find the record, but when I am trying to update the warehouse by passing new warehouse in stpapi.put, I am getting an error message when I call stpapi.update. The error message is "Item not found".
When I run the session directly and try to update the warehouse in same production order, I am able to do it. I have attached screen that performs warehouse update in tisfc001.
I have attached script for reference.
Shall be grateful if anybody can point out the error.
Vishal
I am trying to change warehouse in production order through AFS. I am passing production order number and project using stpapi.put and checking the return value of stapi.find. I am able to find the record, but when I am trying to update the warehouse by passing new warehouse in stpapi.put, I am getting an error message when I call stpapi.update. The error message is "Item not found".
When I run the session directly and try to update the warehouse in same production order, I am able to do it. I have attached screen that performs warehouse update in tisfc001.
I have attached script for reference.
Shall be grateful if anybody can point out the error.
Vishal