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.
本文介绍如何在ABAP中定义字段data:status_icontypeicons-text,并创建StatusIcon控件来显示图标。通过ICON_CREATE函数设置图标样式、文本及提示信息。
1216

被折叠的 条评论
为什么被折叠?



