SAP: REUSE_ALV_GRID_DISPLAY 函数实现此类型ALV
*& Report-1 类型程序的主要功能是通过 WRITE语句为用户提供方便的报表数据.
*& 与此功能类似的就是利用FUNCTION ALV创建的报表。利用
*& REUSE_ALV_GRID_DISPLAY 函数实现此类型ALV。
*----------------------------------------------------------------------*
*&---------------------------------------------------------------------* *& Report Z16_02 *& 利用 REUSE_ALV_GRID_DISPLAY *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT Z16_02. DATA gt_itab TYPE TABLE OF sflight. SELECT * FROM SFLIGHT INTO table GT_ITAB UP TO 45 ROWS. *& 调用函数 REUSE_ALV_GRID_DISPLAY ,比较 例子 Z16_01 *& 的 REUSE_ALV_LIST_DISPLAY 函数。 CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' * I_BYPASSING_BUFFER = ' ' * I_BUFFER_ACTIVE = ' ' * I_CALLBACK_PROGRAM = ' ' * I_CALLBACK_PF_STATUS_SET = ' ' * I_CALLBACK_USER_COMMAND = ' ' * I_CALLBACK_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_END_OF_LIST = ' ' I_STRUCTURE_NAME = 'SFLIGHT' * I_BACKGROUND_ID = ' ' * I_GRID_TITLE = * I_GRID_SETTINGS = * IS_LAYOUT = * IT_FIELDCAT = * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' * I_SAVE = ' ' * IS_VARIANT = * IT_EVENTS = * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * I_HTML_HEIGHT_TOP = 0 * I_HTML_HEIGHT_END = 0 * IT_ALV_GRAPHICS = * IT_HYPERLINK = * IT_ADD_FIELDCAT = * IT_EXCEPT_QINFO = * IR_SALV_FULLSCREEN_ADAPTER = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES T_OUTTAB = gt_itab * EXCEPTIONS * PROGRAM_ERROR = 1 * OTHERS = 2 . IF SY-SUBRC <> 0. * Implement suitable error handling here ENDIF.
优质生活从拆开始