Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9369

Re: Problem with KCD_EXCEL_OLE_TO_INT_CONVERT

$
0
0

Hi Luis

 

Try with following function - TEXT_CONVERT_XLS_TO_SAP

This will work in all systems.

 

Example Code:

 

PARAMETERS: p-file like ibipparms-path default  'c:\sapdata\Timedata.xlsx'.

form UPLOAD_DATA .
  DATA: loc_filename TYPE rlgrap-filename.            "string.
  DATA: it_raw TYPE truxs_t_text_data.
  loc_filename = p-file.
  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING

*     I_FIELD_SEPERATOR    =

      i_line_header        = 'X'
      i_tab_raw_data       = it_raw       " WORK TABLE
      i_filename           = loc_filename
    TABLES
      i_tab_converted_data = timedata     "Timedata Exceptions
    EXCEPTIONS
      conversion_failed    = 1
      OTHERS               = 2.

endform. " UPLOAD_DATA

    

Regards.

Venkat


Viewing all articles
Browse latest Browse all 9369

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>