Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Administration & Installation

Retirement Notice

Baanboard is shutting down on 31-dec-2023. See: http://www.baanboard.com/baanboard/showthread.php?t=76043


User login

Frontpage Sponsor

Main

Poll
What do you expect from your SI Implementation partner for the success of ERP implementation.
Bring best practices - Not to offer more CR's Leveraging standard functions
20%
Need more honesty to work with the Users until their processes are fully mapped & Users are trained
40%
Focus on process automation/ integrations/ Real time data/ BI analytics
13%
Stick to basics
27%
Total votes: 15

Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 14th August 2010, 11:56
binoy000's Avatar
binoy000 binoy000 is offline
Junior Member
 
Join Date: Oct 2001
Location: Bahrain
Posts: 29
binoy000 is on a distinguished road
Baan: LN 6.1 FP5 - DB: Oracle 11 i - OS: Windows 2003
LN Exchange Scheme - Import utc Date issue
Baan: ERP LN 6.1 FP5
DB: Oracle 10.1.0.x
OS: Windows NT
C/S: Server

While importing data using Exchange Scheme, All the dates are converted as 01 - 01- 1970 though the data input was mmddyy format and the exchanges scheme also we defined in the masterdata as mmddyy.

Is it a processing issue or LN Bug?
__________________
"Success is not in howmany things we are doing but in how differently we are doing"
Reply With Quote
  #2  
Old 15th August 2010, 15:51
mmurphy2650's Avatar
mmurphy2650 mmurphy2650 is offline
Senior Member
 
Join Date: Nov 2006
Location: Akron NY USA
Posts: 116
mmurphy2650 is on a distinguished road
Baan: LN6.1 FP6 - DB: MS SQL Server - OS: MS Windows Server
Hi binoy000,

It should import properly if in your ASCII File Fields session, Field Type is set to Numeric and Date Format is set to MMDDYY.

Mike
Reply With Quote
  #3  
Old 16th August 2010, 07:58
binoy000's Avatar
binoy000 binoy000 is offline
Junior Member
 
Join Date: Oct 2001
Location: Bahrain
Posts: 29
binoy000 is on a distinguished road
Baan: LN 6.1 FP5 - DB: Oracle 11 i - OS: Windows 2003
Do we need to put any values for time other than mmddyy?
I have put the asci data in the following way...

DPCMNMxxxxxx|1|LCP000062|1|051310|1|USD|325000.00|||070510|062010|LC2|FB2|Fxxxxx
DPCMxxxxx|1|LCP000069|1|052310|1|USD|569304.00|||071510|063010|LC2|FB2|xxxxxx
__________________
"Success is not in howmany things we are doing but in how differently we are doing"
Reply With Quote
  #4  
Old 17th August 2010, 13:12
mmurphy2650's Avatar
mmurphy2650 mmurphy2650 is offline
Senior Member
 
Join Date: Nov 2006
Location: Akron NY USA
Posts: 116
mmurphy2650 is on a distinguished road
Baan: LN6.1 FP6 - DB: MS SQL Server - OS: MS Windows Server
Quote:
Originally Posted by binoy000 View Post
Do we need to put any values for time other than mmddyy?
I have put the asci data in the following way...

DPCMNMxxxxxx|1|LCP000062|1|051310|1|USD|325000.00|||070510|062010|LC2|FB2|Fxxxxx
DPCMxxxxx|1|LCP000069|1|052310|1|USD|569304.00|||071510|063010|LC2|FB2|xxxxxx
The time will import as 12:00:00 AM.
Reply With Quote
  #5  
Old 18th August 2010, 07:56
binoy000's Avatar
binoy000 binoy000 is offline
Junior Member
 
Join Date: Oct 2001
Location: Bahrain
Posts: 29
binoy000 is on a distinguished road
Baan: LN 6.1 FP5 - DB: Oracle 11 i - OS: Windows 2003
All setting is same .But result is still 1970 date...I have registered an incident to Infor.
This problem was there from beginning of LN Implementation.
__________________
"Success is not in howmany things we are doing but in how differently we are doing"
Reply With Quote
  #6  
Old 30th August 2010, 07:49
binoy000's Avatar
binoy000 binoy000 is offline
Junior Member
 
Join Date: Oct 2001
Location: Bahrain
Posts: 29
binoy000 is on a distinguished road
Baan: LN 6.1 FP5 - DB: Oracle 11 i - OS: Windows 2003
I got the solution from Infor- we have to use the asci file with hrmnssmmddyyyy format.
Thanks everybody.
__________________
"Success is not in howmany things we are doing but in how differently we are doing"
Reply With Quote
  #7  
Old 20th October 2010, 17:01
obermar obermar is offline
Junior Member
 
Join Date: Jun 2010
Posts: 5
obermar is on a distinguished road
Baan: ERP LN - DB: Oracle 11g - OS: AIX
Hi binoy000,
I still only get as result the 1970 date. How did you define the Ascii field file - Numeric and MMDDYYYY?

Markus
Reply With Quote
  #8  
Old 21st October 2010, 10:10
Peter Campbell Peter Campbell is offline
Junior Member
 
Join Date: Jun 2004
Location: Berlin
Posts: 27
Peter Campbell is on a distinguished road
Baan: Baan IV, V, LN, OpenWorld - DB: Informix, Oracle - OS: Unix, Windows 2003
exchange date import

the best way to import dates with exchange is to write a condition.

somthing like

long yy mon dd hh min ss

yy = lval(date(1;4))
....
....

return date.to.utc(yy,mon, ...)

or for dte date

return date.to.num(yy,mon, ...)

this condition can be changed to agree with the format in the import file

define the input field as string

Regards

peter
__________________
Peter J Campbell
Reply With Quote
  #9  
Old 21st October 2010, 17:03
obermar obermar is offline
Junior Member
 
Join Date: Jun 2010
Posts: 5
obermar is on a distinguished road
Baan: ERP LN - DB: Oracle 11g - OS: AIX
Hi Peter,
that works great, thanks

Kind Regards
Markus
Reply With Quote
  #10  
Old 22nd November 2010, 21:56
nmolinaa nmolinaa is offline
Member
 
Join Date: Jun 2009
Posts: 67
nmolinaa is on a distinguished road
Baan: ERP LN - DB: SQL2005 and Oracle - OS: HPUX, IBM AIX, Windows 2003 server
Yes, the problem with this example you presented, is that the date is not a date field truly but a UTC field. UTC is an acronym that stands for Coordinated Universal Time. An UTC field handles Date and Time. So, the value a UTC field can take is represented by a numeric value, using this international standard. This numeric value which is stored in the database also as a numeric value is

In ERP LN: the number of seconds from January 1st, 1970 12:00am.
In other words, 01/01/1970 00:00 = 0; 01/01/1970 00:02 = 120; 01/04/2007 00:00 = 1167868800

In BAAN IV: The number of days from January 1st, 1970 12:00am.

Peter's condition handles this conversion correctly but I figured it would not hurt to provide more information.

Regards,
Reply With Quote
  #11  
Old 2nd December 2010, 07:49
Peter Campbell Peter Campbell is offline
Junior Member
 
Join Date: Jun 2004
Location: Berlin
Posts: 27
Peter Campbell is on a distinguished road
Baan: Baan IV, V, LN, OpenWorld - DB: Informix, Oracle - OS: Unix, Windows 2003
Baan IV

In BAAN IV: The number of days from January 1st, year 0
dte date as tfgld.date in LN
__________________
Peter J Campbell
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
JV Import Exchange Scheme wpteoh Finance, Invoicing and Integration 5 23rd August 2011 04:06
CODE: Validate Import Exchange Scheme Data gfasbender Code & Utilities 10 18th November 2009 00:19
Import date with time in Baan LN thru exchange scheme fionad Tools Development 1 25th August 2008 17:08
Exchange - Only need to import date for a couple of table fields pjohns Tools Development 7 27th June 2003 10:06
UTC Date using Baan exchange vgobiraj Tools Development 0 11th December 2001 22:20


All times are GMT +2. The time now is 01:21.


©2001-2023 - Baanboard.com - Baanforums.com