cancel
Showing results for 
Search instead for 
Did you mean: 

Poblem while reading date and timestamp for JDBC

Former Member
0 Kudos

Hi,

I have a requirement like want to read and date and timestamp of PI message and send it to one of the field in JDBC structure.

My server time was : 21-Jun-2012 00:04:33:699

@ jdbc adapter i was prompted with error like : java.sql.SQLException: ORA-01849: hour must be between 1 and 12.

Kindly help me to resolve?

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

have you had a look at this article:

http://scn.sap.com/people/alessandro.berta/blog/2005/10/04/datetime-datatypes-and-oracle-database

?

Regards,

Michal Krawczyk

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Michal

0 Kudos

Hi Praveen,

please set your time 12 hours format

H - Hour in day (0-23)

h - Hour in (1-12)

Regards,

Venkat

iaki_vila
Active Contributor
0 Kudos

Hi Praveen,

Also you could create an UDF that obtain this value. For this purpose you can use this interface and this variable: http://help.sap.com/javadocs/NW04s/current/pi/com/sap/aii/mapping/api/StreamTransformationConstants....

Regards.