cancel
Showing results for 
Search instead for 
Did you mean: 

DateTimeAccessException: Type conversion error for Time field

Former Member
0 Kudos

Hi All

I am getting exception on executing a model in rfc for TIME field. The ABAP type is TIMS and I checked the time is being returned properly from ECC in the format hh:mm:ss.

The rfc is custom developed and returns three tables in output in different calls. all the tables have time fields. All these calls were running fine till yesterday and even one is working fine now also. But for the other two tablesl I am getting exception now at the generated JAVA classes.

com.sap.aii.proxy.framework.core.DateTimeAccessException: Type conversion error, field Claim_Time,

at com.sap.aii.proxy.framework.core.JcoBaseTypeData.getElementValueAsTime(JcoBaseTypeData.java:723)

at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.getAttributeValueAsTime(DynamicRFCModelClass.java:458)

at com.stw.prc.ses.util.model.Zprce019_L1_Log.getTime(Zprce019_L1_Log.java:239)

at com.stw.prc.ses.util.model.comp.wdp.IPublicSesModelCompInterface$IT_L1_ErrorElement.wdGetObject(IPublicSesModelCompInterface.java:2272)

at com.sap.tc.webdynpro.progmodel.context.MappedNodeElement.wdGetObject(MappedNodeElement.java:351)

Could any one help me out here ?

Thanks

Sudip

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Monalisa

I have already checked that, none of the records have unformatted time value.

Thanks

Sudip

monalisa_biswal
Contributor
0 Kudos

hi Sudeep,

Check if any of the record has blank value in time field. In that scenario it might give exception.

You have to convert it to 00:00:00 before passing to Webdynpro.

Hope this helps!

Monalisa