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: 

date conversion

madan_ullasa
Contributor
0 Kudos

hi frnds,

i want to convert a date field to type f..i could do that.. but the same value in database in table ausp is different.

ATFLV = 2.006103100000000E07 in ausp table.. it has 8 "0's" between 1 and E... but when i convert sy-datum to type f it comes as 2.0061028000000000E07.... that is 9 "0's" between 8 and E... why is that ?

Points assured to all replies..

Regards,

Madan..

1 REPLY 1

Clemenss
Active Contributor
0 Kudos

Hi,

the only difference is the accuracy. The number of trailing zeros does not change the value of a type F variable at all.

Possibly one is with and the other without sign allowing one more decimal.

Don't worry 2.006102800000000E+07 =

2.0061028000000000E+07 =

20061028

The only difference is the representation.

Better try GET TIMESTAMP concept.

Regards,

Clemens

Clemens