‎2009 Jul 30 6:46 AM
Hi Guruji,
In ECC 4.6 we are using funtion module 'Upload' for upload the data from files to internal table.
But In ECC 6.0 what is the function module we are using to upload the the data from files to internal table in place of 'upload'.
Thanks.
‎2009 Jul 30 6:52 AM
‎2009 Jul 30 6:52 AM
‎2009 Jul 30 7:04 AM
‎2009 Jul 30 7:13 AM
Hi,
By using "GUI_UPLOAD", "TEXT_CONVERT_XLS_TO_SAP" to upload the data from flat file .Also applicable for UPLOAD ,WS_UPLOAD in ECC 6.0
you have to pass the values like your reference
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = UP_FILE
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
DAT_MODE = 'D'
TABLES
DATA_TAB = ITAB.
if you are move from excel means,
DATA: IT_RAW TYPE TRUXS_T_TEXT_DATA.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
I_FIELD_SEPERATOR = 'X'
i_line_header = 'X'
I_TAB_RAW_DATA = IT_RAW
I_FILENAME = W_FILE
TABLES
I_TAB_CONVERTED_DATA = IT_DATA
I hope,it will help you
<=<< Sharing Knowledge is a way to Innovative >>=>
By,
Yoga
‎2009 Jul 30 7:17 AM
‎2009 Jul 30 8:38 AM
HI,
check the below mentioned link will help you to upload data from file to internal table.
http://diocio.wordpress.com/2007/02/12/sap-upload-tab-delimited-file-from-pc-into-internal-table/
OR
Use FM "u2018TEXT_CONVERT_XLS_TO_SAPu2019 to convert the excel file into internal table.
Regards,
Sunil
‎2009 Jul 30 8:59 AM
Hi,
Make use of FM GUI_UPLOAD or the method GUI_UPLOAD of class CL_GUI_FRONTEND_SERVICES.
Regards,
Ankur Parab