Hi Guys,
I wonder if there is anyone out there with a better solution.
I have a generic extractor wich extract data via a field which is a floating point (FLTP) type (value is 2,0140115000000000E+07) and I am trying to pass the value into a DSO infoobject of type DATE (value to be like 15.01.2014).. Within the transformation rule I have create a routine calling CTCV_CONVERT_FLOAT_TO_DATE function module to convert the FLTP data value to DATE, as per the code below.
however this function module does not seem to be able to deliver the FLTP type date in the desired DATE format.and make the data available for reporting in BI.
Does anyone out there know of a better alternative solution that would make the conversion of FTLP data type to DATE in BI?
DATA: D_FLOAT TYPE F,
D_DATE TYPE C,
D_FLT LIKE SOURCE_FIELDS-Z_CERT_DATE,
D_DT LIKE SY-DATUM.
D_FLOAT = SOURCE_FIELDS-Z_CERT_DATE_V.
D_FLT = D_FLOAT.
IF SOURCE_FIELDS-Z_CERT_DATE NE ' '.
CALL FUNCTION 'CTCV_CONVERT_FLOAT_TO_DATE'
EXPORTING
FLOAT = D_FLT
IMPORTING
DATE = D_DATE.
D_DT = D_DATE.
RESULT = D_DT.
ENDIF.