2008 Jan 25 11:29 AM
Hi,
I want to remove the buttons such as COPY, Layout, etc from the popup window when I use 'REUSE_ALV_POPUP_TO_SELECT'. And also I want to have my own buttons there and write my desired code there. Can you please provide the pseudo code for that and help me.
Thanks,
Khan
Hi,
I want to remove the buttons such as COPY, Layout, etc from the popup window when I use 'REUSE_ALV_POPUP_TO_SELECT'. And also I want to have my own buttons there and write my desired code there. Can you please provide the pseudo code for that and help me.
Thanks,
Khan
2008 Jan 25 11:39 AM
Hi Khan,
I want to remove the buttons such as COPY, Layout, etc from the popup window
- for this the FM has one importing parameter called
IT_EXCLUDING. u can pass the function code of COPY, Layout in this table to remove it.
Regarding adding your custom function codes..I think its not possible.
Regards,
Vaibhav.
****Reward useful answers
2008 Jan 25 11:43 AM
Hi,
In order to 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.
Hope this helps.
Reward if helpful.
Regards,
Sipra
2011 Sep 12 4:20 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |