Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Currency field calculation problem.

Former Member
0 Kudos

Dear friends,

I am trying to calculate one variable that is multiplyied

by other.

One is 97.087 that is multiply by dmbtr field.

Dmbtr field is currency with 2 decimal places.

Now when i am trying to multiply 97.087 to dmbtr field.

System is showing me the error.

and when i am doing by 97 to dmbtr field.

System is showing me no error.

please help.

Thanks and Regards

vivek

4 REPLIES 4

Former Member
0 Kudos

What's the error message?

What's your code?

Either your field is defined incorrectly or the length is too short to hold the result.

0 Kudos

friend,

this is the code that i am writing.

wa_output-AMT1 = wa_output-dmbtr.

wa_output-AMT11 = wa_output-AMT1 * ( 97.087 / 100 ) .

error message is:

Incomplete arithmetic expression: ")" missing at end of statement.

please help.

0 Kudos

may be try it as,

wa_output-AMT11 = ( wa_output-AMT1 * ( 97.087 / 100 ) ).

regards,

Padma.

Former Member
0 Kudos

thanks