gr_layout->set_save_restriction( cl_salv_layout=>restrict_none ). gr_table->display( ).
gr_layout->set_save_restriction( cl_salv_layout=>restrict_none ). gr_table->display( ).
5.设置表头# "设置表头DATA:lo_headerTYPEREFTOcl_salv_form_layout_grid,lo_h_headerTYPEREFTOcl_salv_form_header_info,lo_h_flowTYPEREFTOcl_salv_form_layout_flow.* header objectCREATEOBJECTlo_header.lo_h_header=lo_header->create_header_information(row=1column=1).IFp_r1EQ'X'.lo_h_header->...
ELSE. lo_grid->get_frontend_layout( IMPORTING es_layout = ls_layout ). ls_layout-edit = i_editable. lo_grid->set_frontend_layout( EXPORTING is_layout = ls_layout ). ENDIF. CHECK i_refresh = abap_true. i_salv_table->refresh( lc_stable ). ENDMETHOD. "set_editable ENDCLASS. "lcl_...
8、使用CL_SALV_LAYOUT(注意添加的红色代码),增加变式保存 *&---* *& Report ZTEST4 *& *&---* *& *& *&---
8、使用CL_SALV_LAYOUT(注意添加的红色代码),增加变式保存 *&---* *& Report ZTEST4 *& *&---* *& *& *&---
data:keytypesalv_s_layout_key.data:colortypelvc_s_colo. start-of-selection.select*intotableispflifromspfli.cl_salv_table=>factory(importingr_salv_table=gr_tablechangingt_table=ispfli).gr_functions=gr_table->get_functions().gr_functions->set_all(abap_true).gr_display=gr_table->get_display...
DATA: key TYPE salv_s_layout_key. START-OF-SELECTION. SELECT * INTO TABLE gt_spfli FROM spfli. cl_salv_table=>factory( IMPORTING r_salv_table = gr_table CHANGING t_table = gt_spfli ). *tool bar gr_functions = gr_table->get_functions( ). ...
.data: gr_columns type ref to cl_salv_columns_table.data: gr_column type ref to cl_salv_column_table.data: gr_sorts type ref to cl_salv_sorts.data: gr_agg type ref to cl_salv_aggregations.data: gr_filter type ref to cl_salv_filters.data: gr_layout type ref to cl_salv_layout....
I am using the class "cl_salv_table" on display an ALV grid. (Factory method) How can I set the only one column of report to input/editing? same as slis_layout_alv-edit parameter use in the REUSE_ALV_GRID_DISPLAY function. Is the any method/class on factory method by which this...