2009 May 18 5:44 PM
I am working on a report where I have to use CL_SALV_TABLE to generate an ALV Report. One of the requirements of this report is to Display certain text at END_OF_LIST.
I would appreciate if someone can help me locating a detailed "Help" document on usage of CL_SALV_TABLE to create ALV report so that I can accomplish this request.
Thanks,
Yogesh
2009 May 18 5:50 PM
HI,
Here is the example code
REPORT ztest.
DATA: ispfli TYPE TABLE OF spfli.
DATA: gr_table TYPE REF TO cl_salv_table.
data: gr_funct type ref to cl_salv_functions.
data: gr_columns type ref to cl_salv_columns_table.
data: gr_column type ref to CL_SALV_COLUMN_table.
START-OF-SELECTION.
SELECT * INTO TABLE ispfli FROM spfli.
TRY.
CALL METHOD cl_salv_table=>factory
IMPORTING
r_salv_table = gr_table
CHANGING
t_table = ispfli.
CATCH cx_salv_msg .
ENDTRY.
gr_funct = gr_table->get_functions( ).
gr_funct->set_all( Abap_True ).
gr_columns = gr_table->get_columns( ).
gr_column ?= gr_columns->Get_Column( 'DISTANCE' ).
gr_column->SET_VISIBLE( abap_false ).
gr_table->display( ).
http://abap-explorer.blogspot.com/2008/07/important.html
Thanks
Sudheer
I am working on a report where I have to use CL_SALV_TABLE to generate an ALV Report. One of the requirements of this report is to Display certain text at END_OF_LIST.
I would appreciate if someone can help me locating a detailed "Help" document on usage of CL_SALV_TABLE to create ALV report so that I can accomplish this request.
Thanks,
Yogesh
2009 May 18 5:50 PM
HI,
Here is the example code
REPORT ztest.
DATA: ispfli TYPE TABLE OF spfli.
DATA: gr_table TYPE REF TO cl_salv_table.
data: gr_funct type ref to cl_salv_functions.
data: gr_columns type ref to cl_salv_columns_table.
data: gr_column type ref to CL_SALV_COLUMN_table.
START-OF-SELECTION.
SELECT * INTO TABLE ispfli FROM spfli.
TRY.
CALL METHOD cl_salv_table=>factory
IMPORTING
r_salv_table = gr_table
CHANGING
t_table = ispfli.
CATCH cx_salv_msg .
ENDTRY.
gr_funct = gr_table->get_functions( ).
gr_funct->set_all( Abap_True ).
gr_columns = gr_table->get_columns( ).
gr_column ?= gr_columns->Get_Column( 'DISTANCE' ).
gr_column->SET_VISIBLE( abap_false ).
gr_table->display( ).
http://abap-explorer.blogspot.com/2008/07/important.html
Thanks
Sudheer
2009 May 18 5:58 PM
You mean, other than this help?
http://help.sap.com/saphelp_nw2004s/helpdata/en/6b/48fd406b8af16fe10000000a1550b0/frameset.htm
Regards,
Rich Heilman
2009 May 18 8:28 PM
Check this from SAP help: [Display List Header and Footer |http://help.sap.com/saphelp_nw04/helpdata/en/37/d0ee406b657e7fe10000000a1550b0/frameset.htm]
You can also visit: [SALV Table Display - Add Header & Footer|http://help-abap.blogspot.com/2008/09/salv-model-5-add-header-top-of-page.html]
Regards,
Naimesh Patel
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |