Hi San,
Use open dataset and read dataset for reading from application server.
Use code as below :
DATA: lv_excel_sep TYPE x VALUE '09'.
OPEN DATASET lv_apserv_path FOR INPUT IN TEXT MODE ENCODING DEFAULT. " LV_APSERV_PATH contains the path in application server where " the file is there. You can get this using AL11.
IF sy-subrc EQ 0.
DO.
READ DATASET lv_apserv_path INTO lv_data.
IF sy-subrc NE 0.
EXIT.
ELSE.
PERFORM apserv_data_split USING lv_data. " In subroutine, Splitting LV_DATA at comma(If CSV file) or at LV_EXCEL(If Excel file) into " respective fields of Local Structure ls_data and append to internal table itab_data.
ENDIF.
ENDDO.
ENDIF.
CLOSE DATASET lv_appath.
Also please check this link How to Read Excel file from Application or Presentation Server and Download into Internal Table - ABAP Development - SCN…
Hoping this helps.
Regards,
Sheetal.