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

regarding 1.7

Former Member
0 Likes
648

i experts,

in the variable mydecimal which is of type p

i m sroring the value 1.7 in this now i have to transfer

only 1 to some variable which is of char type ,but it is

only transferring * ,plz help me to solve this,

i need to transfer only 1.

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
611

hi,

pls. have a look at the following sample:

DATA : p TYPE p DECIMALS 3 VALUE '1.5'.
DATA : c(10) TYPE c.

c = FLOOR( p ).

hope this helps

ec

i experts,

in the variable mydecimal which is of type p

i m sroring the value 1.7 in this now i have to transfer

only 1 to some variable which is of char type ,but it is

only transferring * ,plz help me to solve this,

i need to transfer only 1.

3 REPLIES 3
Read only

Former Member
0 Likes
611

Fm Round?

Read only

JozsefSzikszai
Active Contributor
0 Likes
612

hi,

pls. have a look at the following sample:

DATA : p TYPE p DECIMALS 3 VALUE '1.5'.
DATA : c(10) TYPE c.

c = FLOOR( p ).

hope this helps

ec

Read only

Former Member
0 Likes
611

Hi,

Please go through the [SAP Help on Conversion Rules for Elementary data types|http://help.sap.com/saphelp_47x200/helpdata/EN/fc/eb3434358411d1829f0000e829fbfe/frameset.htm]

Regards,

Swapna.