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

Variable-data type

Former Member
0 Likes
641

Hi,

I was facing a problem of a variable.,..

I need to display the minus value and also the decimal values from a variable..In what data type can i declare..

sample prgm if possible plz

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
616

data : l_var(10) type c,

l_var2 type p decimals 2.

Use any of the above.

3 REPLIES 3
Read only

Former Member
0 Likes
617

data : l_var(10) type c,

l_var2 type p decimals 2.

Use any of the above.

Read only

Former Member
0 Likes
616

Hi Mahesh

Sample program for you.

DATA v_data TYPE p DECIMALS 2.

v_data = -5.

WRITE v_data.

Regards

Wiboon

Read only

Former Member
0 Likes
616

hi

good

there is no specific data type to display the minus value or the decimal value,yes you can declare them as character type and use as per your requirement.

thanks

mrutyun^