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: 

regarding 1.7

Former Member
0 Kudos

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

JozsefSzikszai
Active Contributor
0 Kudos

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

3 REPLIES 3

former_member181995
Active Contributor
0 Kudos

Fm Round?

JozsefSzikszai
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.