DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE. DATA: it_fieldcat TYPE lvc_t_fcat, "slis_t_fieldcat_alv WITH HEADER LINE, wa_fieldcat TYPE lvc_s_fcat, gd_tab_group TYPE slis_t_sp_group_alv, gd_layout TYPE lvc_s_layo, "slis_layout_alv, gd_repid LIKE sy-repid....
DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE. DATA: it_fieldcat TYPE lvc_t_fcat, "slis_t_fieldcat_alv WITH HEADER LINE, wa_fieldcat TYPE lvc_s_fcat, gd_tab_group TYPE slis_t_sp_group_alv, gd_layout TYPE lvc_s_layo, "slis_layout_alv, gd_repid LIKE sy-repid....
gs_grid-edt_cll_cb = abap_true. " 选中复选款,立刻触发data changed 事件 CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC' EXPORTING i_callback_program = sy-repid "回调程序 i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND' i_grid_settings = gs_grid is_...
DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE. DATA: it_fieldcat TYPE lvc_t_fcat, "slis_t_fieldcat_alv WITH HEADER LINE, wa_fieldcat TYPE lvc_s_fcat, gd_tab_group TYPE slis_t_sp_group_alv, gd_layout TYPE lvc_s_layo, "slis_layout_alv, gd_repid LIKE sy-repid....
然后呼出REUSE_ALV_GRID_DISPLAY_LVC后,一开始是有2、30行左右的参数的,特别杂也特别乱。把没用的删掉后,就简化成了上面的代码。其实需要记住的东西不是很多,第一个 REUSE_ALV_GRID_DISPLAY_LVC,第二个会懂得查看类型属性等,就是通过鼠标双击,比如FIELDNAME、SCRTEXT_M、COL_POS、OUTPUTLEN、CHECKBOX、EDIT这些...
* call function 'REUSE_ALV_GRID_DISPLAY' CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC' EXPORTING i_callback_program = gd_repid* i_callback_user_command = 'USER_COMMAND' is_layout_lvc = gd_layout it_fieldcat_lvc = it_fieldcat i_save = 'X' TABLES t_outtab = it_ekko EXCEPTIONS ...
abap alv 事件 alv 事件的创建使用 function alv 最后 还是变成oo alv 来设置监听 事件 在实际开发中经常要用到 事件 event,在各个alv中的具体使用如下 REUSE_ALV_GRID_DISPLAY_LVC 显示代码 CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC' EXPORTING i_callback_program = sy-repid " 当前程序...
DATA: l_user_command TYPE slis_formname VALUE 'USER_COMMAND'. "定义返回事件 CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC' "定义显⽰内表 EXPORTING I_CALLBACK_PROGRAM = sy-repid I_CALLBACK_USER_COMMAND = l_user_command IS_LAYOUT_LVC = i_layout IT_FIELDCAT_LVC = i_fiel...
gt_eventTYPEslis_t_event,gs_eventTYPEslis_alv_event."MOVE'DATA_CHANGED'TOgs_event-name."MOVE'ALV_DATA_CHANGED'TOgs_event-form.APPENDgs_eventTOgt_event.gs_grid-edt_cll_cb=abap_true." 选中复选款,立刻触发data changed 事件CALLFUNCTION'REUSE_ALV_GRID_DISPLAY_LVC'EXPORTINGi_callback_program=sy...
gt_eventTYPEslis_t_event,gs_eventTYPEslis_alv_event."MOVE'DATA_CHANGED'TOgs_event-name."MOVE'ALV_DATA_CHANGED'TOgs_event-form.APPENDgs_eventTOgt_event.gs_grid-edt_cll_cb=abap_true." 选中复选款,立刻触发data changed 事件CALLFUNCTION'REUSE_ALV_GRID_DISPLAY_LVC'EXPORTINGi_callback_program=sy...