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

conversion

SG141
Active Participant
0 Likes
392
How to convert this number 
l_date = 2.0040101000000000E+07  (FLTP type)
to date format.
1 ACCEPTED SOLUTION
Read only

ferry_lianto
Active Contributor
0 Likes
361

Hi,

Please use FM CTCV_CONVERT_FLOAT_TO_DATE.


DATA: FLOAT TYPE CAWN-ATFLV VALUE '2.0040101000000000E+07',
      DATE  TYPE CAWN-ATWRT.
                                        
CALL FUNCTION 'CTCV_CONVERT_FLOAT_TO_DATE'
  EXPORTING
    FLOAT = FLOAT
  IMPORTING
    DATE  = DATE.
                                               
WRITE: / DATE.

Regards,

Ferry Lianto

1 REPLY 1
Read only

ferry_lianto
Active Contributor
0 Likes
362

Hi,

Please use FM CTCV_CONVERT_FLOAT_TO_DATE.


DATA: FLOAT TYPE CAWN-ATFLV VALUE '2.0040101000000000E+07',
      DATE  TYPE CAWN-ATWRT.
                                        
CALL FUNCTION 'CTCV_CONVERT_FLOAT_TO_DATE'
  EXPORTING
    FLOAT = FLOAT
  IMPORTING
    DATE  = DATE.
                                               
WRITE: / DATE.

Regards,

Ferry Lianto