ALV2XLSX User Guide
ALV2XLSX User Guide
User guide
Hung Hoang (Hoangmanhung@gmail.com)
9/21/2010
ABAP CLASS ZCL_ALV2XLSX
Table of Contents
OVERVIEW .................................................................................................................................................... 2
DOCUMENTS................................................................................................................................................. 3
Attributes of the class: ZCL_ALV2XLSX .............................................................................................. 3
1 September 2010
ABAP CLASS ZCL_ALV2XLSX
Overview
Purpose:
You can use this class to export data on SAP ALV grid to xlsx / xls file format.
Main features:
Compatible with:
2 September 2010
ABAP CLASS ZCL_ALV2XLSX
Documents
Attributes of the class: ZCL_ALV2XLSX:
CONSTRUCTOR
You use this method to create a new document (sheet) in the Office Apps
INSERT_ROWS
You use this method to insert a numbers of empty rows into sheet.
3 September 2010
ABAP CLASS ZCL_ALV2XLSX
WRITE_CELL
You use this method to insert a value into a sheet cell w/o format.
WRITE_ROW
You use this method to insert an ABAP work area into a sheet line w/o format.
WRITE_TABLE
You use this method to insert a raw data table into sheet, at a specific position.
4 September 2010
ABAP CLASS ZCL_ALV2XLSX
WRITE_TABLE_LVC
You use this method to insert a data table into sheet with field catalog table (LVC), sort table (LVC), filter
table (LVC) like build an ALV grid.
5 September 2010
ABAP CLASS ZCL_ALV2XLSX
WRITE_TABLE_SLIS
You use this method to insert a data table into sheet with field catalog table (SLIS), sort table (SLIS), filter
table (SLIS) like build an ALV grid.
6 September 2010
ABAP CLASS ZCL_ALV2XLSX
WRITE_TABLE_ALV
You use this method to insert data got from ALV object (CL_GUI_ALV_GRID) into sheet.
7 September 2010
ABAP CLASS ZCL_ALV2XLSX
FORMAT_CELLS
You use this method to format sheet cells
8 September 2010
ABAP CLASS ZCL_ALV2XLSX
SAVE_DOCUMENT
You use this method save document on presentation server
CLOSE_DOCUMENT
You use this method to close document and release data.
9 September 2010
ABAP CLASS ZCL_ALV2XLSX
Appendix
Structure: SOI_FORMAT_ITEM
COLOR PALETTE:
1 2 3 4 5 6
7 8 9 10 11 12
13 14 15 16 17 18
19 20 21 22 23 24
25 26 27 28 29 30
31 32 33 34 35 36
37 38 39 40 41 42
43 44 45 46 47 48
9 50 51 52 53 54
55 56 57
10 September 2010