Application Development and Automation 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: 
Read only

Increase Decimal Points

Former Member
0 Likes
1,559

Hi All ,

my req is to increase decimal places.

I have variable Lv_qty type EKPO-MENGE

its has only 2 decimal places .

but i want 10 decimal places in calculation

PO item Value is

= (net price )1400 * (Conversion factor ) 0.0133333333 * (ord qty)252

= 18.66666662

=4703.99998824 =4704 usd

According to my report ,the conversion factor comes to 0.013 ( i.e. field length = 5 instead of std field length for numeric field which equals to 12 )

PO item Value = 1400 *0.013 *252

=4586.40 usd

here I want to print PO item Val = 4703.99998824 =4704 usd

6 REPLIES 6
Read only

Former Member
0 Likes
1,124

declare a variable with 10 decimals ..

data : v_p type p decimals 10.

Read only

Former Member
0 Likes
1,124

hi,

declare it as type P


data : v_menge type p decimals 10.

Read only

Former Member
0 Likes
1,124

HI,

The data type of the final variable should be p decimals 10.

Best of luck,

Bhumika

Read only

Former Member
0 Likes
1,124

hi,

In this case u need to create the variable type decimal and length..10.

try this , let us know the result...

pradeep

Read only

Clemenss
Active Contributor
0 Likes
1,124

Hi gs p,

for any calculations put result to a field TYPE f. This will use as many digits as possible. The result may be stored afterwards to a TYPE field with number of digits you want.

Regards,

Clemens

Read only

Former Member
0 Likes
1,124

Presently, I have 2 decimal please on my Purchase Orders. it is possible to increase the value decimal places to more than 2?

eg: 1.232345678