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: 

Type Decimal in ABAP

Former Member
0 Kudos

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

Former Member
0 Kudos

data: var1(5) type p decimal 2.

This will solve your problem.

please take F1 help for such issues.

Regards

Suvendu

4 REPLIES 4

Former Member
0 Kudos

data: var1(5) type p decimal 2.

This will solve your problem.

please take F1 help for such issues.

Regards

Suvendu

Former Member
0 Kudos

data: variable(5) type p decimal 2.

Former Member

hi john,

data var1(5) type p decimals 2.

bt this a basic question

thanks

shivraj

monika_eggers
Active Participant

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.