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
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 31

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 18th July 2008, 16:42
jp.aalders's Avatar
jp.aalders jp.aalders is offline
Senior Member
 
Join Date: Aug 2001
Location: Ootmarsum - The Netherlands
Posts: 164
jp.aalders is on a distinguished road
Baan: Baan c4 - DB: Oracle, Bisam, Informix - OS: AIX, HP-UX, Suse
AFS on tihra1101m000

Hi Guru's

I'm developping an AFS session on tihra1101m000. However I am able to insert records into the tihra1101m000 is still have a problem with inserting the records in te correct week.

First action on starting the AFS functionalliy is to set the view and to select the correct year/week/employee. Unfortunately AFS points the view always to the current week instead of the week I select.

F.I., I want to book hours using AFS in week 17/2008 for employee 999001, the AFS return values do not return errors but when I check the select values using stpapi.get.field it has selected the wrong week.

Any Ideas what the problem can be? My code is attached,

JP
Attached Files
File Type: pdf tihra1101m000.pdf (22.6 KB, 58 views)
Reply With Quote
  #2  
Old 18th July 2008, 20:16
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,906
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Never done one on this session - have you seen this thread here. I know there have been posts about how to get the session to work - I also seem to recall one about changing the startup option on the session.
__________________
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 18th July 2008, 20:32
jp.aalders's Avatar
jp.aalders jp.aalders is offline
Senior Member
 
Join Date: Aug 2001
Location: Ootmarsum - The Netherlands
Posts: 164
jp.aalders is on a distinguished road
Baan: Baan c4 - DB: Oracle, Bisam, Informix - OS: AIX, HP-UX, Suse
Hi Mark,

Thanks for your quick reply. My script is based on the one Nico posted, as you can see it is pretty much the same. Any options?

John
Reply With Quote
  #4  
Old 18th July 2008, 21:19
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,906
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Have you tried that BOI variable mentioned in the thread?

Have you tried a stpapi.save as soon as you start the session? I had a problem where I started a session and it went it to input. Nothing I did would work - until I put a save first. Then I could do a find on my record. Just a thought?

Do you have source code? Or anything were you might be able to view the code in debug mode to find out what is happening?
__________________
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
  #5  
Old 18th July 2008, 21:55
jp.aalders's Avatar
jp.aalders jp.aalders is offline
Senior Member
 
Join Date: Aug 2001
Location: Ootmarsum - The Netherlands
Posts: 164
jp.aalders is on a distinguished road
Baan: Baan c4 - DB: Oracle, Bisam, Informix - OS: AIX, HP-UX, Suse
Hi Mark,

Thanks for your info. I'll try and let you know. Have a nice weekend.

John
Reply With Quote
  #6  
Old 21st July 2008, 12:34
jp.aalders's Avatar
jp.aalders jp.aalders is offline
Senior Member
 
Join Date: Aug 2001
Location: Ootmarsum - The Netherlands
Posts: 164
jp.aalders is on a distinguished road
Baan: Baan c4 - DB: Oracle, Bisam, Informix - OS: AIX, HP-UX, Suse
Hi Mark,

I've got the session tihra1101m000 working using AFS. The problem was related to the hra parameters, the field tihra000.koha value was set to day.by.order in stead of week.by.order. Due to this the session tihra1101m000starts in that case with the view weekday/week/year and employee instead of week/year and employee number.

Therefore AFS is not able to set the correct week and starts with the current week instead of the week set by the AFS script.

So, the settings of the tihra parameters is important to get the session working correctly if using an AFS entry by week and year.

Thanks for your help,

John
Reply With Quote
Sponsored Links
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 - Hours Accounting tihra1101m000 gous99 AFS/DDC/OLE: Function servers 17 1st December 2010 14:26
AFS for tihra1101m000 baanguy2 AFS/DDC/OLE: Function servers 10 18th July 2005 14:08
AFS hangs in stpapi.put.field garias AFS/DDC/OLE: Function servers 1 30th January 2005 22:13
AFS - Print Order Documents BurghMan AFS/DDC/OLE: Function servers 5 29th October 2004 21:07
AFS : do we need BOI installed to use AFS rohan_rege AFS/DDC/OLE: Function servers 7 17th August 2002 09:54


All times are GMT +2. The time now is 09:39.


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