2007 Dec 31 8:25 AM
hi friends,
there is a stmnt, set pf status gs_status excluding rt_extab. I just want to know how rt_extab is getting filled. can any one help me with this, as to what to debug to check how it is geting filled...thanks a ton...
hi friends,
there is a stmnt, set pf status gs_status excluding rt_extab. I just want to know how rt_extab is getting filled. can any one help me with this, as to what to debug to check how it is geting filled...thanks a ton...
2007 Dec 31 8:42 AM
hi, generally it is used to provide user's own interface(ui).
in alvs,
1. call the FM 'reuse_alv_events_get'.
2. it will a return a table i_events
READ TABLE I_EVENTS INTO W_EVENTS WITH KEY NAME = 'SET-PF-STATUS'.
IF SY-SUBRC EQ 0.
W_EVENTS-FORM = 'ALV_SET_PF_STATUS'.
MODIFY I_EVENTS FROM W_EVENTS INDEX SY-TABIX.
ENDIF.
FORM ALV_SET_PF_STATUS USING RT_EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'ALVIN'.
ENDFORM. " ALV_SET_PF_STATUS
follow the sample code
reward if useful
rgds
Umakanth
2007 Dec 31 8:51 AM
In order modify PF_STATUS of ALV grid report you need to perform the following steps:
1. Update 'REUSE_ALV_GRID_DISPLAY' FM call to include: i_callback_pf_status_set = 'SET_PF_STATUS' statement.
2. Create 'SET_PF_STATUS' FORM
3. Create pf_status (i.e. 'ZNEWSTATUS').
It is recommend that you copy standard status'STANDARD' from function group SALV and modify it accordingly. ALV standard function codes always start with '&'.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE'
i_callback_pf_status_set = 'SET_PF_STATUS' "see FORM
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
i_save = 'X'
tables
t_outtab = it_ekko
exceptions
program_error = 1
others = 2.
-
FORM SET_PF_STATUS *
-
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZNEWSTATUS'.
"Copy of 'STANDARD' pf_status from fgroup SALV
ENDFORM.
Rewards if useful.
Sravan.
2007 Dec 31 10:03 AM
Hi,
SET PF-STATUS sets the user interface options like menu bar, apllication tool bar, function keys etc.
If you want to exclude some buttons or menu items at some point in the program flow, you can use 'excluding rt_extab' where rt_extab is an internal table of type char5. You can simply append the Function Key associated with an item to this internal table to exclude that item from display.
for example:
MODULE status_0100 OUTPUT.
APPEND 'CHANGE' TO fcode.
APPEND 'SAVE' TO fcode.
SET PF-STATUS 'STATUS_0100' EXCLUDING fcode.
ENDMODULE.
Regards,
Renjith Michael.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |