on 01-31-2012 11:06 AM
Hi,
we provide a webservice to some (anonymous) clients. Occasionally the date-format in some of the incoming messages is not correct.
Sometimes we get illegal characters in the date like <FORM_GEN_TIME>۱۶:۳۴:۰۴</FORM_GEN_TIME> and sometimes the seconds are missing like <FORM_GEN_TIME>13:57</FORM_GEN_TIME>.
These errors give us a problem when parsing the data to ABAP.
We already have a mapping in the application and probably we can solve this in a mapping. Since I am not into Java, I wonder if someone can provide me with a function I can use in our mapping to solve this: check the illegal characters, check the length of the time and correct it only when necessary.
Thanks for helping.
Kris
Hi,
can you use the lenght function to check the length only ? should be ok for the two cases you've mentioned
>>>I can use in our mapping to solve this: check the illegal characters, check the length of the time and correct it only when necessary.
you should not change automaticaly in the mapping - issue a mapping error and change manually in such cases...
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.