AFS hangs on second iteration of update
I have a session which calls upon AFS of tdsls4102s000 (sales order lines) for updating the warehouse in open sales order lines. The issue is the session just hangs on second record when it tries to update. It goes through perfectly on first record, but when the select query reaches second record, after successfully puting (tdsls041.orno & tdsls041.pono) it simply hangs on the stpapi.update call.
I have attached script with a hope to find what could be wrong in the script. Any hint will be highly appreaciated.