Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > AFS/DDC/OLE: Function servers

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
37%
Installation Wizard into new VRC
39%
Manual into existing VRC
3%
Manual into new VRC
21%
Total votes: 38

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 24th July 2017, 13:03
subesse subesse is offline
Junior Member
 
Join Date: Dec 2006
Posts: 5
subesse is on a distinguished road
Baan: Baan Iv c4 - DB: bisam - OS: sun solaris
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.
Reply With Quote
  #2  
Old 24th July 2017, 14:45
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,934
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
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.
__________________
Mark

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
AFS - insert record in whinh5120m100 eric.dizon AFS/DDC/OLE: Function servers 13 31st October 2016 16:14
AFS Sales Order Insert eric.dizon AFS/DDC/OLE: Function servers 3 11th June 2014 23:46
AFS for Insert record in tirou101 sghatge AFS/DDC/OLE: Function servers 9 21st August 2013 05:41
Insert Data to tcibd001 using AFS layswan AFS/DDC/OLE: Function servers 17 6th February 2012 15:16
how to insert record in type3 form via AFS??? alibaba AFS/DDC/OLE: Function servers 5 17th September 2004 05:19


All times are GMT +2. The time now is 22:59.


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