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 10th November 2005, 17:57
litrax's Avatar
litrax litrax is offline
Member
 
Join Date: Sep 2005
Location: Germany
Posts: 95
litrax is on a distinguished road
Baan: ERP LN (FP8) - DB: Oracle10g (10.2.0.1.0) - OS: Solaris
AFS for session tdsls4240m000 doesn't work

Hello,

I am an AFS Newbie and wonder why my session tdsls9249m000 to control the session tdsls4240m000 via AFS doesn't work out.

The session tdsls9249m000 does call the standard AFS functions in the dll tdslsf4240m000. I put all required fields and then call the continue and end function. But in the AFS logfile the return value of the continue function is 0.

I have already searched in this board and read nearly the whole manual but I can't see what I've done wrong.

Please give me a hint...
Attached Files
File Type: cln psls9249.00000.cln (8.2 KB, 39 views)
File Type: cln pslsf4240m0000.cln (13.6 KB, 22 views)
File Type: txt afs_log.txt (2.5 KB, 31 views)
__________________
Have a lot of fun...

Please look at this before asking wholes in the stomach ;-)
http://www.baanboard.com/programmers_manual_baanerp
Reply With Quote
  #2  
Old 10th November 2005, 19:15
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,930
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Try only this piece of code:

Code:
| form fields
	stpapi.put.field(s, "item.f", tdsls041.item )
	stpapi.put.field(s, "item.t", tdsls041.item )
	stpapi.put.field(s, "cntr.f", cntr.f )
	stpapi.put.field(s, "cntr.t", cntr.t )
	stpapi.put.field(s, "cuno.f", tdsls041.cuno )
	stpapi.put.field(s, "cuno.t", tdsls041.cuno )
	stpapi.put.field(s, "orno.f", str$(tdsls041.orno) )
	stpapi.put.field(s, "orno.t", str$(tdsls041.orno) )
	stpapi.put.field(s, "pono.f", str$(pono.f) )
	stpapi.put.field(s, "pono.t", str$(pono.t) )
	stpapi.put.field(s, "comp.f", str$(comp.f) )
	stpapi.put.field(s, "comp.t", str$(comp.t) )
	stpapi.put.field(s, "ddta.f", str$(ddta.f) )
	stpapi.put.field(s, "ddta.t", str$(ddta.t) )
	stpapi.put.field(s, "tofl.i", str$(tofl.i) )
	stpapi.put.field(s, "prin.r", str$(prin.r) )
	stpapi.continue.process(s, err.msg )
	while true
		err.code = stpapi.get.mess.code(s,err.msg)
		if isspace(err.msg) then
			break
		endif
		message(err.code&": "&err.msg)
		break
	endwhile
	stpapi.end.session(s)

On a session like this I never put anything but the form fields. Since we do not use this session I think this is all you need to generate with. Of course make sure there is something to generate for this order.
__________________
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
  #3  
Old 12th April 2006, 08:30
litrax's Avatar
litrax litrax is offline
Member
 
Join Date: Sep 2005
Location: Germany
Posts: 95
litrax is on a distinguished road
Baan: ERP LN (FP8) - DB: Oracle10g (10.2.0.1.0) - OS: Solaris
I've tried this piece of code now. But still the continue.process does nothing.
Im not sure if the enum fields (tofl.i & prin.r) are set in the right way!?
stpapi.put.field(s, "tofl.i", str$(tdsls.tofl.both) )
stpapi.put.field(s, "prin.r", str$(tcyesno.no) )

Perhaps there must be a report controlling (like stpapi.set.report) or is this just necessary when a report is really printed (i.e. in case the field prin.r is "yes")?

Can just somone give me a hint what to do, cause the afs.log says nothing as you see...
Attached Files
File Type: log afs.log (3.8 KB, 9 views)
__________________
Have a lot of fun...

Please look at this before asking wholes in the stomach ;-)
http://www.baanboard.com/programmers_manual_baanerp
Reply With Quote
  #4  
Old 12th April 2006, 16:02
Juergen's Avatar
Juergen Juergen is offline
Guru
 
Join Date: Aug 2001
Location: Germany
Posts: 573
Juergen is on a distinguished road
Baan: IVc4, ERP LN - DB: Oracle - OS: Linux, Unix
When a report is printed, the report specs. must have been set.

Example:
Code:
stapi.put.field(.....
stpapi.set.report("tdsls4240m000","rtdsls424001000" , printer, err.msg)
if isspace(err.msg) then
   stpapi.continue.process("tdsls4240m000", err.msg)
...
Juergen
Reply With Quote
  #5  
Old 12th April 2006, 16:04
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,930
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Make sure the report name is correct I think Juergen left off sls in the report name - rtdsls424001000.
__________________
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
Sponsored Links
  #6  
Old 12th April 2006, 16:11
Juergen's Avatar
Juergen Juergen is offline
Guru
 
Join Date: Aug 2001
Location: Germany
Posts: 573
Juergen is on a distinguished road
Baan: IVc4, ERP LN - DB: Oracle - OS: Linux, Unix
typing error now corrected.

Thanks Mark.
Reply With Quote
  #7  
Old 12th April 2006, 16:15
litrax's Avatar
litrax litrax is offline
Member
 
Join Date: Sep 2005
Location: Germany
Posts: 95
litrax is on a distinguished road
Baan: ERP LN (FP8) - DB: Oracle10g (10.2.0.1.0) - OS: Solaris
Thanks for the hint. I'll try this out. But since it is just "for myself" it will take some time until you hear from me if it had worked now or not.
__________________
Have a lot of fun...

Please look at this before asking wholes in the stomach ;-)
http://www.baanboard.com/programmers_manual_baanerp
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
Can't get tisfc0408m000 to work through AFS Kevin_Rell AFS/DDC/OLE: Function servers 7 1st November 2011 16:31
Main and sub work center setup FransG Manufacturing & Supply Chain 4 20th September 2006 12:56
Another attempt to get AFS to work for me... en@frrom AFS/DDC/OLE: Function servers 1 9th June 2005 17:39
Extension to sales order header being updatesd thru AFS or update table will work darpan Tools Development 4 16th April 2005 10:16
How to get tisfc0408m000 to work with AFS Danny Leolux AFS/DDC/OLE: Function servers 11 20th January 2005 16:35


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


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