在使用 REUSE_ALV_GRID_DISPLAY_LVC 时,会发现使用 REUSE_ALV_GRID_DISPLAY 时的双击显示行明细功能没有了; 这是SAP标准程序决定的,REUSE_ALV_GRID_DISPLAY_LVC 已经取消了双击显示行明细功能。 当然,也可以点击工具栏中的放大镜按钮,直接查看明细; 如若想要实现双击显示明细,则可以直接执行FCode:&ETA调用标准功能...
DATA: gt_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE, gs_layout TYPE slis_layout_alv, usercommand TYPE slis_fieldname VALUE 'USERCOMMAND', gt_sort TYPE slis_t_sortinfo_alv. DATA: progname LIKE sy-repid, title(70). DATA : gv_cancel(1) TYPE c, gv_flag TYPE i. *** * SE...
1)对于非key字段则可以通过设置字段格式(slis_fieldcat_alv)的emphasize指定,代码如下: data: wa_fieldcat type slis_fieldcat_alv. clear wa_fieldcat. wa_fieldcat-ref_fieldname = im_ref_field. wa_fieldcat-ref_tabname = im_ref_table. wa_fieldcat-fieldname = im_fieldname. wa_fieldcat-tabnam...
DATA: gt_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE, gs_layout TYPE slis_layout_alv, usercommand TYPE slis_fieldname VALUE 'USERCOMMAND', gt_sort TYPE slis_t_sortinfo_alv. DATA: progname LIKE sy-repid, title(70). DATA : gv_cancel(1) TYPE c, gv_flag TYPE i. *** * SE...
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_grid_title = i_grid_title i_callback_program = sy-repid " is_layout = is_layout it_fieldcat = lt_fieldcat[] i_callback_pf_status_set = 'ZFORM_SET_PF_STATUS' " i_callback_user_command = 'ALV_USER_COMMAND' ...
1)对于非key字段则可以通过设置字段格式(slis_fieldcat_alv)的emphasize指定,代码如下: data: wa_fieldcat type slis_fieldcat_alv. clear wa_fieldcat. wa_fieldcat-ref_fieldname = im_ref_field. wa_fieldcat-ref_tabname = im_ref_table.
function reuse_alv_grid_display. "#EC * ... if i_screen_start_column is initial and i_screen_start_line is initial and i_screen_start_column is initial and i_screen_end_line is initial. gt_grid-flg_popup = space. call screen 500. else...
一种比较美观的报表显示工具reuse_alv_list_displaygrid 的是 excel 单元格的格式,而 list 不是 reuse_alv_grid_display 可以控制某一行 某一列,甚至某一格(cell)的读写 alv 用到的函数,目前我们有 2 个:reuse_alv_grid_display、reuse_alv_grid_display_lvc;两个函数都可以将数据用 alv 的形式显示出来,...
*4此处代码将用户输入读入内表(这一步不可少)CALLFUNCTION'GET_GLOBALS_FROM_SLVC_FULLSCR'IMPORTINGe_grid=lr_grid.CALLMETHODlr_grid->check_changed_data. *5此处代码阻止'REUSE_ALV_GRID_DISPLAY创建新的屏幕,造成屏幕多层selfield-refresh='X'.CASEsy-ucomm.WHEN'DELE'.CLEARsy-ucomm.LOOPATgt_yf.IFgt...
SLIS_T_SORTINFO_ALV. DATA: V_REPID TYPE SYREPID, "current Program id C_SAVE TYPE CHAR1 VALUE 'A'. "variant save V_REPID = SY-REPID. CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' *CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = V_REPID IS_LAYOUT = FP_LAYOUT IT...