12-10-2007 9:39 PM
hi,
i have a requirement where i have to remove sort buttons(Application tool bar) in ALV report.
can anyone please suggest the code
thanks
12-10-2007 9:55 PM
Copy the standard PF-Status to your program.
Go to SE41.
Program: SAPLKKBL
Status: STANDARD_FULLSCREEN
Then press the button "Copy Status" Ctrl+F6.
Give your program name and status name to copy it.
Remove the button you wanted form your generated PF-Status.
Now in your program you need to make one perform for this:
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = g_repid
i_callback_pf_status_set = 'SET_PF_STATUS' " <<
Make a FORM with name SET_PF_STATUS.
form SET_PF_STATUS using rt_extab type slis_t_extab . "#EC CALLED
set pf-status 'ZTEST_PF' excluding rt_extab[]. " < Status name copied in the first step.
endform. "f01_set_status
Regards,
Naimesh Patel
12-10-2007 9:55 PM
Copy the standard PF-Status to your program.
Go to SE41.
Program: SAPLKKBL
Status: STANDARD_FULLSCREEN
Then press the button "Copy Status" Ctrl+F6.
Give your program name and status name to copy it.
Remove the button you wanted form your generated PF-Status.
Now in your program you need to make one perform for this:
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = g_repid
i_callback_pf_status_set = 'SET_PF_STATUS' " <<
Make a FORM with name SET_PF_STATUS.
form SET_PF_STATUS using rt_extab type slis_t_extab . "#EC CALLED
set pf-status 'ZTEST_PF' excluding rt_extab[]. " < Status name copied in the first step.
endform. "f01_set_status
Regards,
Naimesh Patel
12-10-2007 10:25 PM
If you are using function module, then simply fill in the function codes of those buttons into one internal table and pass it to IT_EXCLUDING parameter. Make sure that you define your internal table same as IT_EXCLUDING.