‎2006 Jul 11 9:39 AM
Hi all,
I am trying to upload excel sheet data into ITAB.
Unfortunately, in my SAP system there aren't 'ALSM_EXCEL_TO_INTERNAL_TABLE', TEXT_CONVERT_XLS_TO_SAP' and 'SAP_CONVERT_TO_CSV_FORMAT' FM.
Can u help me?
Thanks
Agata
‎2006 Jul 11 9:40 AM
Hi agatar,
1. In that case,
2. Its best to save the excel file
as TAB DELIMITED FILE
(using excel only)
3. then upload the file using
GUI_UPLOAD FM.
regards,
amit m.
‎2006 Jul 11 9:40 AM
Hello,
I can use this Fm KCD_EXCEL_OLE_TO_INT_CONVERT
call function 'KCD_EXCEL_OLE_TO_INT_CONVERT'
exporting
filename = i_filename
i_begin_col = l_begin_col
i_begin_row = l_begin_row
i_end_col = l_end_col
i_end_row = l_end_row
tables
intern = xt_intern
exceptions
INCONSISTENT_PARAMETERS = 201
UPLOAD_OLE = 201.
if sy-subrc <> 0.
e_subrc = sy-subrc.
exit.
endif.
If useful reward points,
Regards,
Vasanth
‎2006 Jul 11 11:39 AM
‎2006 Jul 11 9:42 AM
‎2006 Jul 11 9:44 AM
‎2006 Jul 11 9:42 AM
‎2006 Jul 11 9:44 AM
Hi,
if none of them are available then save the excel sheet as Tab Delimited text file and then Upload using the <b>GUI_UPLOAD</b> FM.
Regards
vijay
‎2006 Jul 11 9:47 AM
Hi,
Copy the Excel file data into text file and save the file with '.txt' format and use FM : GUI_UPLOAD to upload the text file.
or check for below FM's :
UPLOAD,WS_UPLOAD
Regards
Appana
Message was edited by: L Appana
‎2006 Jul 11 9:47 AM
Hi,
Very simple way to upload the excel file to internal table is using FM 'GUI_UPLOAD'.
For Eg,
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = logfile-pc_file
FILETYPE = 'DAT'
HAS_FIELD_SEPARATOR = 'X'
tables
data_tab = itab_excel
EXCEPTIONS
OTHERS = 1.
Thanks,
Neptune.M
Plz reward if it helps.
‎2006 Jul 11 10:25 AM
save the file in txt mode and upload it thru GUI_Upload fnmodule