sap abap中ALV表的下拉菜单显示的默认值用什么参数控制?
DATA:LW_TABIX TYPE SY-TABIX,
LTH_T001 LIKE LINE OF ITAB,
LTH_LIST TYPE LVC_S_DROP.
LOOP AT ITAB INTO LTH_T001.
LW_TABIX = SY-TABIX .
LTH_LIST-HANDLE = LW_TABIX.
LTH_LIST-VALUE = '-2'.
APPEND LTH_LIST TO TD_LIST.
CLEAR LTH_LIST.
LTH_LIST-HANDLE = LW_TABIX.
LTH_LIST-VALUE = '-1'.
APPEND LTH_LIST TO TD_LIST.
CLEAR LTH_LIST.
LTH_LIST-HANDLE = LW_TABIX.
LTH_LIST-VALUE = '0'.
APPEND LTH_LIST TO TD_LIST.
CLEAR LTH_LIST.
LTH_LIST-HANDLE = LW_TABIX.
LTH_LIST-VALUE = '1'.
APPEND LTH_LIST TO TD_LIST.
CLEAR LTH_LIST.
LTH_LIST-HANDLE = LW_TABIX.
LTH_LIST-VALUE = '2'.
APPEND LTH_LIST TO TD_LIST.
CLEAR LTH_LIST.
LTH_T001-DDROP = LW_TABIX.
MODIFY ITAB FROM LTH_T001.
CLEAR LTH_T001.
ENDLOOP.
TH_LAYOUT-CWIDTH_OPT = 'X'. sap abap --------------------编程问答-------------------- 不明白什么意思 --------------------编程问答-------------------- 直接对内表进行赋值就行了,当然赋值的内容必须是 list里面存在的。
补充:企业软件 , ERP/CRM