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

data type

Former Member
0 Likes
336

Hi experts

I have problem with the data type declarations

for ex itab-netpr value 1.00 and itab-menge value is 4.00

when multiplying i am getting 400.00 instead of 4.00 in the result field

pls advice which datatype i need to use for the result field

2 REPLIES 2
Read only

Former Member
0 Likes
319

hi

use type p decimals 2.

thanks

Read only

0 Likes
319

Hi

thanks for replying , I used tye p decimals 2 but i problem not solved

i declared like

data : totval1 type p decimals 2.

data : totval2 type p decimals 2.

data : totval3 type p decimals 2.

totval1 = itab-menge. here menge value is 4.00 but totval1 contains value 40.00

pls advice

thanks in advance

karthik