DATA:t_spfliTYPE STANDARD TABLE OFspfli,alvTYPE REF TOcl_salv_table,error_messageTYPE REF TOcx_salv_msg.* Fill the internal table with example dataSELECT*FROMspfliINTOTABLEt_spfli.* Fill ALV object with data from the internal tableTRY.cl_salv_table=>factory(IMPORTINGr_salv_table=alvCHANGINGt_table=t_spfli).CATCHcx_salv_msgINTOerror_message.* error handlingENDTRY.* Use the ALV object's display method to show the ALV on the screenalv->display().* Ajouter les boutonsalv->get_functions()->set_all().* Rendre le filtre sensible au majuscule /minuscule* [https://blogs.sap.com/2017/12/22/how-to-get-alv-filter-work-for-lower-case-characters/]* (https://blogs.sap.com/2017/12/22/how-to-get-alv-filter-work-for-lower-case-characters/)* define the columnDATAlo_columnTYPE REF TOcl_salv_column_table.DATAlo_columnsTYPE REF TOcl_salv_columns_table.DATAlt_column_refTYPE salv_t_column_ref.DATAls_column_refTYPE salv_s_column_ref.DATAgo_salv_tableTYPE REF TOcl_salv_table.DATAlt_column_refTYPE salv_t_column_ref.DATAls_column_refTYPE salv_s_column_ref.* get your ALV instancecl_salv_table=>factory(IMPORTINGr_salv_table=go_salv_tableCHANGINGt_table="your table here).* get the columnlo_columns=go_salv_table->get_columns().lt_column_ref=lo_columns->get().* set lowwer caseLOOP AT lt_column_refINTOls_column_ref.lo_column?=ls_column_ref-r_column.CASEls_column_ref-columnname.WHEN'XXXX'.lo_column->set_lowercase(value=if_salv_c_bool_sap=>true).ENDCASE.ENDLOOP.
Sinon trouver mon abap sur les BI tools (période DKT)