1个回答
展开全部
1. CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_BACKGROUND_ID = 'ALV_BACKGROUND' "-----------首先这个加上
i_callback_program = myrepid
i_callback_user_command = 'MYCOMMAND'
* I_STRUCTURE_NAME = ''
i_grid_title = 'ALV示例'
i_save = 'X'
it_fieldcat = allfields
TABLES
t_outtab = itab
2.FORM mycommand USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
IF r_ucomm = '&IC1'. "-----------这个是双击事件
PERFORM get_item_information
perform outputitem. ----------里面调用明细的'REUSE_ALV_GRID_DISPLAY'
ENDIF.
ENDFORM.
要看不懂给我个邮箱 给你整个代码
EXPORTING
* I_BACKGROUND_ID = 'ALV_BACKGROUND' "-----------首先这个加上
i_callback_program = myrepid
i_callback_user_command = 'MYCOMMAND'
* I_STRUCTURE_NAME = ''
i_grid_title = 'ALV示例'
i_save = 'X'
it_fieldcat = allfields
TABLES
t_outtab = itab
2.FORM mycommand USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
IF r_ucomm = '&IC1'. "-----------这个是双击事件
PERFORM get_item_information
perform outputitem. ----------里面调用明细的'REUSE_ALV_GRID_DISPLAY'
ENDIF.
ENDFORM.
要看不懂给我个邮箱 给你整个代码
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询