gwa_edit-fieldname = 'UOM'. gwa_edit-style = cl_gui_alv_grid=>mc_style_disabled."设置为不可编辑 ENDIF. APPEND gwa_edit TO GS_data-celtab . MODIFY gt_Data FROM gs_Data . ENDLOOP. ... 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20...
DATA: l_ref_alv TYPE REF TO cl_gui_alv_grid. CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR' IMPORTING e_grid = l_ref_alv. CALL METHOD l_ref_alv->set_drop_down_table EXPORTING it_drop_down = gt_ddval. ENDFORM. "CALLER_EXIT FORM pf_status1 USING lt_extab. SET PF-STATUS 'MENU...
stylelin-fieldname ='EBELN'."需要编辑的列名stylelin-style = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED."设置为不可编辑状态APPENDstylelinTOwa_ekko-f_style.CLEARSTYLELIN. stylelin-fieldname ='VERKF'. stylelin-style = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.APPENDstylelinTOwa_ekko-f_style.MODIFYit_ek...
ifls_celltab-fieldnameeq'CHECKBOX'. "只有双击 checkbox字段时,才能进行控制 ifls_celltab-style = cl_gui_alv_grid=>mc_style_enabled. "当该字段为可编辑的时候 ls_celltab-style = cl_gui_alv_grid=>mc_style_disabled. "设置该字段为不可编辑 else."当该字段为不可编辑的时候 ls_celltab-style ...
DATA: g_con01 TYPE REF TO cl_gui_custom_container. DATA: g_grid01 TYPE REF TO cl_gui_alv_grid. DATA: gs_fieldcat TYPE lvc_s_fcat. DATA: gt_fieldcat TYPE lvc_t_fcat. DATA: gs_style TYPE lvc_s_styl, gt_style TYPE lvc_t_styl. ...
gs_style-fieldname = 'CONNID'. gs_style-style = cl_gui_alv_grid=>mc_style_disabled. INSERT gs_style INTO TABLE gt_style. ELSE. gs_style-fieldname = 'CONNID'. gs_style-style = cl_gui_alv_grid=>mc_style_enabled. INSERT gs_style INTO TABLE gt_style. ENDIF. INSERT LINES OF gt_...
data ALV_GRID1 type ref to cl_gui_alv_grid. ALV GRID继承结构: ALV_GRID介绍二(1) 四、ALV GRID相关的几个控制结构 1.字段目录 [Field catalog] 字段目录是用来控制ALV显示的网格中每个字段的属性的,比如字段的顺序,对齐方式,可编辑状态,颜色,等等. ...
ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled. "set field to disabled APPEND ls_stylerow TO wa_ekko-field_style.*可以按上面的代码添加多个字段的是否可修改 MODIFY it_ekko FROM wa_ekko. ENDIF. ENDLOOP. endform. " set_specific_field_attributes ...
ls_style-fieldname = '字段名'. ls_style-style = cl_gui_alv_grid=>mc_style_disabled. "不可编辑 "或者 ls_style-style = cl_gui_alv_grid=>mc_style_enabled. "可编辑 append ls_style to lt_style. 将该内表赋给结构新增的字段 gs_alv-style[] = lt_style. 然后在需要修改属性的地方循环...
我现在就将我的理解写下来,供大家参考。1)在创建CL_GUI_ALV_GRID_BASE的对象,会调用SET_INFO_TABLE方法为MT_MODIFIED_CELLS创建一个CL_GUI_DATAPONDEMAND对象,并把MT_MODIFIED_CELLS的地址传递到CL_GUI_DATAPONDEMAND的M_DATAPTR属性;2)调用CL_GUI_DATAPONDEMAND->control_assign_prop进行注册...