ALV单元格颜色

5,绿色;7,黄色;6,红色

  DATA: LS_SCOL LIKE LINE OF GS_DATA-FIELD_COLOR.
  CLEAR: LS_SCOL.     
 "-----单元格颜色部分
      IF GS_DATA-ZJCZT =  '全部齐套'.
        LS_SCOL-FNAME = 'ZJCZT'.
        LS_SCOL-COLOR-COL = '5'.
        LS_SCOL-COLOR-INT = '0'.
        LS_SCOL-COLOR-INV = '0'.
        APPEND LS_SCOL TO GS_DATA-FIELD_COLOR.
        CLEAR:LS_SCOL.
      ENDIF.

      IF GS_DATA-ZJCZT =  '部分齐套'.
        LS_SCOL-FNAME = 'ZJCZT'.
        LS_SCOL-COLOR-COL = '7'.
        LS_SCOL-COLOR-INT = '0'.
        LS_SCOL-COLOR-INV = '0'.
        APPEND LS_SCOL TO GS_DATA-FIELD_COLOR.
        CLEAR:LS_SCOL.
      ENDIF.
      IF GS_DATA-ZJCZT =  '无齐套'.
        LS_SCOL-FNAME = 'ZJCZT'.
        LS_SCOL-COLOR-COL = '6'.
        LS_SCOL-COLOR-INT = '0'.
        LS_SCOL-COLOR-INV = '0'.
        APPEND LS_SCOL TO GS_DATA-FIELD_COLOR.
        CLEAR:LS_SCOL.
      ENDIF.
      MODIFY GT_DATA FROM GS_DATA.

人已赞赏
知识点

webservice推送数据报错:Error : SOAP:14 Unexpected element -el=defentions ns=http://schmas.xmlsoap.org/wsdl/

2020-10-14 16:03:45

知识点

区域菜单维护

2020-11-23 14:03:14

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索