on 01-06-2009 2:24 PM
Hello,
I have scenario SOAP --> PI --> ECC (Proxy). In the interface, one field has type of xsd:time. When I sent message without specifying timezone in the field (like 07:03:14), the scenario works fine. However when I send msg with timezone like 07:03:14-05:00, the ECC system can't handle it saying Value 07:03:14-05:00 is not a valid date in accord with the XML format for ABAP Kernel ErrorId: CONVT_NO_TIME. In the MONI of PI, things seem ok, the error message is seen in the MONI of the ECC system where proxy is generated.
Has anyone experienced similiar problem, why SAP system can not handle timezone.
Thanks
Jayson
The format of time expected by abap server proxy is hh:mm:ss. Any othe additional value will throw this error. In the mapping step, you will have to remove the additional time zone value. This won't be supported by time field.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prateek
this is a problem. This means I have to write a java mapping to convert all local time to GMT time which could be time consuming. So:
1) This is a SAP bug in my opinion, does SAP provide any solution for itÉ
2) Anyone knows any java code that can convert xsd:time to GMT time?
Thanks
Jayson
Hi Prateek
this is a problem. This means I have to write a java mapping to convert all local time to GMT time which could be time consuming. So:
1) This is a SAP bug in my opinion, does SAP provide any solution for itÉ
2) Anyone knows any java code that can convert xsd:time to GMT time?
Thanks
Jayson
Hi Prateek
this is a problem. This means I have to write a java mapping to convert all local time to GMT time which could be time consuming. So:
1) This is a SAP bug in my opinion, does SAP provide any solution for itÉ
2) Anyone knows any java code that can convert xsd:time to GMT time?
Thanks
Jayson
Hi Jayson
Yes this is a limitation with ABAP proxy
While mapping XSD to ABAP
xsd:time is mapped to TIMS which is capable to handle only HH:MM:SS
Similar kind of problem you can face with xsd:datetime as ABAP understand xsd:date and xsd:time as DATS and TIMS
Most of the times i ended up using xsd:string in proxy targets or Java UDF/Map
Check if this can help
import java.util.*;
import java.text.*;
public class DateToGMT {
public static void main(String[] args)throws Exception {
java.text.SimpleDateFormat format = new
SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
java.util.Calendar cal = Calendar.
getInstance(new SimpleTimeZone(0, "GMT"));
format.setCalendar(cal);
java.util.Date date = format.parse("2003-01-25 00:15:30");
System.out.println(date);
}
}
Thanks
Gaurav
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gaurav,
ABAP proxy could handle it, basically the proxy takes the xsd:time string and convert it to TIMS, unfortunately seems like the proxy takes the xsd:time string as is and passes to TIMS. The proxy should exam the xsd:time string, if timezone is included in it, it should either ignore it or convert it to GMT. Maybe this is the reason why SAP didn't do it, it doesn't / shouldn't make sure decision of either ignore or convert.
Anyway, I am asking for java code that can take the xsd:time string and convert to time of any timezone. basically method like:
public DateTime convertXSDTime(String xsdTime, TimeZone tz)
Remember xsdTime already contains timezone information.
Thanks
Jayson
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SAP cannot handle time zone, see note 839427 - Date and time modeling
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gaurav,
ABAP proxy could handle it, basically the proxy takes the xsd:time string and convert it to TIMS, unfortunately seems like the proxy takes the xsd:time string as is and passes to TIMS. The proxy should exam the xsd:time string, if timezone is included in it, it should either ignore it or convert it to GMT. Maybe this is the reason why SAP didn't do it, it doesn't / shouldn't make sure decision of either ignore or convert.
Anyway, I am asking for java code that can take the xsd:time string and convert to time of any timezone. basically method like:
public DateTime convertXSDTime(String xsdTime, TimeZone tz)
Thanks
Jayson
Actually the problem is: when the xml arrives at the ECC, the proxy tries to convert the xsd:time string (in my case it`s 07:03:14-05:00) to ABAP data type XSDTIME_T, this is the place where ABAP error occurs because proxy can`t handle timezone, I guess.
Is this a bug? is there a go around solution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prateek
this is a problem. This means I have to write a java mapping to convert all local time to GMT time which could be time consuming. So:
1) This is a SAP bug in my opinion, does SAP provide any solution for itÉ
2) Anyone knows any java code that can convert xsd:time to GMT time?
Thanks
Jayson
User | Count |
---|---|
88 | |
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.