cancel
Showing results for 
Search instead for 
Did you mean: 

Check wrong date format in mapping PI

former_member185171
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

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