cancel
Showing results for 
Search instead for 
Did you mean: 

Error CX_SY_CONVERSION_NO_DATE_TIME with value 99991231 when calling a WS

Former Member
0 Kudos

I'm calling a Web Service in a SAP system from an external program which is written in Java. I got exception CX_SY_CONVERSION_NO_DATE_TIME when I tried to pass value 99991231 to a date field Bapie1Maw1Rt-ListStTo.

Do you know other workarounds for this exception than using a simple CHAR(8) field as the parameter instead of a DATS field? I do not like the idea of copying the whole Bapie1Maw1Rt structure just because of this silly error...

Another possible solution would be to use a legal value (perhaps 29991231 is valid???) instead of 99991231 and then convert that value to 99991231. But this is clumsy as well. The 99991231 is not a constant in my Java program, it is input to the program.

What's your favorite workaround for this error?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

It turned out that the problem was not the value 99991231, but it was the format of the value. The WSDL clearly states that the format for type date is YYYY-MM-DD. Indeed, value 9999-12-31 does not produce an error!