Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DATA:
- lo_table TYPE REF TO cl_salv_table,
- lo_functions TYPE REF TO cl_salv_functions_list.
- CALL METHOD cl_salv_table=>factory(
- IMPORTING
- r_salv_table = lo_table
- CHANGING
- t_table = lt_vals ).
- lo_functions = lo_table->get_functions( ).
- lo_functions->set_all( 'X' ).
- lo_table->display( ).
- * Entête
- data:
- lo_layout type ref to cl_salv_form_layout_grid,
- lo_label type ref to cl_salv_form_label.
- create object lo_layout.
- lo_label = lo_layout->create_label( row = 1 column = 1 ).
- lo_label->set_text( 'entête!' ).
- lo_table->set_top_of_list( lo_layout ).
- * Colonnes
- data:
- lo_columns type ref to cl_salv_columns_table,
- lo_columns = lo_table->get_columns( ).
- lo_columns->set_optimize( abap_true ).
- lo_columns->get_column('NEWKEY')->set_long_text('Nouvelle clef').
- lo_columns->get_column('ISEXIST')->set_long_text('Existe ?').
- lo_columns->get_column('SEQNO')->set_long_text('N°').
- call method lo_columns->set_color_column
- exporting
- value = 'COLOR'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement