SAP Knowledge Base Article - Preview

1886186 - Cannot be converted to data type DATE


  • Using Java IDoc Class Library 3.* in custom java program or 3rd party product so as to send IDoc to SAP system through JCO.
  • There is DATE type field in side IDoc that need to be send to SAP system.
  • When send DATE field in format other than YYYYMMDD or YYYY-MM-DD, there is error like below throw out: (6)
Value of segment field "xxxxx" cannot be converted to datatype DATE.
DOCUMENT: type=xxxxx, number=xxxx; SEGMENT: type=xxxx, definition=xxxx;
FIELD: name=xxxx, datatype=DATE, value=14062013



  • SAP Java IDoc Class Library 3.*



SAP Composition Environment all versions ; SAP NetWeaver all versions


IDocConversionException, IDOC_ERROR_FIELD_CONVERSION, YYYYMMDD, YYYY-MM-DD, MMDDYYYY, DDMMYYYY, IDoc, class, library, date, format , KBA , BC-MID-CON-JCO , Java-Connector , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.