cancel
Showing results for 
Search instead for 
Did you mean: 

DataAccessException : Error !!

Former Member
0 Kudos

I'm getting the following error in my application:

"<b>com.sap.aii.proxy.framework.core.DataAccessException: Type conversion error, field CURR_MNTH_FACTOR, complex type class com.bp.ngl.cust.contractqtymodel.Zsm_Fix_Prebuy</b>"

Here the CURR_MNTH_FACTOR, is one of the variable which i'm reading from the Structure Zsm_Fix_Prebuy. The variable is of type Decimal (more precisely its a user defined ZDEC).

I'm writing following lines of code.


IPublicNodeLiPricesComp.ILi_Fixed_FactorElement fixedElement;
int fixedCount = 0;
    			
fixedElement = wdContext.nodeContract_Quantity_Input().nodeOutput_Contract_Qty().nodeLi_Fixed_Factor().getLi_Fixed_FactorElementAt(fixedCount);
			    BigDecimal fixF = fixedElement.getCurr_Mnth_Factor();

When I'm running the application then its giving me the above mentioned error.

I'm not able to find the reason of error. If someone can shed some light on it. I'll be grateful.

Thanks in advance

Srikant

Accepted Solutions (1)

Accepted Solutions (1)

Yashpal
Active Contributor
0 Kudos

Hi,

post the full stack trace of application.

yashpal

Former Member
0 Kudos

Hi Srikanth,

Have you made any changes in the model after you have imported it. Usually in such cases this error will come.

Also ensure that the rfc is working fine from R3

Regards

Rohit

Answers (1)

Answers (1)

Former Member
0 Kudos

Reimport of model worked