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

User login

Frontpage Sponsor


How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
200 - 500 GB
500 - 800 GB
800 - 1200 GB
1200 - 1500 GB
1500 - 2000 GB
> 2000 GB
Total votes: 58

Baanboard at LinkedIn

Reference Content

Closed Thread
Thread Tools Display Modes
Old 17th February 2010, 16:28
jcomboue jcomboue is offline
Junior Member
Join Date: Jun 2006
Posts: 7
jcomboue is on a distinguished road
Baan: BaanIVc4 - DB: SQL - OS: Windows2003
Problem to mark a record in tdpur4131s000


I would like automate the receipts.
It's OK if i take the first purchase order in the session tdpur4131s000

But i would like select for exemple the 4th or 5th line.
And it's not OK
It don't generate the receipt.

Can you help me ?

Old 17th February 2010, 21:13
mark_h's Avatar
mark_h mark_h is offline
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 7,231
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
I always recommend searching the forum for the session number - in this case this thread is found. It contains a link to code that does works. If you still have issues, please search other threads on the forum for tdpur4131s000. Then if that fails come back here and post your code.

I do not use that session - I create a receipt for all the lines at once. Then as they receive each line I go get the receipt number and modify it for a given line. You will find most of my code in the threads.

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.
Old 18th February 2010, 16:43
jcomboue jcomboue is offline
Junior Member
Join Date: Jun 2006
Posts: 7
jcomboue is on a distinguished road
Baan: BaanIVc4 - DB: SQL - OS: Windows2003
OK I found my problem

I can select the good purchase order

It shall do FIND when you have the good purchase order

My code for the session tdpur4131s000 :

PutField(_Supplier, supplier);
ChangeView(out errorMessage);

retour = BrowseSet("first.set", out errorMessage);
while (!string.IsNullOrEmpty(errorMessage) && (retour == true))
GetField(_Order, 6, out returnValue);
if (string.Equals(order, returnValue)) // order is purchase order to find
GetField(_Position, 3, out returnValue);
if (string.Equals(position, returnValue)) { break;} // position is position of purchase order to find

GetField(_Item, 16, out returnValue);
if (string.Equals(item, returnValue)) { break;} // item is item of purchase order to find
retour = BrowseSet("next.set", out errorMessage);

if ((!string.IsNullOrEmpty(errorMessage.Trim())) || (retour == false))
return false;
PutField("tdpur045.mark", "1");
Update(out errorMessage);
Mark(out errorMessage);
ContinueProcess(out errorMessage);
return true;

i hope to help some users
Sponsored Links
Closed Thread

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
I want set NO current record simona AFS/DDC/OLE: Function servers 1 10th October 2009 06:03
How to delete record in scheme? yurong Tools Administration & Installation 4 30th December 2004 23:35
rprt_send() problem veyant Tools Development 4 9th June 2003 09:13
Herstellkostenberechnung in BaaN 4c Kai's Forum Users Deutsches Forum 4 5th July 1999 00:00

All times are GMT +2. The time now is 10:19.

©2001-2018 - -