set pf-status是用来设置ALV或者SCREEN中的状态栏的,包括:菜单栏、工具栏的;'FLIGHT'是状态栏的名字,需要在应用程序下创建自己的状态栏或者使用标准的状态栏即可,状态栏如下图;
set pf-status是用来设置ALV或者SCREEN中的状态栏的;复制源程序需要注意要把程序里的Include也复制成Z开头的include才行。如果还是解决不了问题,那就要debug跟踪具体原因了。
DATA fcode TYPE TABLE OF sy-ucomm. ... MODULE status_0100 OUTPUT. APPEND 'CHANGE' TO fcode. APPEND 'SAVE' TO fcode. SET PF-STATUS 'STATUS_0100' EXCLUDING fcode. ENDMODULE.
可能有2种可能,一种就如前面所说的,SET PF-STATUS 'SET_PF1'. 这个语句之后的'SET_PF1' 没有定义。还有另一种可能就是调用ALV输出的时候,是否用的是CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'如果是的话,看是否有下面这条i_callback_pf_status_set = 'SET_PF1' 。也可能是这里没定义,...
WRITE: 'PF-Status:', sy-pfkey. AT LINE-SELECTION. IF sy-lsind = 20. SET PF-STATUS 'TEST' EXCLUDING fcode. ENDIF. WRITE: 'Line-Selection, SY-LSIND:', sy-lsind, / ' SY-PFKEY:', sy-pfkey. AT USER-COMMAND. IF sy-lsind = 20. SET PF-STATUS 'TEST' EXCLUDING fcode. ENDIF. WRITE...
A status remains valid for the duration of a transaction or until you set a new status. Note You can use a namespace prefix with status names. Example Event in program: START-OF-SELECTION. SET PF-STATUS 'MAIN'. WRITE SY-PFKEY. AT USER-COMMAND. CASE SY-UCOMM. WHEN '...
i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND' i_grid_settings = gs_grid is_layout_lvc = wa_layout it_fieldcat_lvc = gt_fieldcat "需要显示的内表的列 i_save = 'A' it_events = gt_event ...
MODULE STATUS_0100 OUTPUT. SET PF-STATUS '100'. * SET TITLEBAR 'xxx'. DATA:F_NUM TYPE I. F_NUM = 100000001. REFRESH IT_LIST. "勿忘 DO 10 TIMES. *F_NUM = F_NUM + 1. WA_LIST-KEY = '100000000'. *F_NUM = F_NUM + 1. ...
i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND' is_layout = gs_layout it_fieldcat = gt_fieldcat[] it_sort = gt_sort[] i_save = g_save i_tabname_header = g_tabname_header i_tabname_item = g_tabname_item is_keyinfo = gs_keyinfo TABLE...
SET PF-STATUS 'MAIN100'. IF CUSTOM_CONTAINER IS INITIAL. create a custom container control for our ALV Control CREATE OBJECT CUSTOM_CONTAINER EXPORTING CONTAINER_NAME = MYCONTAINER EXCEPTIONS CNTL_ERROR = 1 CNTL_SYSTEM_ERROR = 2 CREATE_ERROR = 3 LIFETIME_ERROR = 4 LIFETIME_DYNPRO_DYNPRO_LIN...