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

Type Decimal in ABAP

Former Member
0 Likes
69,814

Hi All,

Data : var1 type zdec. (here zdec is of type decimal with length 5)

var1 = 1,234.

Now i want only two places after decimal. Which means (1,23). How can i do this ? Please suggest if there is any function Module

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
20,487

data: var1(5) type p decimal 2.

This will solve your problem.

please take F1 help for such issues.

Regards

Suvendu

4 REPLIES 4
Read only

Former Member
0 Likes
20,488

data: var1(5) type p decimal 2.

This will solve your problem.

please take F1 help for such issues.

Regards

Suvendu

Read only

Former Member
0 Likes
20,487

data: variable(5) type p decimal 2.

Read only

Former Member
20,487

hi john,

data var1(5) type p decimals 2.

bt this a basic question

thanks

shivraj

Read only

monika_eggers
Product and Topic Expert
Product and Topic Expert
20,487

Both the solution marked as correct and the one marked as helpful are wrong, and the one that is not marked as correct or helpful is right: It's DECIMALS, not DECIMAL.