on 09-23-2005 6:13 AM
Hi
I have an application, where on the click of a button, data is fetched from the R/3 and displayed in the table. Previously when the length of one of the field was set as 4 in the backend, the data was being shown properly without any errors. But when the length of that field was changed from 4 to 30 , since then it is giving an error:
com.sap.aii.proxy.framework.core.DataAccessException: Type conversion error, field BASE_PRICE, complex type class com.sap.bp.ngl.pr.model.Zspricelist
at com.sap.aii.proxy.framework.core.JcoBaseTypeData.propagateJcoException(JcoBaseTypeData.java:130)
at com.sap.aii.proxy.framework.core.JcoBaseTypeData.getElementValueAsBigDecimal(JcoBaseTypeData.java:654)
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.getAttributeValueAsBigDecimal(DynamicRFCModelClass.java:254)
at com.sap.bp.ngl.pr.model.Zspricelist.getBase_Price(Zspricelist.java:134)
at com.sap.bp.ngl.pr.wdp.IPublicSupplierPricingReportComp$ILi_Price_ListElement.wdGetObject(IPublicSupplierPricingReportComp.java:996)
at com.sap.tc.webdynpro.progmodel.context.MappedNodeElement.wdGetObject(MappedNodeElement.java:351)
at com.sap.tc.webdynpro.progmodel.context.AttributePointer.getObject(AttributePointer.java:140)
at com.sap.tc.webdynpro.clientserver.data.DataContainer.getAndFormat(DataContainer.java:1012)
at com.sap.tc.webdynpro.clientserver.data.DataContainer.getAndFormat(DataContainer.java:984)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.TextView.getText(TextView.java:733)
Even though i have reimported the model and tried. Probably it is because even though the length ahs been changed but still the previous one is being taken at the backend.
Can anybody please help as to what to do?
Thanks & regards,
Anupreet
Hi Anupreet,
does it work now?
Otherwise the problem may be that the value which is returned cannot be parsed correctly by BigDecimal:
> at
> t
> com.sap.aii.proxy.framework.core.JcoBaseTypeData.getEl
> ementValueAsBigDecimal(JcoBaseTypeData.java:654)
> at
> t
> com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCMo
> delClass.getAttributeValueAsBigDecimal(DynamicRFCModel
> Class.java:254)
Best regards,
Niels
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There are conversion routines available for some data types...
Might be that the conversion routine in the R/3 side is not working for a length of 30..
Did u try running the same in the R/3 side ?
Regards
Bharathwaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have you restarted the server after you reimport the model.The changes you make will not be reflected if you dont restart the server.
Regards,
Vijith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try restarting the server to clear the cache. Other way out would be to delete the model and do a fresh model import.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.