11-26-2014 11:52 AM
Hello,
I have got a difficult question to ask:
I have got a WebService that crashes every time it receives a TIMS variable with initial value.
As far as I know, initial values of TIMS variables, in SAP, are set internally as blank spaces (hexadecimal: "202020202020").
When XML is received, it crashes. It receives " : : " (hexadecimal: "20203A20203A2020") as initial value and cannot be parsed.
Does anyone know how can I solve it?
Also, does it mean that 12:00:00PM should be stored as 24:00:00 and I have to force initial values as "000000"?
Many thanks,
Eloi
11-26-2014 11:57 AM
Hi.
Time is a 6 chars in ABAP.
You can try to assign a value such 999999 as null value.
Hope to help
Bye
11-26-2014 11:57 AM
Hi.
Time is a 6 chars in ABAP.
You can try to assign a value such 999999 as null value.
Hope to help
Bye
11-26-2014 12:40 PM
11-26-2014 1:00 PM
Well I think you have to manage the situation. XML will probably never accept a null value for a TIME field cause the conversion function will always traduce that in NULL value and error.
IF XML is generated from ABAP you could change the transformation (STRANS) adapting to a situation where "when time is 999999" don't create Time field in XML. The problem is in the interface betweeb sap and xml output. If you can change the interface (created for example in java), tell to use the function getValidDimension for this field that creates problems.
Hope to help.