Dear all Abaper,
I'm beginer for abap about six month since my office implement sap. I've make abap program to get data from
any table of sap like vbak,vbap,ekko, ekpo etc to z table.
Now i want to get data from excel or text file to append in ztable. I've learn about LSMW but not yet found
how to import to z table. LSMW have standart template import to standart sap table.
Could abap guru help me to solve this problem?
Regards
Wili
hello sir use function module ALSM_EXCEL_TO_INTERNAL_TABLE
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE' EXPORTING FILENAME = FILE_PATH ( location of the file lets say 'c:\my_file.xls'). I_BEGIN_COL = '1' coloum postion of your exel file from where data strats I_BEGIN_ROW = '3' row postion of your exel file from where data strats I_END_COL = '3' coloum postion of your exel file from where data ends I_END_ROW = '256' row postion of your exel file from where data ends TABLES INTERN = IT_FILE ( internal table) EXCEPTIONS INCONSISTENT_PARAMETERS = 1 UPLOAD_OLE = 2 OTHERS = 3. IF SY-SUBRC NE SPACE.
regards
chitta ranjan mahato
Edited by: chitto123 on Oct 15, 2010 7:15 AM
Add a comment