Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Display ALV List in Object Oriented Method

former_member191434
Participant
0 Kudos
453

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.

2 REPLIES 2

former_member191434
Participant
0 Kudos
144

No solution found

0 Kudos
144
RECL_SALV_TABLE,     
  CL_SALV_COLUMNS_TABLE,
  CL_SALV_COLUMN_TABLE,