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. 

1 comment:

Your useful comments, suggestions are appreciated.Your comments are moderated.

Followers

Contact Form

Name

Email *

Message *

Web Dynpro ABAP Book

An SAP Consultant

Follow US


Want to Contribute ?

If you are interested in writing about the new stuff you learn everyday while working, please write to the.sap.consultants@gmail.com.

Click on Contribution for more details.