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

Floating point to Date conversion

Former Member
0 Likes
3,056

Do any Function module is available for converting the floating point value into Date.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,283

hi,

Try this function module <b>CTCV_CONVERT_FLOAT_TO_DATE</b>

Regards,

Sailaja.

Do any Function module is available for converting the floating point value into Date.

2 REPLIES 2
Read only

Former Member
0 Likes
1,284

hi,

Try this function module <b>CTCV_CONVERT_FLOAT_TO_DATE</b>

Regards,

Sailaja.

Read only

Former Member
0 Likes
1,283

hi,

do this way ...

DATA : p_float TYPE f,
           p_date LIKE cawn-atwrt,
           p_flt LIKE cawn-atflv,
           p_dt LIKE sy-datum.
.
 
p_float = '2.006123100000000E+07'.
p_flt = p_float.
 
CALL FUNCTION 'CTCV_CONVERT_FLOAT_TO_DATE'
  EXPORTING
    float = p_flt
  IMPORTING
    date  = p_date.
 
WRITE : p_date TO p_dt DD/MM/YYYY.
 
WRITE : p_dt.