2009 Dec 02 12:45 PM
Dear Guru ,
I have encountered an issue which i am trying to resolve
I am using following custom code to display lists of the entries of <F_FS> in ALV GRID FORMAT
For display data in ALV GRID FORMAT i am using class cl_gui_alv_grid.
But the requirment is like this i have to show it in ALV LIST Display Format .
when i searched for class cl_gui_alv_list i found that Object Type CL_GUI_ALV_LIST does not exist
Please show me some guide line how to achieve this .....
DATA : gt_cust TYPE REF TO cl_gui_custom_container. "Custom Container
DATA : cust TYPE scrfname VALUE 'CC_OUTPUT'. "Custom controller
DATA : gt_grid TYPE REF TO cl_gui_alv_grid. "ALV List Viewer
FIELD-SYMBOLS : <f_fs> TYPE table. "FieldSymbol for holding fields
DATA : t_cat TYPE STANDARD TABLE OF lvc_s_fcat INITIAL SIZE 0."To hold Field Catalog
IF gt_cust IS INITIAL.
CREATE OBJECT gt_cust
EXPORTING
container_name = cust.
CREATE OBJECT gt_grid
EXPORTING
i_parent = gt_cust.
**--Display the data in the grid control
CALL METHOD gt_grid->set_table_for_first_display
EXPORTING
i_buffer_active = 'X'
i_bypassing_buffer = ' '
CHANGING
it_outtab = <f_fs>
it_fieldcatalog = t_cat
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4 .
IF sy-subrc <> 0.
ENDIF.
ENDIF.
2009 Dec 03 7:57 AM
2012 May 09 9:12 AM
| |||||
CL_SALV_COLUMNS_TABLE, | |||||
CL_SALV_COLUMN_TABLE, |