Baanboard.com

Baanboard.com (http://www.baanboard.com/baanboard/index.php)
-   AFS/DDC/OLE: Function servers (http://www.baanboard.com/baanboard/forumdisplay.php?f=59)
-   -   AFS insert salesorder (http://www.baanboard.com/baanboard/showthread.php?t=70243)

subesse 24th July 2017 12:03

AFS insert salesorder
 
Via AFS I am able to insert a new salesorder via tdsls4101m000. Todo this I add the orderserie/ type of order and customernumber and then use stpapi.insert, which correctly adds a new salesorder. But after the insertion of the header of the salesorder I need to insert the lines of the order. And need to know the ordernumber just inserted.(or don't I?)
I tried to use use the stp.get.field of the field tsdld040.orno, but get back the same orderserie I started with, but never the newly created number.

Anybody having an example or idea what I should do?

Thx.

mark_h 24th July 2017 13:45

Moved to the correct forum. I always recommend searching the AFS forum for the session you are working on - a lot of posts around tdsls4101m000. See the last post http://www.baanboard.com/baanboard/s...=tdsls4101m000 on this link. I think it should how one other user did something like this.


All times are GMT +2. The time now is 07:34.


vB.Sponsors
©2001-2017 - Baanboard.com - Baanforums.com