on 07-03-2010 9:19 PM
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?
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.