Beruflich Dokumente
Kultur Dokumente
FORM EXCEL_UPLOAD .
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME
= P_FILE
I_BEGIN_COL
= V_BCOL
I_BEGIN_ROW
= V_BROW
I_END_COL
= V_ECOL
I_END_ROW
= V_EROW
TABLES
INTERN
= TA_EXCEL
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE
= 2
OTHERS
= 3.
ENDFORM.
" EXCEL_UPLOAD
4. Write logic to convert the excel file to SAP file format?? why we need conversion???
Usually, while we are getting the file in excel format through the function module, the table is in the
format of row, column and value.
So we need to convert them in internal table format. for that below coding is used: