1、SAPGUI_PROGRESS_INDICATOR(SAP GUI状态栏显示进度条函数)
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' "取数时下方提示 EXPORTING text = '数据处理中,请稍后...'.
2、LVC_S_FCAT是一个Structure,LVC_T_FCAT是Table Type3、aLV用到的函数,目前我们有2个:REUSE_ALV_GRID_DISPLAY、REUSE_ALV_GRID_DISPLAY_LVC;两个
函数都可以将数据用ALV的形式显示出来
4、LISTBOX :
PARAMETERS:P_BSART(10) AS LISTBOX VISIBLE LENGTH 10 DEFAULT '1' OBLIGATORY. "订单类型
PARAMETERS:P_LCKFL(10) AS LISTBOX VISIBLE LENGTH 10 DEFAULT '1' OBLIGATORY. "浪潮库总发料数
FORM FRM_GET_LISTBOX .
REFRESH LIST.
CLEAR NAME.
CLEAR VALUE.
NAME = 'P_BSART'.
VALUE-KEY = '1'.
VALUE-TEXT = '全部'.
APPEND VALUE TO LIST.
VALUE-KEY = '2'.
VALUE-TEXT = 'NB'.
APPEND VALUE TO LIST.
VALUE-KEY = '3'.
VALUE-TEXT = 'ZNPI'.
APPEND VALUE TO LIST.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
REFRESH LIST.
CLEAR NAME.
CLEAR VALUE.
NAME = 'P_LCKFL'.
VALUE-KEY = '1'.
VALUE-TEXT = '等于0'.
APPEND VALUE TO LIST.
VALUE-KEY = '2'.
VALUE-TEXT = '大于0'.
APPEND VALUE TO LIST.
VALUE-KEY = '3'.
VALUE-TEXT = '全部'.
APPEND VALUE TO LIST.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
ENDFORM.
声明
DATA:NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
TYPES:
*-- Single Value in Value Set
BEGIN OF VRM_VALUE,
KEY(40) TYPE C,
TEXT(80) TYPE C,
END OF VRM_VALUE