mzbella
26th September 2002, 18:06
I am trying to put the position number on a new order line. the line get added, but it just akes the next line number, not what I have put. Anyone successfully in doing this? here is my code.


api.pono = add.pono
api.item = last.item
api.oqua = tot.dqua

f4101m000.put.Sales_Order(api.orno)
find.err = f4101m000.find()
f4101m000.handle.sub.process("tdsls4105s000","add")
f4101m000.continue(err)

f4105s000.put.Position_Number(api.pono)
f4105s000.put.tdsls041.item(api.item)
f4105s000.put.Ordered_Quantity(api.oqua)
f4105s000.insert(1,err)
f4105s000.save(err)
rep.orno = f4105s000.get.tdsls041.orno()
rep.pono = f4105s000.get.Position_Number()
f4105s000.end()
f4101m000.end()

Thank you for the help

Michael Z

mark_h
26th September 2002, 23:32
Do you get any errors from the find or the insert? Are you sure the find is working? When it zooms to the subsession you may want to check and make sure you have the correct order.

Since I am not familiar with these sessions I do not know how they work. On my purchase order FS session I just let it default the line number to the next available. Is it possible that the position already exists and it is defaulting to something else?

Mark