Skip to Content
avatar image
Former Member

DateTimeAccessException: Type conversion error for Time field

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 27, 2009 at 01:34 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 27, 2009 at 01:46 PM

    Hi Monalisa

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

    Thanks

    Sudip

    Add comment
    10|10000 characters needed characters exceeded