Baanboard.com

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

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
15%
200 - 500 GB
30%
500 - 800 GB
4%
800 - 1200 GB
4%
1200 - 1500 GB
11%
1500 - 2000 GB
15%
> 2000 GB
22%
Total votes: 27

Baanboard at LinkedIn


Reference Content

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 17th February 2010, 17: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

Hi,

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 ?

Thanks
  #2  
Old 17th February 2010, 22:13
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 7,134
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.
__________________
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.
  #3  
Old 18th February 2010, 17: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 :


HandleSubProc("add");
try
{
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;
}
else
{
Find();
PutField("tdpur045.mark", "1");
Update(out errorMessage);
Mark(out errorMessage);
ContinueProcess(out errorMessage);
return true;
}
}
finally
{
HandleSubProc("kill");
EndSession();
}


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 07:03
How to delete record in scheme? yurong Tools Administration & Installation 4 31st December 2004 00:35
rprt_send() problem veyant Tools Development 4 9th June 2003 10:13
Herstellkostenberechnung in BaaN 4c Kai's Forum Users Deutsches Forum 4 5th July 1999 01:00


All times are GMT +2. The time now is 08:58.


©2001-2018 - Baanboard.com - Baanforums.com