gwa_edit-style = cl_gui_alv_grid=>mc_style_disabled."设置为不可编辑INSERTgwa_editINTOTABLEgit_edit.INSERTLINESOFgit_editINTOTABLEgwa_ekko-style.*将除第三行的之外所有行的VERKF字段都设置成不能输入DO10TIMES.IFsy-index <>3.MODIFYgit_ekko INDEX sy-indexFROMgwa_ekko TRANSPORTING style.ENDIF.EN...
ALV_STYLE_BUTTON(4)TYPEXVALUE'20000000', ALV_STYLE_BUTTON_NO(4)TYPEXVALUE'40000000', * Style 2 ALV_STYLE2_NO_BORDER_LEFT(4)TYPEXVALUE'00010000', ALV_STYLE2_NO_BORDER_RIGHT(4)TYPEXVALUE'00020000', ALV_STYLE2_NO_BORDER_TOP(4)TYPEXVALUE'00040000', ALV_STYLE2_NO_BORDER_BOTTOM(4)TYPE...
SAP_STYLE = CL_DD_DOCUMENT=>SUCCESS "WARNING SAP_COLOR = CL_DD_DOCUMENT=>LIST_TOTAL_INT SAP_FONTSIZE = CL_DD_DOCUMENT=>LARGE SAP_FONTSTYLE = CL_DD_DOCUMENT=>SERIF SAP_EMPHASIS = CL_DD_DOCUMENT=>EMPHASIS. "添加超链接 CALL METHOD DOCUMENT->ADD_LINK EXPORTING URL = 'https://mp.weixin...
style TYPE lvc_t_styl, "将该字段设置为保存编辑状态的字段 END OF gty_ekko. gwa_edit-fieldname = 'EBELN'. gwa_edit-style = cl_gui_alv_grid=>mc_style_disabled."设置为不可输入 INSERT gwa_edit INTO TABLE git_edit. 1 2 3 gwa_edit-fieldname = 'EBELN'. gwa_edit-style = cl_gui_...
SAP_STYLE=CL_DD_DOCUMENT=>SUCCESS"底色 绿色 SAP_EMPHASIS='Strong'."加粗 CALLMETHODDOCUMENT->ADD_GAP EXPORTING WIDTH=2. TEXT=SY-UNAME. CALLMETHODDOCUMENT->ADD_TEXT EXPORTING TEXT=TEXT SAP_STYLE=CL_DD_DOCUMENT=>WARNING"底色 红色色 SAP_COLOR=CL_DD_DOCUMENT=>LIST_TOTAL_INT ...
LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED. LS_EDIT-STYLE2 = SPACE. LS_EDIT-STYLE3 = SPACE. LS_EDIT-STYLE4 = SPACE. LS_EDIT-MAXLEN = 10. INSERT LS_EDIT INTO TABLE LT_EDIT. LS_EDIT-FIELDNAME = 'POSNR'. LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED. ...
CONCATENATE '<b style="margin-left: 0px">需求数量:</b><label style="width:120px;">' pr_emeng g_meins'</label>' '<b style="margin-left: 50px">单位描述:</b><label style="width:120px;">' g_mseht'</label>' '<BR>' INTO m_buff. ...
ls_stylerow-fieldname = 'NETPR' . 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_...
报废的改为不可编辑状态* DATA stylelin TYPE lvc_s_styl. * LOOP AT gt_out INTO lw_out WHERE zreject = 'X..., checkbox, field_style type lvc_t_styl, " 为内表添加设置编辑状态所需的字段 vbeln type vbrp-vbeln, "发票抬头 vbelnc ooalv自定义按钮、单击、双击、列编辑切换的事件用法 cl...
(4), " 行颜色,设置 layout-info_fname 后,不显示该字段值 colortab TYPE lvc_t_scol, " 单元格颜色styletab TYPE lvc_t_styl, " 单元格样式,如单元格编辑、按钮等 END OF gt_output. DATA: gt_colortab TYPE lvc_t_scol WITH HEADER LINE, " 单元格颜色 gt_styletab TYPE lvc_t_styl WITH ...