on 08-08-2007 8:36 AM
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.