‎2009 Apr 13 7:04 AM
Hello experts,
I am trying to upload excel using Desktop Office Integration(DOI). Total no. of columns in excel is fixed but the no. of rows can vary at deifferent instance. Since the report can run in background as well, I cannot ask the user to enter total no. of records to be uploaded. I tried different method available in interface i_oi_spreadsheet but I am not able get the desired functionality.
Regards,
Amit
‎2009 Apr 13 7:29 AM
Dear
If u just need to upload data from your desktop to your report this u can done by using
some FM
GUI_upload
TEXT_CONVERT_XLS_TO_SAPif this is your problem i think it would help .
Ankit
‎2009 Apr 13 7:42 AM
Hi,
Use this function Module,
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_line_header = 'X'
i_tab_raw_data = it_raw
i_filename = p_file
TABLES
i_tab_converted_data = it_sheader
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Rgds
siva