1、效果鼠标放到指示灯显示报错内容
给参数info 赋值
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = icon_led_green
info = lv_msg
add_stdinf = 'X'
IMPORTING
result = <ls_ztsd021_log>-icon
EXCEPTIONS
icon_not_found = 1
outputfield_too_short = 2.
效果: