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

arithmetical operation

Former Member
0 Likes
607

Dear friends,

is it possible to perform an arithmetical operation

if a data type is NUMC ?

If it is not possible what is the solution

perform an arithmetical operation ?

regards

ertas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
579

Hi,

Try using packed decimals for arithmatic operations. They handle decimals as well which a numc wont allow.

the declaration is

data : v_abc type p decimals 2.

Thanks

Nayan

Dear friends,

is it possible to perform an arithmetical operation

if a data type is NUMC ?

If it is not possible what is the solution

perform an arithmetical operation ?

regards

ertas

3 REPLIES 3
Read only

Former Member
0 Likes
579

Declare the data type as i.

data : l_count type i.

Best regards,

Prashant

Read only

Former Member
0 Likes
580

Hi,

Try using packed decimals for arithmatic operations. They handle decimals as well which a numc wont allow.

the declaration is

data : v_abc type p decimals 2.

Thanks

Nayan

Read only

Former Member
0 Likes
579

U can do arithmetic operation if a variable is of type N ..