1、定義字段
data: status_icon type icons-text.
2、創建屏幕,並在屏幕定義創建一個"Status Icon"控件 ,命名爲:status_icon
3、利用ICON_CREATE函數在輸出是設置ICON。
call function 'ICON_CREATE'
exporting
name = 'ICON_RED_LIGHT'
text = '圖標後的文本'
info = '提示'
add_stdinf = 'X'
importing
result = status_icon
exceptions
icon_not_found = 1
outputfield_too_short = 2
others = 3.