Hi Hasmukh,
* Inorder to Upload Excel file to Sap ..Please follow these below steps..
1.First declare Internal table with the required fields.
2.Then declare type pools and internal table to hold excel data.
TYPE-POOLS : TRUXS.
DATA : IT_RAW TYPE TRUXS_T_TEXT_DATA.
3.Call function module to upload data to Raw table and convert it.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
* I_FIELD_SEPERATOR =
I_LINE_HEADER = 'X'
i_tab_raw_data = it_raw
i_filename = p_file
TABLES
i_tab_converted_data = it_final
* EXCEPTIONS
* CONVERSION_FAILED = 1
* OTHERS = 2
.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
Regards,
Rohan