Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Enterprise Integration Forum

Enterprise Integration Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


Alessandro Canevese 27.Mar.12 10:08 AM a Web browser
Connector for ODBC All Releases All Platforms


Hi all.
I'm new to LEI and I'm trying to use it to replicate some tables from SAP to a MS SQL Server. We are using the SAP Connector to read tables from SAP and the ODBC Connector to write records to MS SQL Server. Everything works fine, except for the dates.

In SAP the date type for table fields is DATUM that does not contain the time reference. If you need to store a timestamp you have two options: a) to store the time part in a UZEIT type separate field; b) to use a timestamp data element that can be implemented in several alternate ways: as CHAR14, NUMC14, FLOAT, and the like.

The point here is that in MS SQL Server timestamps are stored in a single field of type DateTime.

So, apparently, there could be two ways to replicate the values from SAP to SQL Server, but none of them seems to work (given the connectors we are using).

1) use two fields (types DATUM and UZEIT) on the SAP table and merge them on the fly on a format suitable to be mapped to a corresponding single DateTime field on the MS SQL Server table. As far as I've seen there's no way to do it (I mean that in the wizards I've used to configure the mapping between the tables I've not been able to find a way to do it).

2) use a single field (that is rendered as a CHAR14 or a number, etc.). This appears to not work either, as it fires an exception at runtime, saying that the string (the number, the float, etc.) cannot be converted to DateTime.

What can I do? Any help/suggestion is greatly appreciated!
Thank you in advance.
Ciao
Alessandro

P.S.: notice that DATUM is indeed recognized by the mapping wizard as a DateTime field. But, obviously, lacking the time information, after the replication the time part of the DateTime field in the MS SQL Server table appears to be void (0:00:00).






Field Conversion to Date/Time from ... (Alessandro Cane... 27.Mar.12)
. . RE: Field Conversion to Date/Time f... (Daniel W Heiche... 20.Apr.12)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow