Sunday, December 19, 2010
Use the function module SAP_CONVERT_TO_XLS_FORMAT to download the internal table to an excel file.
DATA: t100_lines TYPE STANDARD TABLE OF t001 WITH DEFAULT KEY. PARAMETERS: p_file LIKE rlgrap-filename DEFAULT 'c:\tmp\test.xls'. SELECT * FROM t001 INTO TABLE t100_lines. CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT' EXPORTING i_filename = p_file TABLES i_tab_sap_data = t100_lines.
Followers
Popular Posts
- ABAP - ALV Report example with steps
- ABAP - Step by step tutorial on Smart Forms - Template Node
- ABAP - Sending email with pdf attachment
- SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
- SAP ABAP - CL_ABAP_CHAR_UTILITIES class usage
- ABAP - Multiple value selection from F4 help for SELECT-OPTIONS
- Execute ABAP Report using SUBMIT statement
- ABAP - Select all or Deselect all in ALV or Check box handling in ALV
- Web Dynpro ABAP ALV - ON_CLICK event
- ABAP - Dynamic WHERE clause
Thanks. Great help for beginners.
ReplyDelete:)