DATA: O_CONTROL TYPE REF TO CL_SALV_CONTROLLER_MODEL, O_ADAPTER TYPE REF TO CL_SALV_ADAPTER. METHODS: GRABE_MODEL IMPORTING IO_MODEL TYPE REF TO CL_SALV_MODEL, GRABE_CONTROLLER, GRABE_ADAPTER. PRIVATE SECTION. DATA: LO_MODEL TYPE REF TO CL_SALV_MODEL. ENDCLASS. "LCL_SALV_MODEL DEFINI...
METHOD on_user_command. "Get the selection rows DATA: lr_selections TYPE REF TO cl_salv_selections. DATA: lt_rows TYPE salv_t_row. DATA: ls_rows TYPE i. DATA: message TYPE string. CASE e_salv_function. WHEN 'MYFUNCTION'. lr_selections = gr_table->get_selections( ). lt_rows = l...
" on_user_command ENDCLASS. " lcl_handle_events IMPLEMENTATIONDATA: gr_event type ref to lcl_handle_events.data: lr_event TYPE REF TO cl_salv_events_table. " 定义事件变量*& 屏幕输出后事件 子程序 INCLUDE Z17_36_PBO. *INCLUDE Z17_35_PBO....
You can use SET_SCREEN_STATUS method of class cl_salv_table, after that set an handler for ON_USER_COMMAND event. Example: gr_table->set_screen_status( pfstatus = 'SALV_STANDARD' report = wv_repid set_functions = gr_table->c_functions_all ). SET HANDLER: gr_events->on_user_comman...
DATA: lr_table TYPE REF TO cl_salv_table, lr_funct TYPE REF TO cl_salv_functions, lr_columns TYPE REF TO cl_salv_columns_table, lr_column TYPE REF TO cl_salv_column_table. TRY. CALL METHOD cl_salv_table=>factory IMPORTING r_salv_table = lr_table CHANGING t_table = gt_table. CA...
Hello, how can I maximize the output width of a table in cl_salv_table (see jpeg attached). I already used SET_MAX_LINESIZE (CL_SALV_DISPLAY_SETTINGS) but it doesn't
Here is the method ZCL_TEST_NP_SALV_MODEL=>SET_EDITABLE class ZCL_TEST_NP_SALV_MODEL definition public final create public .public section. class-methods SET_EDITABLE importing !IO_SALV type ref to CL_SALV_TABLE . PROTECTED SECTION. PRIVATE SECTION. class-data o_event_h type ref to OBJECT...
I am looking for the method to add a title for a cl_salv_table ,for telling user this table displaying for what ,but I can't find any method to achieve that,could someone help me? Thanks a lot. Reply 1 ACCEPTED SOLUTION Go to solution RichHeilman Developer Advocate Options ...
SAP GUI is provided with the GridView.ocx control which is known as the "ALV Grid Control", CL_GUI_ALV_GRID is its direct wrapping class. In Full Screen or Container mode, cl_salv_table is based on CL_GUI_ALV_GRID, So, no it's not possible. Reply acetedi Participant 2023...
FOR EVENT toolbar OF CL_GUI_ALV_GRID IMPORTING e_object e_interactive . ""&声明工具栏的刷新按钮事件方法 METHODS: handle_command FOR EVENT user_command OF CL_GUI_ALV_GRID IMPORTING e_ucomm. ""& 声明 拖放方法(Drag & Drop) METHODS: handle_alv_drag FOR EVENT ondrag OF CL_GUI_ALV_GRID...