cancel
Showing results for 
Search instead for 
Did you mean: 

Error due to change in length at the backend

former_member187658
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member187658
Participant
0 Kudos

Hi

I restarted the server, and also as a last resort, i created the whole application again, but still the same error is coming.

Thanks & regards,

anupreet

Former Member
0 Kudos

Is it working in the R/3 side ?

former_member187658
Participant
0 Kudos

Hi Bharathwaj

Yeh on the R/3 side, when it runs, it shows properly.

Thanks & regards,

anupreet

Former Member
0 Kudos

Try restarting the server to clear the cache. Other way out would be to delete the model and do a fresh model import.