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: 

Variable-data type

Former Member
0 Kudos

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

former_member223537
Active Contributor
0 Kudos

data : l_var(10) type c,

l_var2 type p decimals 2.

Use any of the above.

3 REPLIES 3

former_member223537
Active Contributor
0 Kudos

data : l_var(10) type c,

l_var2 type p decimals 2.

Use any of the above.

Former Member
0 Kudos

Hi Mahesh

Sample program for you.

DATA v_data TYPE p DECIMALS 2.

v_data = -5.

WRITE v_data.

Regards

Wiboon

Former Member
0 Kudos

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^