GRID TITLE IN OOPS ALV

2 months ago 17
• erstwhile u execute mill method programme we can’t capable to spot customize grid title, we tin customize rubric by utilizing set_list_header method successful cl_salv_table. • make a basal programme successful SE38 codification arsenic follows. "INSTANCE FOR FACTORY DATA : o_alv benignant REF TO cl_salv_table, lo_columns TYPE REF TO cl_salv_columns_table, lo_column TYPE REF TO cl_salv_column_table, LO_FUNCTIONS TYPE REF TO cl_salv_functions_list, ls_color TYPE lvc_s_colo. START-OF-SELECTION. "FETCH DATA FROM EKPO select * FROM ekpo INTO TABLE @DATA(lt_ekpo) UP TO 20 ROWS. "DISPLAY ALV TRY. CALL METHOD CL_SALV_TABLE=>FACTORY IMPORTING R_SALV_TABLE = o_alv CHANGING T_TABLE = lt_ekpo. CATCH CX_SALV_MSG . ENDTRY. CALL METHOD o_alv->GET_DISPLAY_SETTINGS RECEIVING VALUE = data(gr_disp). "ALV Settings for Display gr_disp->SET_STRIPED_PATTERN( VALUE = ABAP_TRUE ). gr_disp->SET_LIST_HEADER( VALUE = 'PURCHASE ORDER REPORT' ). CALL METHOD o_alv->DISPLAY.
Read Entire Article