FM 方式ALV 红绿灯
*&
*&
*&---------------------------------------------------------------------*
*1)在alv引用类型池定义时加入icon,如type-pools:
*
*2)给显示内表itab定义一字段statu存储状态灯;
*
*3)循环内表itab给字段statu值赋:
*绿灯:itab-statu
*红灯:itab-statu
*4)alv的fieldcat属性i_fieldcat-icon
*&---------------------------------------------------------------------*
REPORT
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
TYPE-POOLS :
*&---------------------------------------------------------------------*
*&基本数据定义
*&---------------------------------------------------------------------*
DATA :
DATA :
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
DATA :
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
DEFINE
END-OF-DEFINITION .
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
START-OF-SELECTION .
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
FORM
ENDFORM .
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
FORM