Predator
29th March 2008, 18:49
Hi All,

I did an AFS for sales order...successfully go thru sales order header but when come to sales order lines...it always said.."sales order not found
'Sales Order' not found in table Sales Orders
get.mess.code :ttstps0105"

I notice in the AFS Log file ..attached is the AFS log file...i notice get.fields0tdsls401.orno0 is 0....

please help..

predator

Predator
29th March 2008, 19:10
Hi,

Attached is he AFS log file.

Predator

mark_h
29th March 2008, 23:54
First search this forum for code examples. There are plenty of them for sales orders. If you do not find an answer then post your code and someone may see the problem.

Predator
30th March 2008, 08:17
Hi All,

I did an AFS for sales order...successfully go thru sales order header but when come to sales order lines...it always said.."sales order not found
'Sales Order' not found in table Sales Orders
get.mess.code :ttstps0105"

I notice in the AFS Log file ..attached is the AFS log file & source code...i notice get.fields0tdsls401.orno0 is 0....

please help..

predator

mark_h
30th March 2008, 14:51
This is the correct forum for AFS posts - please do not start another post in the tools forum. See this thread for Dougs code (http://www.baanboard.com/baanboard/showthread.php?t=22694&highlight=sales+order+line+baan). Note the placement of the stpapi.handle.subproc. I think if you remove the one before the form command and replace it with this one stpapi.handle.subproc("tdsls4101s000", "mtdsls00009047","13") it might work. That is assuming of course that your system is the same as Doug Strouds - big assumption.