java error unable to convert string to date for SAP JCO connector

Document created by anton_serbanescu Employee on Apr 15, 2014
Version 1Show Document
  • View in full screen mode
java error unable to convert string to date for SAP JCO connector

com.sap.conn.jco.ConversionException: (122) JCO_ERROR_CONVERSION:
Cannot convert a value of '04102014' / <'mmddyyyy'> from type
java.lang.String to DATE at field ... <MyDateInSAP>
The JCO only works with dates in yyyyMMdd format so the function in SAP must accept it in that format.
1 person found this helpful

Attachments

    Outcomes