cancel
Showing results for 
Search instead for 
Did you mean: 

time attribute question

Former Member
0 Kudos

Hi All,

I'v a model structure and in which there is a time attribute.

I try to give it a value by the following statement:

projData.setAttributeValue("Chgtime", new Time(System.currentTimeMillis()));

But when I call the rfc to save it , I got the following error.

What would be the problem or how time is set in thhis case?

Thanks,

yung siu wai

-


com.sap.aii.proxy.framework.core.DateTimeAccessException: Type conversion error, field CHGTIME, complex type class hk.com.clpgroup.ewms.rpi.rpimodel.Zpsrpidat_Interf

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 hk.com.clpgroup.ewms.rpi.rpimodel.Zpsrpidat_Interf.getChgtime(Zpsrpidat_Interf.java:194)

at hk.com.clpgroup.ewms.rpi.wdp.IPublicProjectInquiryCust$ITab_DataElement.wdGetObject(IPublicProjectInquiryCust.java:8600)

at com.sap.tc.webdynpro.progmodel.context.NodeElement.getAttributeValue(NodeElement.java:868)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Please have a look at this.

regards

LNV

Former Member
0 Kudos

Hi VLN,

My problem is exactly what is described on this link that the R3 data is "::".

The statement is fine and I did an refetch after the save and it encountered the invalid data during the fetching.

Thanks,

yung siu wai

Answers (1)

Answers (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

Use this line of code

projData.setChgtime(new Time(System.currentTimeMillis());

before assigning value just check what type of parameter does setChgtime() receive.

Regards

Abhimanyu L